[gnome-mahjongg] Set WM_CLASS X property



commit a5787ee6b4e239ddf5cb5388b39356df795e958f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Aug 18 11:32:49 2013 -0500

    Set WM_CLASS X property
    
    GNOME Shell expects this to match a desktop file

 src/gnome-mahjongg.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 7cec7a8..381d233 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -730,6 +730,9 @@ public class Mahjongg : Gtk.Application
         Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
         Intl.textdomain (GETTEXT_PACKAGE);
 
+        /* Required because the binary does not match the desktop file */
+        Environment.set_prgname ("mahjongg");
+
         Gtk.init (ref args);
 
         var context = new OptionContext (null);


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