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:
parent
8da91c38cc
commit
bfd6423dc9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue