[gtk+/gestures: 201/202] colorswatch: Set gestures in GTK_PHASE_TARGET



commit a4a122c8e8d48761558bb7627f206f1cec377dd9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu May 22 15:39:31 2014 +0200

    colorswatch: Set gestures in GTK_PHASE_TARGET
    
    That's the right phase for gestures replacing entirely event handlers.

 gtk/gtkcolorswatch.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 201997a..f9ebbeb 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -90,13 +90,13 @@ gtk_color_swatch_init (GtkColorSwatch *swatch)
   swatch->priv->long_press_gesture = gtk_gesture_long_press_new (GTK_WIDGET (swatch));
   g_signal_connect (swatch->priv->long_press_gesture, "pressed",
                     G_CALLBACK (hold_action), swatch);
-  gtk_gesture_attach (swatch->priv->long_press_gesture, GTK_PHASE_BUBBLE);
+  gtk_gesture_attach (swatch->priv->long_press_gesture, GTK_PHASE_TARGET);
 
   swatch->priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (swatch));
   gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (swatch->priv->multipress_gesture), FALSE);
   g_signal_connect (swatch->priv->multipress_gesture, "pressed",
                     G_CALLBACK (tap_action), swatch);
-  gtk_gesture_attach (swatch->priv->multipress_gesture, GTK_PHASE_BUBBLE);
+  gtk_gesture_attach (swatch->priv->multipress_gesture, GTK_PHASE_TARGET);
 }
 
 #define INTENSITY(r, g, b) ((r) * 0.30 + (g) * 0.59 + (b) * 0.11)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]