Commit 76420c47 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

gtkexpander: Use symbolic names for button numbers

parent d088e729
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment