Re: GTK_STOCK_FOLDER?



On Sun, Oct 26, 2003 at 01:40:05PM +0100, Jacob Kolding wrote:
> On Sun, 2003-10-26 at 12:59, Thomas Leonard wrote:
> > On Sat, 25 Oct 2003 12:05:14 +0200 Jacob Kolding <jacob omnia dk> wrote:
> > 
> > > Will there be at folder stock item in gtk2.4?
> > > 
> > > I'm currently using GTK_STOCK_OPEN to represent folders,
> > > don't think that conforms to the HIG?
> > 
> > It would be better to use the theme icon for directories, like the file
> > chooser does/will (theme icon name 'mime-inode:directory', falling back to
> > 'gnome-fs-directory'[1] if that's not found).
> 
> How do I access mime-inode:directory? is that a gnome thing?
> I'm trying to keep my app GTK+ only.

Get it through the icon theme:

	http://www.freedesktop.org/Standards/icon-theme-spec

GTK has new functions to support this.

The icons with the 'gnome-' prefix are the old GNOME-specific ones, but
'mime-inode:directory' and similar use the new shared naming scheme:

	http://www.freedesktop.org/standards/shared-mime-info-spec

Since GTK already uses the icon theme system for the chooser, this
shouldn't add any extra dependancies.


-- 
Thomas Leonard			http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk	tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]