From bfd6423dc9d3079ce5be9dc9e36b56cb202c47bb Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Thu, 28 May 2015 16:43:57 +0200 Subject: [PATCH] printers: Set focus of the 'New printer dialog' correctly Show the 'New printer dialog' after setting transient parent for it so that the warning about missing transient parent is not shown to the user and the dialog is correctly focused. https://bugzilla.gnome.org/show_bug.cgi?id=748206 --- panels/printers/pp-new-printer-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c index 75e579e99..dcdda4d26 100644 --- a/panels/printers/pp-new-printer-dialog.c +++ b/panels/printers/pp-new-printer-dialog.c @@ -191,6 +191,8 @@ pp_new_printer_dialog_new (GtkWindow *parent, gtk_window_set_transient_for (GTK_WINDOW (priv->dialog), GTK_WINDOW (parent)); + gtk_widget_show_all (priv->dialog); + return PP_NEW_PRINTER_DIALOG (dialog); } @@ -421,8 +423,6 @@ pp_new_printer_dialog_init (PpNewPrinterDialog *dialog) /* Fill with data */ populate_devices_list (dialog); - - gtk_widget_show (priv->dialog); } static void