mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Commit a forgotten fix.
This commit is contained in:
parent
bb57b98e6d
commit
776c9c7480
@ -1,3 +1,8 @@
|
||||
Fri Jun 25 00:32:15 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
|
||||
which was mentioned below.
|
||||
|
||||
Thu Jun 24 23:35:09 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_class_init): Fix a typo,
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jun 25 00:32:15 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
|
||||
which was mentioned below.
|
||||
|
||||
Thu Jun 24 23:35:09 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_class_init): Fix a typo,
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jun 25 00:32:15 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
|
||||
which was mentioned below.
|
||||
|
||||
Thu Jun 24 23:35:09 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_class_init): Fix a typo,
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jun 25 00:32:15 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
|
||||
which was mentioned below.
|
||||
|
||||
Thu Jun 24 23:35:09 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_class_init): Fix a typo,
|
||||
|
@ -2014,18 +2014,33 @@ gtk_tree_store_swap (GtkTreeStore *tree_store,
|
||||
gtk_tree_path_up (path_a);
|
||||
gtk_tree_path_up (path_b);
|
||||
|
||||
if (gtk_tree_path_compare (path_a, path_b))
|
||||
if (gtk_tree_path_get_depth (path_a) == 0
|
||||
|| gtk_tree_path_get_depth (path_b) == 0)
|
||||
{
|
||||
gtk_tree_path_free (path_a);
|
||||
gtk_tree_path_free (path_b);
|
||||
|
||||
g_warning ("Given childs are not in the same level\n");
|
||||
return;
|
||||
if (gtk_tree_path_get_depth (path_a) != gtk_tree_path_get_depth (path_b))
|
||||
{
|
||||
gtk_tree_path_free (path_a);
|
||||
gtk_tree_path_free (path_b);
|
||||
|
||||
g_warning ("Given children are not in the same level\n");
|
||||
return;
|
||||
}
|
||||
parent_node = G_NODE (tree_store->root);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (gtk_tree_path_compare (path_a, path_b))
|
||||
{
|
||||
gtk_tree_path_free (path_a);
|
||||
gtk_tree_path_free (path_b);
|
||||
|
||||
g_warning ("Given children don't have a common parent\n");
|
||||
return;
|
||||
}
|
||||
gtk_tree_model_get_iter (GTK_TREE_MODEL (tree_store), &parent,
|
||||
path_a);
|
||||
parent_node = G_NODE (parent.user_data);
|
||||
}
|
||||
|
||||
gtk_tree_model_get_iter (GTK_TREE_MODEL (tree_store), &parent, path_a);
|
||||
parent_node = G_NODE (parent.user_data);
|
||||
|
||||
gtk_tree_path_free (path_b);
|
||||
|
||||
/* old links which we have to keep around */
|
||||
|
Loading…
Reference in New Issue
Block a user