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