GThemedIcon: nautilus has problems with fallbacks
- From: Nicolò Chieffo <nicolo chieffo gmail com>
- To: nautilus-list <nautilus-list gnome org>
- Subject: GThemedIcon: nautilus has problems with fallbacks
- Date: Fri, 12 Jun 2009 10:27:56 +0200
I've a problem in how a GThemedIcon is rendered in nautilus
Look at this piece of code:
GIcon* _g_local_file_info_get_folder_icon (const char* themed_icon_name)
{
const char *names[] = { themed_icon_name, "folder", NULL };
GIcon * icon = g_themed_icon_new_from_names (names, -1);
return icon;
}
looking at the glib help
http://library.gnome.org/devel/gio/unstable/GThemedIcon.html#g-themed-icon-new-from-names
(also look at the example), I understood that creating an icon in that
way would give me a themed icon with 2 possibilities: the first
(passed to the function as an argument) will be used normally, but if
missing in a theme, "folder" would be used as a fallback.
In nautilus the folder icon is always displayed, so it is not used as
a fallback, but as the primary.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]