A couple of questions about icons
- From: Daniel Brockman <drlion deepwood net>
- To: gtk-list gnome org
- Subject: A couple of questions about icons
- Date: Wed, 01 Sep 2004 21:09:25 +0200
I'm working on a continuous little project of mine -- namely, trying
to learn how to build GUI applications using GTK+. My current concern
is icons, and I have run into some AFAICT undocumented problems.
* The icons on stock buttons like `Add' and `New' (created using
libglade) look bad. This seems to be because Glade or GTK+ wants
the icons to be 20x20 pixels in size, but the stock icons do not
come in this size. What's baffling about this is that, e.g.,
Bluecurve *does* carry all the icons in this size; it just doesn't
declare them in its `iconrc' file.
Owen hastily tried to explain this to me on IRC yesterday, but I
have not really been able to figure out what he meant. I wrote:
``How come the iconrc for Bluecurve in the redhat-artwork package
doesn't define, for instance, a 20x20 stock `New' icon, or a
16x16 stock `Close' icon? I mean, all the icons are there, but
most icon/size combinations just aren't defined in the rc file.
This results in, e.g., ugly `New' buttons.''
``The most recent version of the RC file is suppoesd to
*exactly* match the sizes provided by the default GTK+ theme.
Really, with GTK+-2.4, the icon RC file just needs to be
I'm guessing that the RC file stock icon declarations are being
phased out in favor of the kind of lookups described by the Icon
Theme Specification. If so, then I suppose that is what Owen
was referring to. However, I don't see how I can use this with
GTK+ stock items, because the stock icons seem to break if I
delete the icon RC file.
If I give up trying to use the stock items, I can get good looking
icons by manually fetching them from a GtkIconTheme and packing
them with labels into buttons. I would be satisfied with this, if
it weren't for my next problem.
* The Bluecurve theme from the redhat-artwork package calls its
icons hyphenated names like `stock-connect', `stock-new', and
`stock-zoom-out', while, e.g., the gnome theme from the
gnome-icon-theme package instead uses names like
`stock_connect', `stock_new', and and `stock_zoom-out'.
This seems to mean that the `stock_foo-bar' style will be more
portable, but the `stock-foo-bar' style will look better when
using Bluecurve. Here, I'm quite confident that I do not
understand what is going on, because this dilemma seems too
ridiculous to be true.
If someone could shed some light to these issues, or point me to a
good example of an application that uses icons properly, that would be
drlion deepwood net
] [Thread Prev