[Xfce4-commits] <exo:nick/icon-model-without-dups> Add some temporary merge information.
Nick Schermer
noreply at xfce.org
Sun Feb 27 20:16:01 CET 2011
Updating branch refs/heads/nick/icon-model-without-dups
to 395a608374d2f96c7c33626a2d18b722a141bece (commit)
from 64337d5176fe01644b2e9bc3dd3611433709ab4a (commit)
commit 395a608374d2f96c7c33626a2d18b722a141bece
Author: Nick Schermer <nick at xfce.org>
Date: Sun Feb 27 20:13:18 2011 +0100
Add some temporary merge information.
exo/exo-icon-chooser-model.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/exo/exo-icon-chooser-model.c b/exo/exo-icon-chooser-model.c
index 7b70bf8..9150a24 100644
--- a/exo/exo-icon-chooser-model.c
+++ b/exo/exo-icon-chooser-model.c
@@ -470,6 +470,7 @@ exo_icon_chooser_model_icon_theme_changed (GtkIconTheme *icon_theme,
GtkTreePath *path;
GtkTreeIter iter;
GtkIconInfo *icon_info;
+ guint before_merge, after_merge;
/* allocate a path to the first model item */
path = gtk_tree_path_new_from_indices (0, -1);
@@ -542,7 +543,11 @@ exo_icon_chooser_model_icon_theme_changed (GtkIconTheme *icon_theme,
}
/* merge the symlinks in the items */
+ before_merge = g_hash_table_size (symlink_items);
g_hash_table_foreach_remove (symlink_items, exo_icon_chooser_model_merge_symlinks, items);
+ after_merge = g_hash_table_size (symlink_items);
+ g_message ("%d symlink icons merged, %d broken symlinks, %d icons in model",
+ before_merge - after_merge, after_merge, g_hash_table_size (items));
g_hash_table_destroy (symlink_items);
/* create a sorted list of the resulting table */
More information about the Xfce4-commits
mailing list