Good morning to everyone.
I am a c programmer, I used a lot visual C++ in windows and I started with visual programming in Linux using GTK. These days I'm fighting with dialogs.
I built a program that open a main window (made with glade) and pushing a button open a "dialog". I don't use gtkdialog because I need a little more complex one (I us a treeview) so I built a second windows (with glade too)
Even if I set the modal property this new dialog is not modal. I can't switch between windows (as modal) but it return immediately (unlike modal)
I noticed that gtk_dialog_run function fails (return -1) and the debug window says:
Quote:
(contabil.exe:4368): GLib-GObject-WARNING **: invalid cast from `GtkWindow' to `GtkDialog' (contabil.exe:4368): Gtk-CRITICAL **: gtk_dialog_run: assertion `GTK_IS_DIALOG (dialog)' failed
Can you please help me? Thanks in advance
Wally