Re: [Gambas-user] using icons from system theme without specifiying full path

2008-12-02 Thread joshiggins
Found the answer: Image.Load("pathtoimage").Stretch(24, 24, TRUE).Picture joshiggins wrote: > > Okay, I've got a bash script which you hand a .desktop file and it > searches > and returns the path of the icon (i'll post if anyone else is interested). > > but... not all the icons are the same si

Re: [Gambas-user] using icons from system theme without specifiying full path

2008-12-02 Thread Joshua Higgins
Okay, I've got a bash script which you hand a .desktop file and it searches and returns the path of the icon (i'll post if anyone else is interested). but... not all the icons are the same size. Is there a way (without manually resizing them) to have a consistent icon size in a ListView? 2008/12/

Re: [Gambas-user] using icons from system theme without specifiying full path

2008-12-02 Thread Benoit Minisini
On dimanche 30 novembre 2008, Joshua Higgins wrote: > well I'm making an application launcher. It reads all the .desktop > files from under /usr/share/applications and after loads of splitting adds > them to a ListView. > > .desktop file layed out as follows: > > [Desktop Entry] > Type=Applicat

Re: [Gambas-user] using icons from system theme without specifiying full path

2008-11-30 Thread Joshua Higgins
well I'm making an application launcher. It reads all the .desktop files from under /usr/share/applications and after loads of splitting adds them to a ListView. .desktop file layed out as follows: [Desktop Entry] Type=Application Name=Inkscape Comment=Vector Graphics Editor Exec=inkscape Ico

Re: [Gambas-user] using icons from system theme without specifiying full path

2008-11-30 Thread birchy
joshiggins wrote: > > Hi, > > I need to use the icons in my gambas program from the current system theme > in GTK/Gnome. At the moment I've been specifying the full path e.g. > > /usr/share/icons/Tango/32x32/apps/gnome-keyring-manager.png > > But ideally I need to just set gnome-keyring-manag

[Gambas-user] using icons from system theme without specifiying full path

2008-11-30 Thread Joshua Higgins
Hi, I need to use the icons in my gambas program from the current system theme in GTK/Gnome. At the moment I've been specifying the full path e.g. /usr/share/icons/Tango/32x32/apps/gnome-keyring-manager.png But ideally I need to just set gnome-keyring-manager as the image and it picks up the rig