Modal dialog - no more please!




Hello !

My modal dialog drives me crazy ?!
After closing the dialog and clicking to any other widget it
mystically appears again. What's strange is that it does not
happen always.

What's wrong with my dialog?

The structure is the following:

callback()
{
  <store result>
  gtk_main_quit();
} 

run_dialog()
{
  <create dialog>
  gtk_widget_show(dialog);
  gtk_main();  
  gtk_widget_destroy(dialog);
  return result;
}


Any ideas ?!

Thanks in advance and
 best regards
  Sven
-- 
            .-------------------------------------------------------.
    .^.     | Sven Anders, Germany | anderss@fmi.uni-passau.de      |
    /V\     |----------------------| www.fmi.uni-passau.de/~anderss |
   // \\    | Sites I recommend:   `--------------------------------|
  /(   )\   | www.freshmeat.net www.enlightenment.org www.gnome.org |
   ^^-^^    `-------------------------------------------------------'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]