[gnome-control-center] printers: Set focus of the 'New printer dialog' correctly
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Set focus of the 'New printer dialog' correctly
- Date: Wed, 10 Jun 2015 09:35:23 +0000 (UTC)
commit bfd6423dc9d3079ce5be9dc9e36b56cb202c47bb
Author: Marek Kasik <mkasik redhat com>
Date: Thu May 28 16:43:57 2015 +0200
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index 75e579e..dcdda4d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]