forked from AuroraMiddleware/gtk
gtkexpander: Use symbolic names for button numbers
This commit is contained in:
parent
d088e729e5
commit
76420c4793
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user