Better fix.

2006-06-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_set_column_drag_info): Better
	fix.
This commit is contained in:
Matthias Clasen 2006-06-20 14:12:15 +00:00 committed by Matthias Clasen
parent 59862b0901
commit 2406a5b256
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2006-06-20 Matthias Clasen <mclasen@redhat.com>
* 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.

View File

@ -1,5 +1,8 @@
2006-06-20 Matthias Clasen <mclasen@redhat.com>
* 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.

View File

@ -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))