GtkDialog Usage



Hello. 
I have problem with GtkDialog.

In my application there is main window, on main window there is button wich activate 
the follow code:
if(dialog){
  gint res=gtk_dialog_run(GTK_DIALOG(window));
  return res;
}

dialog = gtk_dialog_new();
//fill dialog with widgest

gint res=gtk_dialog_run(GTK_DIALOG(window));
return res;

If I didn't click on button which show dialog all right.
But if I click, then after close main window program still alive,
and only Ctrl+C help to close it.







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