Re: iconify with pixmap in Openwin

On Mon, 12 Feb 2001, Ben Dougherty wrote:

> Hi all,
> I've just started programming with GTK and have run into a problem with
> gdk_window_set_icon.
> What I found is that when I pass a valid pixmap to gdk it does not
> display the icon within
> Openwindows. I did some digging and found than the WM expects a bitmap
> and thus works if I
> pass it a bitmap.(I also tested the pixmap in Gnome and that worked ok)
> The main problem is that there is no error returned when
> gdk_window_set_icon fails to display
> the icon pixmap (if there was I could then fallback to a bitmap).
> Therefor my question is has
> anyone come across this problem before and if so how did you tackle it?

The specification for those hints says that you must pass in bitmaps for
the icon, although most modern window managers that do iconification
handle pixmaps as well.

If you want to have a multi colour icon that works with all window
managers, you should set the icon_window argument to gdk_window_set_icon,
and handle repaints for that window (or set its background pixmap and mask


Email: james daa com au

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