[gtk+/wip/colorchooser-v2: 24/40] Only activate on double-click
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/colorchooser-v2: 24/40] Only activate on double-click
- Date: Tue, 7 Feb 2012 17:46:30 +0000 (UTC)
commit dee7ca5060f1e6688f7250267d527cea723d9204
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 2 17:43:49 2012 -0500
Only activate on double-click
gtk/gtkcolorswatch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 6652ce9..c376860 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -505,8 +505,8 @@ swatch_button_press (GtkWidget *widget,
do_popup (widget, event);
return TRUE;
}
- else if (event->button == GDK_BUTTON_PRIMARY &&
- swatch->priv->selected)
+ else if (event->type == GDK_2BUTTON_PRESS &&
+ event->button == GDK_BUTTON_PRIMARY)
{
g_signal_emit (swatch, signals[ACTIVATE], 0);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]