[gnome-control-center] printers: List new printers ASAP in the "Add Printer" dialog
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: List new printers ASAP in the "Add Printer" dialog
- Date: Fri, 2 Dec 2016 14:13:36 +0000 (UTC)
commit 66c7f4530751cbfecbabf3013ab6060a982e9f49
Author: Felipe Borges <felipeborges gnome org>
Date: Fri Nov 25 16:34:43 2016 +0100
printers: List new printers ASAP in the "Add Printer" dialog
List a printer in the "Add Printer" dialog as soon as it is
discovered. The header subtitle "Searching for Printers"
denotes that the Search is not done yet.
https://bugzilla.gnome.org/show_bug.cgi?id=760783
panels/printers/pp-new-printer-dialog.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index d154bdb..4d91121 100644
--- a/panels/printers/pp-new-printer-dialog.c
+++ b/panels/printers/pp-new-printer-dialog.c
@@ -737,10 +737,10 @@ update_dialog_state (PpNewPrinterDialog *dialog)
gtk_header_bar_set_subtitle (GTK_HEADER_BAR (header), NULL);
}
- if (!gtk_tree_model_get_iter_first (GTK_TREE_MODEL (priv->store), &iter) && !searching)
- gtk_stack_set_visible_child_name (GTK_STACK (stack), "no-printers-page");
+ if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (priv->store), &iter))
+ gtk_stack_set_visible_child_name (GTK_STACK (stack), "standard-page");
else
- gtk_stack_set_visible_child_name (GTK_STACK (stack), searching ? "loading-page": "standard-page");
+ gtk_stack_set_visible_child_name (GTK_STACK (stack), searching ? "loading-page" : "no-printers-page");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]