[balsa: 3/3] balsa-index: Get right-click events in capture
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa: 3/3] balsa-index: Get right-click events in capture
- Date: Wed, 3 Jun 2020 01:07:42 +0000 (UTC)
commit 286c2ba089f13515b2b846d7d28acd7bcc0d67af
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Jun 2 15:31:15 2020 -0400
balsa-index: Get right-click events in capture
src/balsa-index.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/balsa-index.c b/src/balsa-index.c
index aa14e55e8..234a4e8fe 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -465,6 +465,7 @@ balsa_index_init(BalsaIndex * index)
gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture), 0);
g_signal_connect(gesture, "pressed",
G_CALLBACK(bndx_gesture_pressed_cb), index);
+ gtk_event_controller_set_propagation_phase(GTK_EVENT_CONTROLLER(gesture), GTK_PHASE_CAPTURE);
g_signal_connect(tree_view, "row-activated",
G_CALLBACK(bndx_row_activated), NULL);
@@ -644,8 +645,6 @@ bndx_gesture_pressed_cb(GtkGestureMultiPress *multi_press_gesture,
|| gdk_event_get_window(event) != gtk_tree_view_get_bin_window(tree_view))
return;
- gtk_gesture_set_sequence_state(gesture, sequence, GTK_EVENT_SEQUENCE_CLAIMED);
-
gtk_tree_view_convert_widget_to_bin_window_coords(tree_view, (gint) x, (gint) y,
&bx, &by);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]