Re: gdk_window_set_decorations doesn't work



When I'm creating the window and I want to set it's decoration to 0. Then I
use gtk_widget_realize on the toplevel widget, then I retrieve the
"->window" of this object and apply to it the gdk_window_set_decoration.
Works fine for me!


Best regards,
---
Jean-Christophe Berthon



----- Original Message -----
From: "Christian Biesinger" <cbiesinger web de>
To: <gtk-list gnome org>
Sent: Tuesday, April 02, 2002 7:26 PM
Subject: gdk_window_set_decorations doesn't work


> Hello!
> I've got a problem with gdk_window_set_decorations.
> The problem is:
> I'm calling it like this:
>   GdkWindow *wnd = gtk_widget_get_toplevel(my_widget)->window;
>   gdk_window_set_decorations(wnd, 0);
>
> However, it doesn't work - the decorations don't change. It only works if
> I set the decorations before the window is shown, but this is unusable for
> me.
> Hiding the window, setting the decorations and then showing it again
> doesn't either.
>
>
> Does anybody have any ideas how to make it work?
>
> Thanks,
> Christian
>
> [please cc me on replies, I'm not subscribed to this list]
>
>
> --
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety."
>                                                  -- Benjamin Franklin
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list




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