From 22cb7ccedb244144ba0d709c5551559976fb7a5c Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Sun, 27 Sep 2015 23:58:09 -0500 Subject: [PATCH] printers: Avoid warning about unparented ppd selection dialog Just need to call gtk_window_set_transient_for() a bit earlier. https://bugzilla.gnome.org/show_bug.cgi?id=755713 --- panels/printers/pp-ppd-selection-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panels/printers/pp-ppd-selection-dialog.c b/panels/printers/pp-ppd-selection-dialog.c index 8c2b1ca48..bfa92f483 100644 --- a/panels/printers/pp-ppd-selection-dialog.c +++ b/panels/printers/pp-ppd-selection-dialog.c @@ -366,13 +366,14 @@ pp_ppd_selection_dialog_new (GtkWindow *parent, g_signal_connect (dialog->dialog, "delete-event", G_CALLBACK (gtk_widget_hide_on_delete), NULL); g_signal_connect (dialog->dialog, "response", G_CALLBACK (ppd_selection_dialog_response_cb), dialog); + gtk_window_set_transient_for (GTK_WINDOW (dialog->dialog), GTK_WINDOW (parent)); + widget = (GtkWidget*) gtk_builder_get_object (dialog->builder, "ppd-spinner"); gtk_spinner_start (GTK_SPINNER (widget)); populate_dialog (dialog); - gtk_window_set_transient_for (GTK_WINDOW (dialog->dialog), GTK_WINDOW (parent)); gtk_window_present (GTK_WINDOW (dialog->dialog)); gtk_widget_show_all (GTK_WIDGET (dialog->dialog));