[four-in-a-row] Manually set WM_CLASS X property



commit 178bb0b67ef64dc9db6aa1ff4b3bd4b99f797a51
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Aug 11 21:55:03 2013 -0500

    Manually set WM_CLASS X property
    
    GNOME Shell expects WM_CLASS to match a desktop file

 src/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 53aa6f4..c8d458b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1349,6 +1349,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 ("gnect");
+
   context = g_option_context_new (NULL);
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
   retval = g_option_context_parse (context, &argc, &argv, &error);


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