[gtk+/wip/attach-params-pass-event: 13/15] gtkappchooserwidget triggers context menu
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attach-params-pass-event: 13/15] gtkappchooserwidget triggers context menu
- Date: Thu, 18 Feb 2016 16:09:07 +0000 (UTC)
commit ea11f4ec7ea56815b9dd52d1e67813c37a37a1a9
Author: William Hua <william hua canonical com>
Date: Thu Feb 18 09:53:22 2016 -0500
gtkappchooserwidget triggers context menu
gtk/gtkappchooserwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index 029596b..1b105f8 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -229,7 +229,7 @@ widget_button_press_event_cb (GtkWidget *widget,
{
GtkAppChooserWidget *self = user_data;
- if (event->type == GDK_BUTTON_PRESS && event->button.button == GDK_BUTTON_SECONDARY)
+ if (gdk_event_triggers_context_menu (event))
{
GAppInfo *info;
GtkWidget *menu;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]