Browse Source

enshort application object name

CPP-GTK4
yggverse 4 months ago
parent
commit
58c978184c
  1. 6
      src/app/browser.cpp
  2. 2
      src/app/browser.h
  3. 6
      src/app/browser/header/bar/menu/main/quit.cpp

6
src/app/browser.cpp

@ -7,12 +7,12 @@ namespace app
GtkApplication *application GtkApplication *application
) { ) {
// Init dependencies // Init dependencies
this->application = application; this->app = application;
// Init GTK // Init GTK
this->gtk = gtk_application_window_new( this->gtk = gtk_application_window_new(
GTK_APPLICATION( GTK_APPLICATION(
this->application this->app
) )
); );
@ -46,7 +46,7 @@ namespace app
// Connect signals // Connect signals
g_signal_connect( g_signal_connect(
G_APPLICATION( G_APPLICATION(
this->application this->app
), ),
"shutdown", "shutdown",
G_CALLBACK( G_CALLBACK(

2
src/app/browser.h

@ -22,7 +22,7 @@ namespace app
GtkWidget *gtk; GtkWidget *gtk;
// Dependencies // Dependencies
GtkApplication *application; GtkApplication *app;
// Requirements // Requirements
browser::Header *header; browser::Header *header;

6
src/app/browser/header/bar/menu/main/quit.cpp

@ -17,7 +17,7 @@ namespace app::browser::header::bar::menu::main
g_action_map_add_action( g_action_map_add_action(
G_ACTION_MAP( G_ACTION_MAP(
this->main->menu->bar->header->browser->application this->main->menu->bar->header->browser->app
), ),
G_ACTION( G_ACTION(
this->action this->action
@ -46,7 +46,7 @@ namespace app::browser::header::bar::menu::main
gtk_application_set_accels_for_action( gtk_application_set_accels_for_action(
GTK_APPLICATION( GTK_APPLICATION(
this->main->menu->bar->header->browser->application this->main->menu->bar->header->browser->app
), ),
action, action,
accels accels
@ -68,7 +68,7 @@ namespace app::browser::header::bar::menu::main
Quit::_activate Quit::_activate
), ),
G_APPLICATION( G_APPLICATION(
this->main->menu->bar->header->browser->application this->main->menu->bar->header->browser->app
) )
); );
} }

Loading…
Cancel
Save