gtk+ r21702 - in trunk: . gtk
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21702 - in trunk: . gtk
- Date: Thu, 23 Oct 2008 09:59:46 +0000 (UTC)
Author: alexl
Date: Thu Oct 23 09:59:46 2008
New Revision: 21702
URL: http://svn.gnome.org/viewvc/gtk+?rev=21702&view=rev
Log:
2008-10-23 Alexander Larsson <alexl redhat com>
Bug 528320 - Incorrect icons displayed for files with custom mimetype icons
* gtk/gtkfilesystem.c:
(_gtk_file_info_render_icon):
Fall back on default file icon if there was no icon or it
was not found in the theme. This goes with the corresponding
change in glib to not add the fallback icon, but is useful
in other cases too.
Modified:
trunk/ChangeLog
trunk/gtk/gtkfilesystem.c
Modified: trunk/gtk/gtkfilesystem.c
==============================================================================
--- trunk/gtk/gtkfilesystem.c (original)
+++ trunk/gtk/gtkfilesystem.c Thu Oct 23 09:59:46 2008
@@ -1738,6 +1738,14 @@
if (icon)
pixbuf = get_pixbuf_from_gicon (icon, widget, icon_size, NULL);
+
+ if (!pixbuf)
+ {
+ /* Use general fallback for all files without icon */
+ icon = g_themed_icon_new ("text-x-generic");
+ pixbuf = get_pixbuf_from_gicon (icon, widget, icon_size, NULL);
+ g_object_unref (icon);
+ }
}
return pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]