Arvind1 K ([EMAIL PROTECTED]) wrote: > I'm facing a strange problem while using GTK+ Dialog box > I've used two dialogs one in IF and other in ELSE > > if (some condition) > { > GtkWidget *dialog1 = gtk_message_dialog_new (main_window, [...] > } else { > GtkWidget *dialog2 = gtk_message_dialog_new (main_window, [...] > result = gtk_dialog_run (GTK_DIALOG (dialog2)); > gtk_widget_destroy (dialog2); > } > > However if I use just a single dialog box at a time, everything works > fine.
I don't understand when the problem happens. The sourcecode is not very specific and it does not explain how two dialogs come into play, since after executing this code there is just one dialog open. > I've used gdk_threads_enter() and gdk_threads_leave() whereever possible. > these dialog boxes are created on 'select' event of CList so i cannot use > gdk_threads_enter() and gdk_threads_leave(). Do you actually use threads? > I need to have few more dialog boxes, but using only 2 is causing problems > of application crash. > Can anybody address this issue? I did not yet really understand the problem, I suspect there is a lot of background information missing. Bye, Simon -- [EMAIL PROTECTED] http://simon.budig.de/ _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers