diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-04-14 03:52:08 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-04-14 03:52:08 +0800 |
commit | fb749157dcbc5ea37c6607c11c9ce45208aaddbf (patch) | |
tree | a21f673406d2a37f2a34373b29cf08c5ccd71afc /nothere | |
parent | 8ae70996cd404cd2555dd79a108e168c790b0d9a (diff) | |
download | gsoc2013-empathy-fb749157dcbc5ea37c6607c11c9ce45208aaddbf.tar gsoc2013-empathy-fb749157dcbc5ea37c6607c11c9ce45208aaddbf.tar.gz gsoc2013-empathy-fb749157dcbc5ea37c6607c11c9ce45208aaddbf.tar.bz2 gsoc2013-empathy-fb749157dcbc5ea37c6607c11c9ce45208aaddbf.tar.lz gsoc2013-empathy-fb749157dcbc5ea37c6607c11c9ce45208aaddbf.tar.xz gsoc2013-empathy-fb749157dcbc5ea37c6607c11c9ce45208aaddbf.tar.zst gsoc2013-empathy-fb749157dcbc5ea37c6607c11c9ce45208aaddbf.zip |
Make possible to remove nothere applet from planel and activate it by defaut if dep are met. Fixes bug #489978 (Frederic Peters).
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@934 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'nothere')
-rw-r--r-- | nothere/src/nothere-applet.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nothere/src/nothere-applet.c b/nothere/src/nothere-applet.c index 5d225698b..b0a8b6e55 100644 --- a/nothere/src/nothere-applet.c +++ b/nothere/src/nothere-applet.c @@ -55,10 +55,24 @@ nothere_applet_class_init (NotHereAppletClass *class) GTK_OBJECT_CLASS (class)->destroy = nothere_applet_destroy; } +static gboolean +do_not_eat_button_press (GtkWidget *widget, + GdkEventButton *event) +{ + if (event->button != 1) { + g_signal_stop_emission_by_name (widget, "button_press_event"); + } + + return FALSE; +} + static void nothere_applet_init (NotHereApplet *applet) { applet->presence_chooser = empathy_presence_chooser_new (); + g_signal_connect (G_OBJECT (applet->presence_chooser), "button_press_event", + G_CALLBACK (do_not_eat_button_press), NULL); + gtk_widget_show (applet->presence_chooser); gtk_container_add (GTK_CONTAINER (applet), applet->presence_chooser); |