GdkPixbuf object from stock icons

2007-09-23 Thread Zeeshan Ali
Hi! I was looking for a non-hackish way of creating a GdkPixbuf object out of stock icon. The first thing that comes to mind is: --CODE SNIPPET BEGIN-- image = gtk_image_new_from_stock (stock_id, size); pixbuf = gtk_image_get_pixbuf (image); ---

Re: GdkPixbuf object from stock icons

2007-09-22 Thread Zeeshan Ali
Hi! > Not so obviously. The primary difficulty is that your > problem is ill-posed. The stock icon look is affected by > theme, state and whatnot. It can even differ for different > widgets. I know that and that is why i only using the stock icons where the change of actual icon image doesn

Re: GdkPixbuf object from stock icons

2007-09-22 Thread Yeti
On Sat, Sep 22, 2007 at 03:17:51PM +0300, Zeeshan Ali wrote: > I was looking for a non-hackish way of creating a GdkPixbuf object > out of stock icon. The first thing that comes to mind is: > > --CODE SNIPPET BEGIN-- > > image = gtk_image_new_from_stock (stoc

GdkPixbuf object from stock icons

2007-09-22 Thread Zeeshan Ali
Hi! I was looking for a non-hackish way of creating a GdkPixbuf object out of stock icon. The first thing that comes to mind is: --CODE SNIPPET BEGIN-- image = gtk_image_new_from_stock (stock_id, size); pixbuf = gtk_image_get_pixbuf (image);