Hi folks,
I know that this is more a GTK+ question than an xblite one, but I'm trying to use Liviu Armeanu's GTK+ binding for xblite to create a "File Open" dialog window...
At runtime, I get this error : Gtk-CRITICAL **:gtk_window_set_transient_for: assertion `parent == NULL || GTK_IS_WINDOW (parent)' failed
This is like the parent window that is then passed to the "File Open" dialog could not be created.
Is there some GTK guru here? Here the code:
gtk_init (argc, argv) window = gtk_window_new ($$GTK_WINDOW_TOPLEVEL) title$ = "Open file" dialog = gtk_file_chooser_dialog_new (&title$, &window, $$GTK_FILE_CHOOSER_ACTION_OPEN, &$$GTK_STOCK_CANCEL, $$GTK_RESPONSE_CANCEL, &$$GTK_STOCK_OPEN, $$GTK_RESPONSE_ACCEPT, NULL) gtk_main () |