Browse Source

remove pointed defaults from header

CPP-GTK4
yggverse 3 months ago
parent
commit
6b4efd9f73
  1. 9
      po/POTFILES.in
  2. 6
      src/app/browser.cpp
  3. 4
      src/app/browser.hpp
  4. 2
      src/app/browser/header.cpp
  5. 2
      src/app/browser/header.hpp
  6. 2
      src/app/browser/header/menu.cpp
  7. 2
      src/app/browser/header/menu.hpp
  8. 10
      src/app/browser/header/tab.cpp
  9. 4
      src/app/browser/header/tab.hpp

9
po/POTFILES.in

@ -1,18 +1,9 @@
src/app/browser.cpp src/app/browser.cpp
src/app/browser.hpp
src/app/browser/header.cpp src/app/browser/header.cpp
src/app/browser/header.hpp
src/app/browser/header/menu.cpp src/app/browser/header/menu.cpp
src/app/browser/header/menu.hpp
src/app/browser/header/tab.cpp src/app/browser/header/tab.cpp
src/app/browser/header/tab.hpp
src/app/browser/main.cpp src/app/browser/main.cpp
src/app/browser/main.hpp
src/app/browser/main/tab.cpp src/app/browser/main/tab.cpp
src/app/browser/main/tab.hpp
src/lib/database.cpp src/lib/database.cpp
src/lib/database.hpp
src/lib/database/session.cpp src/lib/database/session.cpp
src/lib/database/session.hpp
src/main.cpp src/main.cpp
src/main.hpp

6
src/app/browser.cpp

@ -10,12 +10,12 @@ Browser::Browser(
) { ) {
// Init window // Init window
set_title( set_title(
TITLE _("Yoda")
); );
set_default_size( set_default_size(
WIDTH, 640,
HEIGHT 480
); );
// Init header widget // Init header widget

4
src/app/browser.hpp

@ -26,10 +26,6 @@ namespace app
public: public:
const char * TITLE = _("Yoda");
const int WIDTH = 640;
const int HEIGHT = 480;
Browser( Browser(
//const Glib::RefPtr<Gtk::Application> & app, //const Glib::RefPtr<Gtk::Application> & app,
//const std::shared_ptr<lib::Database> & db //const std::shared_ptr<lib::Database> & db

2
src/app/browser/header.cpp

@ -8,7 +8,7 @@ Header::Header()
{ {
// Init header bar // Init header bar
set_show_title_buttons( set_show_title_buttons(
SHOW_TITLE_BUTTONS true
); );
// Init menu // Init menu

2
src/app/browser/header.hpp

@ -20,8 +20,6 @@ namespace app::browser
public: public:
const bool SHOW_TITLE_BUTTONS = true;
Header(); Header();
~Header(); ~Header();

2
src/app/browser/header/menu.cpp

@ -6,7 +6,7 @@ Menu::Menu()
{ {
// Set widget defaults // Set widget defaults
set_tooltip_text( set_tooltip_text(
TOOLTIP _("Menu")
); );
// Build tab submenu model // Build tab submenu model

2
src/app/browser/header/menu.hpp

@ -18,8 +18,6 @@ namespace app::browser::header
public: public:
const char* TOOLTIP = _("Menu");
Menu(); Menu();
~Menu(); ~Menu();

10
src/app/browser/header/tab.cpp

@ -5,15 +5,15 @@ using namespace app::browser::header;
Tab::Tab() Tab::Tab()
{ {
set_action_name( set_action_name(
ACTION "win.tab_append"
); );
set_tooltip_text( set_icon_name(
TOOLTIP "tab-new-symbolic"
); );
set_icon_name( set_tooltip_text(
ICON _("New tab")
); );
} }

4
src/app/browser/header/tab.hpp

@ -10,10 +10,6 @@ namespace app::browser::header
{ {
public: public:
const char* ACTION = "win.tab_append";
const char* ICON = "tab-new-symbolic";
const char* TOOLTIP = _("New tab");
Tab(); Tab();
~Tab(); ~Tab();

Loading…
Cancel
Save