[tali] Set WM_CLASS X property



commit 0c8bde08f1ee438c4d1baa863999726720283a1c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Aug 17 18:26:50 2013 -0500

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

 src/gyahtzee.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gyahtzee.c b/src/gyahtzee.c
index 548a4d9..10410ae 100644
--- a/src/gyahtzee.c
+++ b/src/gyahtzee.c
@@ -851,6 +851,12 @@ main (int argc, char *argv[])
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
+  /*
+   * Required because the binary doesn't match the desktop file.
+   * Has to be before the call to g_option_context_parse.
+   */
+  g_set_prgname ("gtali");
+
   application = gtk_application_new ("org.gnome.tali", 0);
   g_signal_connect (application, "activate", G_CALLBACK (GyahtzeeCreateMainWindow), NULL);
 


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