[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdk-window-set-icon null-ok
From: |
Andreas Rottmann |
Subject: |
Re: gdk-window-set-icon null-ok |
Date: |
Mon, 28 Feb 2005 02:21:20 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Kevin Ryde <address@hidden> writes:
> gdk-window-set-icon should allow #f for some or all of the iconwin,
> pixmap and bitmap fields. I updated guile-gtk, I think guile-gnome
> needs the same, eg.
>
> (gdk-window-set-icon (make <gdk-window>) #f #f #f)
> => error
>
I've now checked in
address@hidden/gtk--dev--0--patch-3, which fixes
this, but there is another problem:
guile> (use-modules (gnome-0))
guile> (use-modules (gnome gtk))
guile> (gdk-window-set-icon (make <gdk-window>) #f #f #f)
(<unknown>:15038): Gdk-CRITICAL **: gdk_window_set_icon: assertion
`GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD' failed
guile>
AFAICS, there is currently now way to specify that the window created
should be of type toplevel, since GdkWindowAttr is not wrapped and
thus there is now meaningful way of calling gdk-window-new. I'm not
sure what magic it is that makes the (make <gdk-window>), which is
parameterless (as opposed to gdk-window-new) - GdkWindow isn't a
GObject, or did I miss something? Perhaps Andy Wingo can shed some
light on this (perhaps the make constructor provides a way around
having to wrap GdkWindowAttr ;).
Regards, Rotty
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
Python is executable pseudocode, Perl is executable line-noise.