Bugzilla – Attachment 211644 Details for
Bug 377733
gnome file-chooser displays wrong icons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
First attempt to fix this
chooser-gio.patch (text/plain), 848 bytes, created by
Vincent Untz
on 2008-04-30 21:11:30 UTC
(
hide
)
Description:
First attempt to fix this
Filename:
MIME Type:
Creator:
Vincent Untz
Created:
2008-04-30 21:11:30 UTC
Size:
848 bytes
patch
obsolete
>Index: gtkfilesystemgio.c >=================================================================== >--- gtkfilesystemgio.c (révision 5600) >+++ gtkfilesystemgio.c (copie de travail) >@@ -852,8 +852,18 @@ get_icon_string (GIcon *icon) > /* FIXME: choose between names */ > names = g_themed_icon_get_names (G_THEMED_ICON (icon)); > >- if (names) >- name = g_strdup (names [0]); >+ if (names) { >+ GtkIconTheme *icon_theme; >+ GtkIconInfo *gtkicon_info; >+ >+ icon_theme = gtk_icon_theme_get_default (); >+ gtkicon_info = gtk_icon_theme_choose_icon (icon_theme, names, 16, 0); >+ if (gtkicon_info != NULL) >+ { >+ name = g_strdup (gtk_icon_info_get_filename (gtkicon_info)); >+ gtk_icon_info_free (gtkicon_info); >+ } >+ } > } > else if (G_IS_FILE_ICON (icon)) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 377733
:
206586
|
211627
| 211644