[gtk+] gtkexpander: Use symbolic names for button numbers
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkexpander: Use symbolic names for button numbers
- Date: Fri, 27 Jan 2012 08:49:07 +0000 (UTC)
commit 76420c4793e1d7b3d8cb36fe48c6203c400c4a96
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Jan 25 18:29:30 2012 +0100
gtkexpander: Use symbolic names for button numbers
gtk/gtkexpander.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index ebd247d..ba1af46 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]