[gedit] main: group GApplication-related code together



commit ec1429f1a104a749324373d9d6866ca66317f943
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Nov 12 16:24:32 2019 +0100

    main: group GApplication-related code together

 gedit/gedit.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit.c b/gedit/gedit.c
index 8c6726ebe..e6add9803 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -139,16 +139,14 @@ main (int argc, char *argv[])
 
        setup_i18n ();
 
+       /* https://honk.sigxcpu.org/con/GTK__and_the_application_id.html */
+       g_set_prgname ("org.gnome.gedit");
 
        app = g_object_new (type,
                            "application-id", "org.gnome.gedit",
                            "flags", G_APPLICATION_HANDLES_COMMAND_LINE | G_APPLICATION_HANDLES_OPEN,
                            NULL);
 
-
-       /* https://honk.sigxcpu.org/con/GTK__and_the_application_id.html */
-       g_set_prgname("org.gnome.gedit");
-
        status = g_application_run (G_APPLICATION (app), argc, argv);
 
        /* Break reference cycles caused by the PeasExtensionSet


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]