]> git.0d.be Git - empathy.git/commitdiff
set 'Empathy' as program class in all binaries
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 16 Feb 2011 09:44:20 +0000 (10:44 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 16 Feb 2011 09:57:36 +0000 (10:57 +0100)
This will make all the empathy apps windows appear as the same application
in gnome-shell. (#642440)

Thanks to Owen Taylor for this trick.

src/empathy-accounts.c
src/empathy-auth-client.c
src/empathy-av.c
src/empathy-chat.c
src/empathy-debugger.c

index 05cb269c1a80ba402bdd6f04b31581ecf7675664..f8e52b2cc730db4955aed7e0ae419a57763cd3eb 100644 (file)
@@ -231,6 +231,8 @@ main (int argc, char *argv[])
 
   g_set_application_name (_("Empathy Accounts"));
 
+  /* Make empathy and empathy-accounts appear as the same app in gnome-shell */
+  gdk_set_program_class ("Empathy");
   gtk_window_set_default_icon_name ("empathy");
   textdomain (GETTEXT_PACKAGE);
 
index 530aa17ec680b6752e3c609dd12de9a98d774061..e5f35c68232c2a526188416d555e4e7d6c59446d 100644 (file)
@@ -258,6 +258,9 @@ main (int argc,
   gnutls_global_init ();
   g_set_application_name (_("Empathy authentication client"));
 
+  /* Make empathy and empathy-auth-client appear as the same app in
+   * gnome-shell */
+  gdk_set_program_class ("Empathy");
   gtk_window_set_default_icon_name ("empathy");
   textdomain (GETTEXT_PACKAGE);
 
index 37438fe32950dcdfcded876e52d438555558ae28..6f8c5ba61f1cd4e51e20180daf7798ed7e632a19 100644 (file)
@@ -134,6 +134,8 @@ main (int argc,
   g_set_application_name (_("Empathy Audio/Video Client"));
   g_setenv ("PULSE_PROP_media.role", "phone", TRUE);
 
+  /* Make empathy and empathy-av appear as the same app in gnome-shell */
+  gdk_set_program_class ("Empathy");
   gtk_window_set_default_icon_name ("empathy");
   textdomain (GETTEXT_PACKAGE);
 
index db4000e66036f06e28068207c68abdab1d69bff6..195f2ebf2d1ed18ca365efdf35816b5030ed063e 100644 (file)
@@ -118,6 +118,8 @@ main (int argc,
 
   empathy_gtk_init ();
 
+  /* Make empathy and empathy-chat appear as the same app in gnome-shell */
+  gdk_set_program_class ("Empathy");
   gtk_window_set_default_icon_name ("empathy");
   textdomain (GETTEXT_PACKAGE);
 
index ffd0341cbf58dfe72b015676495fce85c76609d3..3d38e71036ccb6fd3b0eed266a9594bdd2b899a8 100644 (file)
@@ -65,6 +65,8 @@ main (int argc,
 
   g_set_application_name (_("Empathy Debugger"));
 
+  /* Make empathy and empathy-debugger appear as the same app in gnome-shell */
+  gdk_set_program_class ("Empathy");
   gtk_window_set_default_icon_name ("empathy");
   textdomain (GETTEXT_PACKAGE);