From a7add6d6be6f211ef59956b5aa3fdf70b725e4df Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Wed, 14 Jun 2017 01:20:13 +0530 Subject: [PATCH] utils: set recurrence-dialog transient for toplevel widget Setting the recurrence-dialog transient for 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 --- src/gcal-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-utils.c b/src/gcal-utils.c index 43397a09..a26a3bc3 100644 --- a/src/gcal-utils.c +++ b/src/gcal-utils.c @@ -1200,7 +1200,7 @@ ask_recurrence_modification_type (GtkWidget *parent, gtk_dialog_add_button (GTK_DIALOG (dialog), _("_All events"), GTK_RESPONSE_YES); - gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent)); + gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (gtk_widget_get_toplevel (parent))); result = gtk_dialog_run (GTK_DIALOG (dialog));