[devhelp] app: move icon and name set to init



commit e8d9e70c92e5ffc5b56e8711a4d8ccf7a2467d89
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date:   Tue Jul 30 17:19:10 2013 +0200

    app: move icon and name set to init

 src/dh-app.c |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index dd8c56f..f22719d 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -346,25 +346,20 @@ startup (GApplication *application)
 DhApp *
 dh_app_new (void)
 {
-        DhApp *application;
-
-        /* i18n: Please don't translate "Devhelp" (it's marked as translatable
-         * for transliteration only) */
-        g_set_application_name (_("Devhelp"));
-        gtk_window_set_default_icon_name ("devhelp");
-
-        application = g_object_new (DH_TYPE_APP,
-                                    "application-id",   "org.gnome.Devhelp",
-                                    "flags",            G_APPLICATION_FLAGS_NONE,
-                                    "register-session", TRUE,
-                                    NULL);
-
-        return application;
+        return g_object_new (DH_TYPE_APP,
+                             "application-id",   "org.gnome.Devhelp",
+                             "flags",            G_APPLICATION_FLAGS_NONE,
+                             "register-session", TRUE,
+                             NULL);
 }
 
 static void
 dh_app_init (DhApp *app)
 {
+        /* i18n: Please don't translate "Devhelp" (it's marked as translatable
+         * for transliteration only) */
+        g_set_application_name (_("Devhelp"));
+        gtk_window_set_default_icon_name ("devhelp");
 }
 
 static void


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