gtkexpander: Use symbolic names for button numbers

This commit is contained in:
Carlos Garcia Campos 2012-01-25 18:29:30 +01:00 committed by Carlos Garcia Campos
parent d088e729e5
commit 76420c4793

View File

@ -1032,7 +1032,7 @@ gtk_expander_button_press (GtkWidget *widget,
{
GtkExpander *expander = GTK_EXPANDER (widget);
if (event->button == 1 && event->window == expander->priv->event_window)
if (event->button == GDK_BUTTON_PRIMARY && event->window == expander->priv->event_window)
{
expander->priv->button_down = TRUE;
return TRUE;
@ -1047,7 +1047,7 @@ gtk_expander_button_release (GtkWidget *widget,
{
GtkExpander *expander = GTK_EXPANDER (widget);
if (event->button == 1 && expander->priv->button_down)
if (event->button == GDK_BUTTON_PRIMARY && expander->priv->button_down)
{
gtk_widget_activate (widget);
expander->priv->button_down = FALSE;