From b97ffe579131becfcabddffa14b3f84801382893 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 8 Sep 2024 02:09:54 +0300 Subject: [PATCH] init actions first --- src/app/browser.cpp | 50 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/app/browser.cpp b/src/app/browser.cpp index 8786bdeb..daa0f30f 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -8,31 +8,7 @@ Browser::Browser( //const Glib::RefPtr & app, //const std::shared_ptr & db ) { - // Init window - set_title( - _("Yoda") - ); - - set_default_size( - WIDTH, - HEIGHT - ); - - // Init header widget - browserHeader = Gtk::make_managed(); - - set_titlebar( - * browserHeader - ); - - // Init main widget - browserMain = Gtk::make_managed(); - - set_child( - * browserMain - ); - - // Init browser window actions + // Init window actions add_action( "refresh", [this] @@ -139,4 +115,28 @@ Browser::Browser( )->set_enabled( false ); + + // Init widget + set_title( + _("Yoda") + ); + + set_default_size( + WIDTH, + HEIGHT + ); + + // Init header widget + browserHeader = Gtk::make_managed(); + + set_titlebar( + * browserHeader + ); + + // Init main widget + browserMain = Gtk::make_managed(); + + set_child( + * browserMain + ); } \ No newline at end of file