diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2012-01-25 18:34:11 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-01-27 09:47:43 +0100 |
commit | 38d869cb8e8d8527a2870e3cd9ed8ebe547ddd0f (patch) | |
tree | 0ebb43891de658289b11f755e2e812cad3876699 /gtk/gtklabel.c | |
parent | c7756f04107b5aad2fcadc54a39ae38303df0969 (diff) | |
download | gtk+-38d869cb8e8d8527a2870e3cd9ed8ebe547ddd0f.tar.gz |
gtklabel: Use symbolic names for button numbers
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index b56bd7bbd5..ae6b755b81 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -4641,7 +4641,7 @@ gtk_label_button_press (GtkWidget *widget, gtk_label_do_popup (label, event); return TRUE; } - else if (event->button == 1) + else if (event->button == GDK_BUTTON_PRIMARY) { info->link_clicked = 1; gtk_widget_queue_draw (widget); @@ -4660,7 +4660,7 @@ gtk_label_button_press (GtkWidget *widget, return TRUE; } - else if (event->button == 1) + else if (event->button == GDK_BUTTON_PRIMARY) { if (!gtk_widget_has_focus (widget)) { @@ -4761,7 +4761,7 @@ gtk_label_button_release (GtkWidget *widget, return FALSE; } - if (event->button != 1) + if (event->button != GDK_BUTTON_PRIMARY) return FALSE; if (info->active_link && |