[gtk+] gtktreeviewcolumn: Use symbolic names for button numbers
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtktreeviewcolumn: Use symbolic names for button numbers
- Date: Fri, 27 Jan 2012 08:50:18 +0000 (UTC)
commit 67c3bf7b027dc931b575f2a1f0f07552ce5c3390
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Jan 25 19:05:25 2012 +0100
gtktreeviewcolumn: Use symbolic names for button numbers
gtk/gtktreeviewcolumn.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index a7900db..0c735aa 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -1104,7 +1104,7 @@ gtk_tree_view_column_button_event (GtkWidget *widget,
if (event->type == GDK_BUTTON_PRESS &&
priv->reorderable &&
- ((GdkEventButton *)event)->button == 1)
+ ((GdkEventButton *)event)->button == GDK_BUTTON_PRIMARY)
{
priv->maybe_reordered = TRUE;
gdk_window_get_device_position (gtk_button_get_event_window (GTK_BUTTON (widget)),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]