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
This commit is contained in:
Marek Kasik 2015-05-28 16:43:57 +02:00
parent 8da91c38cc
commit bfd6423dc9

View file

@ -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