[gtk+] icon-theme: Allow symbolic GFileIcons
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icon-theme: Allow symbolic GFileIcons
- Date: Fri, 1 Jun 2012 14:42:00 +0000 (UTC)
commit d9a602f5906317402b226ec88ac72704903f41d4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat May 19 01:13:14 2012 -0400
icon-theme: Allow symbolic GFileIcons
gtk_icon_info_load_symbolic checks for the existance of a filename parameter
so it can include it along with the stylesheet. We don't set the filename
parameter when creating the info for a GFileIcon, for some reason.
https://bugzilla.gnome.org/show_bug.cgi?id=676356
gtk/gtkicontheme.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 3eb333f..fb59837 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3862,6 +3862,13 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme,
info = icon_info_new ();
info->loadable = G_LOADABLE_ICON (g_object_ref (icon));
+ if (G_IS_FILE_ICON (icon))
+ {
+ GFile *file = g_file_icon_get_file (G_FILE_ICON (icon));
+ if (file != NULL)
+ info->filename = g_file_get_path (file);
+ }
+
info->dir_type = ICON_THEME_DIR_UNTHEMED;
info->dir_size = size;
info->desired_size = size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]