I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My application also use SDL and i want to enable SDL hacking to encapsulate it on a gtk window. My gtk application run pefectly. I can show widget and use it. My problem is that i cannot get this code to work (it work perfectly under linux): sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget ::gobj()->window)); I cannot get WINDOWID. When i use the macro GDK_WINDOW_XWINDOW i get the following error: (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): Gdk-WARNING **: /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk drawable-x11.c:971 drawable is not a pixmap or window What's the problem? Anyone know where the problem is? Thanks. Carmelo Gallucci _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list