summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2013-11-05 13:30:33 +0100
committerMatthias Clasen <mclasen@redhat.com>2013-11-20 19:27:31 -0500
commita2420a40daa1cf3558b4bdb2733738e7ff5ba354 (patch)
treeaf132f27a752e74262492baf076ee2551a445a73
parent7e0434cfcdebde0b560db071bbe9133fed028dd2 (diff)
downloadgtk+-a2420a40daa1cf3558b4bdb2733738e7ff5ba354.tar.gz
Do not reset the waiting_for_printer on status change
* gtk/gtkprintunixdialog.c (printer_status_cb): Do not reset the waiting_for_printer on status change as the default printer might get added later. https://bugzilla.gnome.org/show_bug.cgi?id=577642
-rw-r--r--gtk/gtkprintunixdialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index c4ac91343f..c84371c32f 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -823,7 +823,9 @@ printer_status_cb (GtkPrintBackend *backend,
* of GTK_RESPONSE_OK button inside of selected_printer_changed function.
*/
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->printer_treeview));
+ priv->internal_printer_change = TRUE;
selected_printer_changed (selection, dialog);
+ priv->internal_printer_change = FALSE;
if (gtk_print_backend_printer_list_is_done (backend) &&
gtk_printer_is_default (printer) &&