Hi,

Vincent Torri <[EMAIL PROTECTED]> writes:

> GtkWidget *gtk_win;
> GdkWindow *gdk_win;
> 
> gtk_win = gtk_window_new (...);
> gtk_widget_realize (gtk_win); /* to create GDk ressources for gtk_win, in
> particular gtk_win->window */
> gdk_win = gtk_win->window; /* to get the gdk window */

Whenever you need to call gtk_widget_realize() you are most probably
doing something wrong. Well, not necessarily wrong, but certainly not
the best way. In this particular example it is not necessary to access
the GDK window since there is gtk_window_maximize() which will take
care of doing the right thing.


Sven

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to