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

Re: getting the depth before realizing any windows?




> Just realize the main window before you add pixmaps to the toolbar. In
> plain GTK, you would do:
> 
>   gtk_widget_realize(mainwindow);
> 
> I think you can figure out the correct method to call for Gtk--.
> 
Thanks, now I've found out that I can get the depth by using
Gdk_Window::get_depth() (in c++)
even if the window isn't connected at that moment. So everything works!

> Almost forgot: please don't cross-post between gtk-list and
> gtk-app-devel-list.
> 
Ok, no problem, next time I might post only to gtk-app-devel-list,
allright?:-)

Oliver





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