From 2406a5b256da7b0f23bd35ad391266987221d3a5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 20 Jun 2006 14:12:15 +0000 Subject: [PATCH] Better fix. 2006-06-20 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_info): Better fix. --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ gtk/gtktreeview.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 651c0d7979..3cb6e41e79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-06-20 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_info): Better + fix. + * gtk/gtk.symbols: * gtk/gtkprintsettings.h: * gtk/gtkprintsettings.c: Remove unused print-to-file setting. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 651c0d7979..3cb6e41e79 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2006-06-20 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_info): Better + fix. + * gtk/gtk.symbols: * gtk/gtkprintsettings.h: * gtk/gtkprintsettings.c: Remove unused print-to-file setting. diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 4307f9c7d0..dd0eddbb64 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -9028,7 +9028,7 @@ gtk_tree_view_set_column_drag_info (GtkTreeView *tree_view, /* We know there are always 2 slots possbile, as you can always return column. */ /* If that's all there is, return */ - if (g_list_length (tree_view->priv->column_drag_info) < 2 || + if (tree_view->priv->column_drag_info->next == NULL || (tree_view->priv->column_drag_info->next->next == NULL && ((GtkTreeViewColumnReorder *)tree_view->priv->column_drag_info->data)->right_column == column && ((GtkTreeViewColumnReorder *)tree_view->priv->column_drag_info->next->data)->left_column == column))