Re: stock items: how this stuff works ?
- From: Vincent Torri <torri math u-strasbg fr>
- To: Olexiy Avramchenko <olexiy irtech cn ua>
- Cc: Vincent Torri <torri math u-strasbg fr>, gtk-app-devel-list gnome org
- Subject: Re: stock items: how this stuff works ?
- Date: Thu, 8 Apr 2004 12:00:29 +0200 (MEST)
On Thu, 8 Apr 2004, Olexiy Avramchenko wrote:
Vincent Torri wrote:
Hello,
I am trying to make a small program which can use images like stock icons
in gtk. I have implemented some functions to handle icons, but i am not
satisfied with them. My main purpose is to retrieve the path and the
name of the image file.
So i looked at the gtk source code. I think that there is two files that
are important : gtkimage.h/c and gtkstock.h/c. But i can't find where you
retrieve the path and the name of the icon (in the
gtk_image_new_from_stock for example)
Could you explain me how it works ?
Hi,
The stock icons are stuffed inside the library.
i know that
gtk_image_from_stock()
gets a const id for each stock icon, not a path to file.
I know that. What i want to know is how the path is retrieve when you only
have the id.
You can get
stock images from gtk+ distro, "gtk+-2*/gtk/stock-icons" subdir. BTW you
may wan to examine generated "gtkstockpixbufs.h" file there and look at
'man gdk-pixbuf-csource'.
the file gtkstockpixbufs.h gives info on the data of the icons (if i have
correctly understood it). I don't think that gdk-pixbuf-csource is really
what i want, as it requires tha path name of the icon. And i am looking
for it when i only have the id of the icon.
Thanks anyway for your answer !
Vincent TORRI
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]