mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
gtklabel: Use symbolic names for button numbers
This commit is contained in:
parent
c7756f0410
commit
38d869cb8e
@ -4641,7 +4641,7 @@ gtk_label_button_press (GtkWidget *widget,
|
|||||||
gtk_label_do_popup (label, event);
|
gtk_label_do_popup (label, event);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if (event->button == 1)
|
else if (event->button == GDK_BUTTON_PRIMARY)
|
||||||
{
|
{
|
||||||
info->link_clicked = 1;
|
info->link_clicked = 1;
|
||||||
gtk_widget_queue_draw (widget);
|
gtk_widget_queue_draw (widget);
|
||||||
@ -4660,7 +4660,7 @@ gtk_label_button_press (GtkWidget *widget,
|
|||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if (event->button == 1)
|
else if (event->button == GDK_BUTTON_PRIMARY)
|
||||||
{
|
{
|
||||||
if (!gtk_widget_has_focus (widget))
|
if (!gtk_widget_has_focus (widget))
|
||||||
{
|
{
|
||||||
@ -4761,7 +4761,7 @@ gtk_label_button_release (GtkWidget *widget,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event->button != 1)
|
if (event->button != GDK_BUTTON_PRIMARY)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (info->active_link &&
|
if (info->active_link &&
|
||||||
|
Loading…
Reference in New Issue
Block a user