Bug#366253: libgtk2.0-0: Windows created by gtk-apps don't have Transient property

Emil Nowak emil5 at go2.pl
Thu May 11 12:23:46 UTC 2006


On 2006-05-06 (Sat), at 16:13:56 Emil Nowak wrote:

> Current GTK version does not set the WM_TRANSIENT_FOR hint for windows. 
Oki, I have just investigated this problem, and I realized that the second
argument I was passing to gtk_set_trasient_for was not a valid GtkWindow*.

But usually all gtk methods have some checking for arguments. It seems that
this function doesn't have.

I have checked the gt sources and in gtkwindow.c, at the begging of this
function, there is a checking like this:
g_return_if_fail (parent == NULL || GTK_IS_WINDOW (parent));

but it never fails whatever you pass as parent.

The attached example shows the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transient_notfail.c
Type: text/x-csrc
Size: 686 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20060511/7dc6c326/transient_notfail.c


More information about the Pkg-gnome-maintainers mailing list