From 80b528bfeb2ef866257df297e2ca970fbe94dc85 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 26 Oct 2005 03:18:09 +0000 Subject: [PATCH] Activate status icons on single click --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ gtk/gtkstatusicon.c | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 91cfc66d34..5b5fd10a7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-25 Matthias Clasen + + * gtk/gtkstatusicon.c: Emit activate on single-click, + not on double-click, change proposed by Milosz Derezynski. + 2005-10-25 Kristian Rietveld Fixes #311955, reported by Markku Vire; and a lot more. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 91cfc66d34..5b5fd10a7a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-10-25 Matthias Clasen + + * gtk/gtkstatusicon.c: Emit activate on single-click, + not on double-click, change proposed by Milosz Derezynski. + 2005-10-25 Kristian Rietveld Fixes #311955, reported by Markku Vire; and a lot more. diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c index 30f0f78e82..19531ea9bc 100755 --- a/gtk/gtkstatusicon.c +++ b/gtk/gtkstatusicon.c @@ -702,7 +702,7 @@ static gboolean gtk_status_icon_button_press (GtkStatusIcon *status_icon, GdkEventButton *event) { - if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) + if (event->button == 1 && event->type == GDK_BUTTON_PRESS) { emit_activate_signal (status_icon); return TRUE;