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 */ regards Vincent TORRI On Tue, 13 Jul 2004, Dipak G Patil wrote: > Hi, > > I have created a window using gtk_window_new which returns GtkWidget * . > Now I want to use API gdk_window_maximize which takes GdkWindow *, so how > would I cast GtkWidget. > neither GDK_WINDOW() casting nor gtkwidget->window works...? > > > Thanks and regards, > Dipak G Patil. > _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list