[gtk+/gtk-3-10] Do not reset the waiting_for_printer on status change



commit bd9ed0462cbfb84b7c273c50f7ccb916ef6ff108
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Nov 5 13:30:33 2013 +0100

    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

 gtk/gtkprintunixdialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 7e74a00..d8fa0e4 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -962,7 +962,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) &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]