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

2
src/app/browser.h

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

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

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

Loading…
Cancel
Save