Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-07-28 09:48:24

Jellybean
Member
Registered: 2007-02-17
Posts: 43

libxfcegui4 XfceIconTheme deprecated?

It seems like every function in XfceIconTheme is deprecated. What should I use instead?

Offline

#2 2007-08-03 11:22:57

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,143
Website

Re: libxfcegui4 XfceIconTheme deprecated?

Better use pixbuf loading from gtk/gdk.

Offline

#3 2007-08-06 14:29:43

Jellybean
Member
Registered: 2007-02-17
Posts: 43

Re: libxfcegui4 XfceIconTheme deprecated?

Ok, thanks.

Offline

#4 2007-08-27 13:05:28

Jellybean
Member
Registered: 2007-02-17
Posts: 43

Re: libxfcegui4 XfceIconTheme deprecated?

But gdk_pixbuf_new_from_file() requires the full path.

Offline

#5 2007-09-25 19:17:02

herd
Member
From: Germany
Registered: 2006-05-18
Posts: 143
Website

Re: libxfcegui4 XfceIconTheme deprecated?

If you need a themed generic icon, do something like:

            pixbuf = gtk_icon_theme_load_icon(theme,
                         "gnome-media-player",
                         icon_size,
                         0,
                         NULL);

lookup the names under /usr/share/pixmaps or icons

Also you can use themed gtk stock icons:

            pixbuf  = gtk_image_new_from_stock(
            GTK_STOCK_MEDIA_PLAY, GTK_ICON_SIZE_BUTTON);

hth,

herd

Offline

Board footer

Powered by FluxBB