anjuta r3637 - in trunk: . plugins/file-manager



Author: jhs
Date: Mon Feb 11 21:07:21 2008
New Revision: 3637
URL: http://svn.gnome.org/viewvc/anjuta?rev=3637&view=rev

Log:
2008-02-11  Johannes Schmid <jhs gnome org>

	* plugins/file-manager/file-model.c: (file_model_expand_idle):
  515868 â File browser only shows icons when activated

Modified:
   trunk/ChangeLog
   trunk/plugins/file-manager/file-model.c

Modified: trunk/plugins/file-manager/file-model.c
==============================================================================
--- trunk/plugins/file-manager/file-model.c	(original)
+++ trunk/plugins/file-manager/file-model.c	Mon Feb 11 21:07:21 2008
@@ -181,7 +181,7 @@
 		const gchar* mime_type = gnome_vfs_file_info_get_mime_type (info);
 		gchar* uri = g_build_filename (expand->uri, info->name, NULL);
 		
-		if (pixbuf)
+		if (mime_type)
 		  pixbuf = gdl_icons_get_mime_icon (priv->icons, mime_type);
 		
 		gtk_tree_store_append (store, &new_iter, &parent);
@@ -189,6 +189,8 @@
 		if (mime_type && g_str_equal (mime_type, DIRECTORY_MIME_TYPE))
 		{
 			file_model_add_dummy (model, &new_iter);
+			if (!pixbuf)
+			  pixbuf = gdl_icons_get_mime_icon (priv->icons, DIRECTORY_MIME_TYPE);
 			directory = TRUE;
 		}
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]