[gthumb] no application icon on wayland



commit 4130b28c01a4e6536c23959a738edaa37fa6a71c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Oct 23 19:39:05 2017 +0200

    no application icon on wayland

 gthumb/gth-application.c |   19 +++++++------------
 1 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/gthumb/gth-application.c b/gthumb/gth-application.c
index 0ba7ee1..b875ba9 100644
--- a/gthumb/gth-application.c
+++ b/gthumb/gth-application.c
@@ -97,13 +97,17 @@ gth_application_finalize (GObject *object)
 static void
 gth_application_init (GthApplication *app)
 {
-#ifdef GDK_WINDOWING_X11
-
        GDesktopAppInfo *app_info;
 
        app_info = g_desktop_app_info_new ("gthumb.desktop");
-       if (app_info == NULL)
+       if (app_info == NULL) {
+               /* manually set name and icon */
+
+               g_set_application_name (_("gThumb"));
+               gtk_window_set_default_icon_name ("gthumb");
+
                return;
+       }
 
        if (g_desktop_app_info_has_key (app_info, "Name")) {
                char *app_name;
@@ -127,15 +131,6 @@ gth_application_init (GthApplication *app)
        }
 
        g_object_unref (app_info);
-
-#else
-
-       /* manually set name and icon */
-
-       g_set_application_name (_("gThumb"));
-       gtk_window_set_default_icon_name ("gthumb");
-
-#endif
 }
 
 


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