[gnome-control-center] printers: Avoid warning about unparented ppd selection dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Avoid warning about unparented ppd selection dialog
- Date: Thu, 8 Oct 2015 02:46:30 +0000 (UTC)
commit 22cb7ccedb244144ba0d709c5551559976fb7a5c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Sep 27 23:58:09 2015 -0500
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/printers/pp-ppd-selection-dialog.c b/panels/printers/pp-ppd-selection-dialog.c
index 8c2b1ca..bfa92f4 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]