utils: set recurrence-dialog modal to toplevel widget

Setting the recurrence-dialog modal to toplevel widget
allows us to take care of
ask_recurrence_modification_type() calls in the
various views.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
This commit is contained in:
Yash Singh
2017-06-12 14:46:38 -03:00
committed by Georges Basile Stavracas Neto
parent 0d05cc2bfc
commit 19f10697d5
+1 -1
View File
@@ -1180,7 +1180,7 @@ ask_recurrence_modification_type (GtkWidget *parent,
flags = GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT;
*modtype = E_CAL_OBJ_MOD_THIS;
dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (parent)),
flags,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_NONE,