From c8bad34dafb19734e0423e91cc02cc6f4324437d Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Tue, 4 Jan 2005 22:10:56 +0000 Subject: [PATCH] only reorder on button 1, part of #141937 Tue Jan 4 16:52:14 2005 Jonathan Blandford * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): only reorder on button 1, part of #141937 --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ docs/reference/gtk/tmpl/gtkitemfactory.sgml | 4 ++-- gtk/gtktreeviewcolumn.c | 3 ++- 6 files changed, 24 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 933f07d9a7..aadd669b5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 4 16:52:14 2005 Jonathan Blandford + + * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): + only reorder on button 1, part of #141937 + Tue Jan 4 11:36:43 2005 Søren Sandmann Bug 162112. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 933f07d9a7..aadd669b5e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Tue Jan 4 16:52:14 2005 Jonathan Blandford + + * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): + only reorder on button 1, part of #141937 + Tue Jan 4 11:36:43 2005 Søren Sandmann Bug 162112. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 933f07d9a7..aadd669b5e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Tue Jan 4 16:52:14 2005 Jonathan Blandford + + * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): + only reorder on button 1, part of #141937 + Tue Jan 4 11:36:43 2005 Søren Sandmann Bug 162112. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 933f07d9a7..aadd669b5e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Tue Jan 4 16:52:14 2005 Jonathan Blandford + + * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): + only reorder on button 1, part of #141937 + Tue Jan 4 11:36:43 2005 Søren Sandmann Bug 162112. diff --git a/docs/reference/gtk/tmpl/gtkitemfactory.sgml b/docs/reference/gtk/tmpl/gtkitemfactory.sgml index 1195901c39..c018caa96b 100644 --- a/docs/reference/gtk/tmpl/gtkitemfactory.sgml +++ b/docs/reference/gtk/tmpl/gtkitemfactory.sgml @@ -37,8 +37,8 @@ and #GtkActionGroup. @path: The id of the message. In #GtkItemFactory this will be a path from a #GtkItemFactoryEntry, in #GtkActionGroup, it will be a label - or tooltip from a #GtkActionEntry. -@func_data: user data passed in when registering the function + or tooltip from a #GtkActionEntry. +@func_data: user data passed in when registering the function @Returns: the translated message 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,