diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-16 17:44:20 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-16 17:57:36 +0800 |
commit | f19e015dc6bc1b62805dd37159176b591a7f9676 (patch) | |
tree | 45e9c3a138ced227f5862ca341700258183fc450 /src | |
parent | 9c59bb18947a31362ded4c9e5ec5c4ea8c4d0b83 (diff) | |
download | gsoc2013-empathy-f19e015dc6bc1b62805dd37159176b591a7f9676.tar gsoc2013-empathy-f19e015dc6bc1b62805dd37159176b591a7f9676.tar.gz gsoc2013-empathy-f19e015dc6bc1b62805dd37159176b591a7f9676.tar.bz2 gsoc2013-empathy-f19e015dc6bc1b62805dd37159176b591a7f9676.tar.lz gsoc2013-empathy-f19e015dc6bc1b62805dd37159176b591a7f9676.tar.xz gsoc2013-empathy-f19e015dc6bc1b62805dd37159176b591a7f9676.tar.zst gsoc2013-empathy-f19e015dc6bc1b62805dd37159176b591a7f9676.zip |
set 'Empathy' as program class in all binaries
This will make all the empathy apps windows appear as the same application
in gnome-shell. (#642440)
Thanks to Owen Taylor for this trick.
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-accounts.c | 2 | ||||
-rw-r--r-- | src/empathy-auth-client.c | 3 | ||||
-rw-r--r-- | src/empathy-av.c | 2 | ||||
-rw-r--r-- | src/empathy-chat.c | 2 | ||||
-rw-r--r-- | src/empathy-debugger.c | 2 |
5 files changed, 11 insertions, 0 deletions
diff --git a/src/empathy-accounts.c b/src/empathy-accounts.c index 05cb269c1..f8e52b2cc 100644 --- a/src/empathy-accounts.c +++ b/src/empathy-accounts.c @@ -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); diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c index 530aa17ec..e5f35c682 100644 --- a/src/empathy-auth-client.c +++ b/src/empathy-auth-client.c @@ -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); diff --git a/src/empathy-av.c b/src/empathy-av.c index 37438fe32..6f8c5ba61 100644 --- a/src/empathy-av.c +++ b/src/empathy-av.c @@ -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); diff --git a/src/empathy-chat.c b/src/empathy-chat.c index db4000e66..195f2ebf2 100644 --- a/src/empathy-chat.c +++ b/src/empathy-chat.c @@ -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); diff --git a/src/empathy-debugger.c b/src/empathy-debugger.c index ffd0341cb..3d38e7103 100644 --- a/src/empathy-debugger.c +++ b/src/empathy-debugger.c @@ -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); |