From 56b752abf54ce71259dffdc853dab24bcd2ad630 Mon Sep 17 00:00:00 2001 From: gunnar_g Date: Mon, 15 Dec 2008 13:36:50 +0000 Subject: [PATCH] Country_flags are shown again. --- src/treeview.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/treeview.c b/src/treeview.c index 406de170..5f29e68b 100644 --- a/src/treeview.c +++ b/src/treeview.c @@ -2641,7 +2641,7 @@ treeview_create_country_list(const GPtrArray *country_list) gint i; guint j; GtkTreeStore *ls = gtk_tree_store_new(2, GDK_TYPE_PIXBUF, G_TYPE_STRING); - gchar buf[SMALL], buf2[SMALL], trash[SMALL]; + gchar buf[SMALL]; gchar **dir_split_up; // This will keep the iterators for each level of the TreeStore GPtrArray *iterators; @@ -2663,7 +2663,8 @@ treeview_create_country_list(const GPtrArray *country_list) sprintf(current_country, "%.*s", strlen(current_country) - 1, ¤t_country[1]); } dir_split_up = g_strsplit_set (current_country, G_DIR_SEPARATOR_S, -1); - // We only go up to the before last column + // We only go up to the before last column. We don't want to show the + // file itself for (j=0; j