Re: Insensitive pixmaps



>  While coding some feature for one of my projects using Gtk (GtkSQL), I
>  found that it would be really useful to be able to build GtkPixmaps
>  with two different images in them, one when sensitive, one when
>  unsensitive (so that Toolbars with no text can show which buttons are
>  sensitive, for example).
[snip]
>   1) is this already implemented somewhere ? (I checked all the
>      modifications in the latest Gtk+'s ChangeLog, but found nothing for
>      Pixmaps)

This is done in the Gnome libraries by the gnome-stock module.  You
can either explicitly provide a pixmap to use when the widget is
insensitive, or have it generate it for you from the normal version
automatically.

  Federico



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