Rather than showing the window, call realize(). That does everything
that show() does EXCEPT make the window visible. Then you should be able
to get the background color. X doesn't send the communication to the
server until there is idle time OR you force it (by calling realize()).

On Tue, 2009-03-17 at 00:11 +0300, Vlad Volodin wrote:
> Sorry, Brian,
> but as I said before, I also can't get the correct GtkWindow
> background color before it is shown. why?
> (thank you for your reply)
> 
> 2009/3/16 Brian J. Tarricone <bj...@cornell.edu>:
> > Vlad Volodin wrote:
> >
> >> The canvas is white, and it doesn't have some kind of transparency.
> >> So, as I thought, I decided to fill it's background with color, got
> >> from it's GtkStyle. After some experiments I realized, that widgets
> >> (main window, container and GtkClutterEmbed) don't have needed color:
> >
> > You really just can't use this method at all.  Some widgets won't have a
> > color as a background; they'll have a pixmap.  You won't be able to paint it
> > using this method.
> >
> >        -brian
> >
> > _______________________________________________
> > gtk-app-devel-list mailing list
> > gtk-app-devel-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> >
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to