Does not set transient windows as modal

This prevented user to close the preview window and caused a freeze in
the audio wizard
This commit is contained in:
François Grisez 2015-07-21 11:15:26 +02:00
parent 157c61d2f5
commit 3c147be53f

View file

@ -403,11 +403,11 @@ GtkWidget *linphone_gtk_create_window(const char *window_name, GtkWidget *parent
gtk_builder_connect_signals(builder,w);
linphone_gtk_configure_window(w,window_name);
if(parent) {
gtk_window_set_modal(GTK_WINDOW(w), TRUE);
// gtk_window_set_modal(GTK_WINDOW(w), TRUE);
gtk_window_set_transient_for(GTK_WINDOW(w), GTK_WINDOW(parent));
gtk_window_set_position(GTK_WINDOW(w), GTK_WIN_POS_CENTER_ON_PARENT);
} else {
gtk_window_set_modal(GTK_WINDOW(w), FALSE);
// gtk_window_set_modal(GTK_WINDOW(w), FALSE);
}
return w;
}