Author: benny
Date: 2006-07-30 20:29:23 +0000 (Sun, 30 Jul 2006)
New Revision: 22573
Modified:
thunar/trunk/ChangeLog
thunar/trunk/thunar/thunar-tree-model.c
Log:
2006-07-30 Benedikt Meurer <[EMAIL PROTECTED]>
* thunar/thunar-tree-model.c: Emit "row-deleted" prior to deleting the
node from the tree structure, as required for GTK+ 2.10.
Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog 2006-07-30 19:20:22 UTC (rev 22572)
+++ thunar/trunk/ChangeLog 2006-07-30 20:29:23 UTC (rev 22573)
@@ -1,5 +1,10 @@
2006-07-30 Benedikt Meurer <[EMAIL PROTECTED]>
+ * thunar/thunar-tree-model.c: Emit "row-deleted" prior to deleting the
+ node from the tree structure, as required for GTK+ 2.10.
+
+2006-07-30 Benedikt Meurer <[EMAIL PROTECTED]>
+
* acinclude.m4(BM_THUNAR_PLUGIN_TPA): Display "no" if the tpa plugin
should not be build.
* configure.in.in: Finally fix the glibc detection.
Modified: thunar/trunk/thunar/thunar-tree-model.c
===================================================================
--- thunar/trunk/thunar/thunar-tree-model.c 2006-07-30 19:20:22 UTC (rev
22572)
+++ thunar/trunk/thunar/thunar-tree-model.c 2006-07-30 20:29:23 UTC (rev
22573)
@@ -1492,12 +1492,12 @@
path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), &iter);
if (G_LIKELY (path != NULL))
{
+ /* notify the view */
+ gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
+
/* drop the dummy from the model */
g_node_destroy (node->children);
- /* notify the view */
- gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
-
/* determine the iter to the parent node */
iter.stamp = model->stamp;
iter.user_data = node;
@@ -1573,15 +1573,15 @@
path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), &iter);
if (G_LIKELY (path != NULL))
{
+ /* emit a "row-deleted" */
+ gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
+
/* release the item for the node */
thunar_tree_model_node_traverse_free (node, user_data);
/* remove the node from the tree */
g_node_destroy (node);
- /* emit a "row-deleted" */
- gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
-
/* release the path */
gtk_tree_path_free (path);
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits