Browse Source

init actions first

CPP-GTK4
yggverse 3 months ago
parent
commit
b97ffe5791
  1. 50
      src/app/browser.cpp

50
src/app/browser.cpp

@ -8,31 +8,7 @@ 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
) { ) {
// Init window // Init window actions
set_title(
_("Yoda")
);
set_default_size(
WIDTH,
HEIGHT
);
// Init header widget
browserHeader = Gtk::make_managed<browser::Header>();
set_titlebar(
* browserHeader
);
// Init main widget
browserMain = Gtk::make_managed<browser::Main>();
set_child(
* browserMain
);
// Init browser window actions
add_action( add_action(
"refresh", "refresh",
[this] [this]
@ -139,4 +115,28 @@ Browser::Browser(
)->set_enabled( )->set_enabled(
false false
); );
// Init widget
set_title(
_("Yoda")
);
set_default_size(
WIDTH,
HEIGHT
);
// Init header widget
browserHeader = Gtk::make_managed<browser::Header>();
set_titlebar(
* browserHeader
);
// Init main widget
browserMain = Gtk::make_managed<browser::Main>();
set_child(
* browserMain
);
} }
Loading…
Cancel
Save