summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-01-04 22:10:56 +0000
committerJonathan Blandford <jrb@src.gnome.org>2005-01-04 22:10:56 +0000
commitc8bad34dafb19734e0423e91cc02cc6f4324437d (patch)
treea0a869c0b896189c03f69b52a6c69151759a9e0f /gtk/gtktreeviewcolumn.c
parent7940c635e4719195bc685a390c6feba7a1184f25 (diff)
downloadgtk+-c8bad34dafb19734e0423e91cc02cc6f4324437d.tar.gz
only reorder on button 1, part of #141937
Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): only reorder on button 1, part of #141937
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index e2c5e1e4d2..843de6d986 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -1048,7 +1048,8 @@ gtk_tree_view_column_button_event (GtkWidget *widget,
g_return_val_if_fail (event != NULL, FALSE);
if (event->type == GDK_BUTTON_PRESS &&
- column->reorderable)
+ column->reorderable &&
+ ((GdkEventButton *)event)->button == 1)
{
column->maybe_reordered = TRUE;
gdk_window_get_pointer (widget->window,