[gtk+] GtkRange: claim sequence when popping up menu
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkRange: claim sequence when popping up menu
- Date: Fri, 26 Sep 2014 23:20:01 +0000 (UTC)
commit b333d5ea4e029d150ac1db169e53e87d2dda8dbb
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 26 19:18:57 2014 -0400
GtkRange: claim sequence when popping up menu
This was clearly an oversight - the function claims the sequence
at the end, and for the popup menu case, we have an early exit
that misses this.
gtk/gtkrange.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 309f43c..5d0c84d 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2497,8 +2497,8 @@ gtk_range_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
{
gboolean handled;
+ gtk_gesture_set_state (priv->multipress_gesture, GTK_EVENT_SEQUENCE_CLAIMED);
g_signal_emit_by_name (widget, "popup-menu", &handled);
-
return;
}
@@ -2706,8 +2706,7 @@ update_slider_position (GtkRange *range,
}
}
- g_signal_emit (range, signals[CHANGE_VALUE], 0, GTK_SCROLL_JUMP, new_value,
- &handled);
+ g_signal_emit (range, signals[CHANGE_VALUE], 0, GTK_SCROLL_JUMP, new_value, &handled);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]