mirror of
https://github.com/GNOME/gedit
synced 2024-06-30 23:15:01 +00:00
commands-file: minor code improvement for _gedit_cmd_file_quit()
This commit is contained in:
parent
44022b7dad
commit
9bb05965fd
|
@ -2107,16 +2107,15 @@ _gedit_cmd_file_quit (GSimpleAction *action,
|
||||||
GVariant *parameter,
|
GVariant *parameter,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GApplication *app;
|
GeditApp *app = GEDIT_APP (user_data);
|
||||||
GList *windows;
|
GList *windows;
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
app = g_application_get_default ();
|
windows = gedit_app_get_main_windows (app);
|
||||||
windows = gedit_app_get_main_windows (GEDIT_APP (app));
|
|
||||||
|
|
||||||
if (windows == NULL)
|
if (windows == NULL)
|
||||||
{
|
{
|
||||||
g_application_quit (app);
|
g_application_quit (G_APPLICATION (app));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user