[giggle] Use gdk_event_triggers_context_menu() instead of simply checking for event->button == 3
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] Use gdk_event_triggers_context_menu() instead of simply checking for event->button == 3
- Date: Tue, 7 Feb 2012 20:37:08 +0000 (UTC)
commit bd15e42f60c4ff6ba70da88ec61ef8369dfcd739
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Feb 7 21:02:58 2012 +0100
Use gdk_event_triggers_context_menu() instead of simply checking for event->button == 3
configure.ac | 2 +-
src/giggle-file-list.c | 2 +-
src/giggle-rev-list-view.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9c4aebf..682d564 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,7 +49,7 @@ dnl ------------------
GLIB_REQUIRED_VERSION=2.30
GDK_PIXBUF_REQUIRED_VERSION=2.22
-GTK_REQUIRED_VERSION=3.0
+GTK_REQUIRED_VERSION=3.3.2
GTKSOURCE_REQUIRED_VERSION=3.0
EDS_REQUIRED_VERSION=3.2
VTE_REQUIRED_VERSION=0.28
diff --git a/src/giggle-file-list.c b/src/giggle-file-list.c
index 0555190..b436b26 100644
--- a/src/giggle-file-list.c
+++ b/src/giggle-file-list.c
@@ -248,7 +248,7 @@ file_list_button_press (GtkWidget *widget,
priv = GET_PRIV (list);
ignore = unignore = add = FALSE;
- if (event->button == 3) {
+ if (gdk_event_triggers_context_menu ((GdkEvent *) event)) {
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (list));
if (!gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget), event->x, event->y,
diff --git a/src/giggle-rev-list-view.c b/src/giggle-rev-list-view.c
index 03cc7bd..cde35fd 100644
--- a/src/giggle-rev-list-view.c
+++ b/src/giggle-rev-list-view.c
@@ -385,7 +385,7 @@ rev_list_view_button_press (GtkWidget *widget,
GtkTreeIter iter;
GiggleRevision *revision;
- if (event->button == 3) {
+ if (gdk_event_triggers_context_menu ((GdkEvent *) event)) {
priv = GET_PRIV (widget);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]