Problem with xfce_themed_icon_load()
David B. Cortarello
nomius at users.berlios.de
Mon Nov 13 05:32:03 CET 2006
Without gtk_init it drops a bunch of errors. So it say "icon exists"
if I do gtk_init(NULL. NULL) before gtk_icon_theme_get_default().
On 11/12/06, Brian J. Tarricone <bjt23 at cornell.edu> wrote:
> David B. Cortarello wrote:
> > I don't know if I should send this mail to this list, if not my apologise:
> > I'm writing a small plugin for network configuration based on Benny's
> > Generic MCS plugin.
> > I'm using Nuvola theme, I have
> > /usr/share/icons/Nuvola/scalable/apps/network.svg, I have the svg
> > loader and svg engine. But in the code I have:
> > GdkPixbuf *pixbuf = xfce_themed_icon_load("network", 48);
> > And for some unknown reason pixbuf get's NULL so It goes to fallback
> > icon. The icon is loaded if it is in /usr/share/icons/network.svg
> > which is very weird...
> If you're using gtk 2.8+, make sure the icon cache file is up to date
> for Nuvola.
> If it is, please try something like this:
> GtkIconTheme *icon_theme = gtk_icon_theme_get_default();
> if(gtk_icon_theme_has_icon(icon_theme, "network"))
> g_print("icon exists\n");
> g_print("icon doesn't exist\n");
> If you get "icon doesn't exist", then it's a problem with your system,
> not Xfce.
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
David B. Cortarello <nomius at users.berlios.de>
Linux registered user: #291604
"Computer science is no more about computers than astronomy is about
telescopes." - Edsger Dijkstra
More information about the Xfce4-dev