summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@lanedo.com>2011-09-27 15:37:28 +0200
committerMichael Natterer <mitch@gimp.org>2011-09-27 15:45:18 +0200
commit2d3db3421fd8067dd9c59a0727da239936187cc5 (patch)
treec9668bfba51b4df9dd76b478cc3c1b10e51973cd /gtk/gtklabel.c
parent27cbbc4a7d8e8f010b5b83f7563b6cc36926c8cb (diff)
downloadgtk+-2d3db3421fd8067dd9c59a0727da239936187cc5.tar.gz
Bug 659406 - Abstract what triggers a context menu
Add gdk_event_triggers_context_menu(), using the new modifier abstraction API. Remove _gtk_button_event_triggers_context_menu() and port all callers.
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 00422a5347..35467490fd 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4715,7 +4715,7 @@ gtk_label_button_press (GtkWidget *widget,
if (info->active_link)
{
- if (_gtk_button_event_triggers_context_menu (event))
+ if (gdk_event_triggers_context_menu ((GdkEvent *) event))
{
info->link_clicked = 1;
gtk_label_do_popup (label, event);
@@ -4734,7 +4734,7 @@ gtk_label_button_press (GtkWidget *widget,
info->in_drag = FALSE;
info->select_words = FALSE;
- if (_gtk_button_event_triggers_context_menu (event))
+ if (gdk_event_triggers_context_menu ((GdkEvent *) event))
{
gtk_label_do_popup (label, event);