[balsa/wip/gtk4: 94/351] Do not limit the gesture to GDK_BUTTON_SECONDARY
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4: 94/351] Do not limit the gesture to GDK_BUTTON_SECONDARY
- Date: Wed, 23 May 2018 21:24:50 +0000 (UTC)
commit a12336a6a9a5f70a03129058f20ecdd033fa99a7
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat Dec 16 10:03:48 2017 -0500
Do not limit the gesture to GDK_BUTTON_SECONDARY
Checking that the event triggers a popup menu is better.
src/balsa-index.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/balsa-index.c b/src/balsa-index.c
index 165b50f..c962f41 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -434,7 +434,7 @@ bndx_instance_init(BalsaIndex * index)
/* we want to handle button presses to pop up context menus if
* necessary */
gesture = gtk_gesture_multi_press_new(GTK_WIDGET(index));
- gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture), GDK_BUTTON_SECONDARY);
+ gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture), 0);
g_object_set_data_full(G_OBJECT(index), "bndx-gesture", gesture, g_object_unref);
g_signal_connect(gesture, "pressed",
G_CALLBACK(bndx_gesture_pressed_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]