[gtk+] Do not reset the waiting_for_printer on status change



commit 1fd74de2147df7e2dbd111c115a99b06d904942d
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 33d447d..20bbfe0 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]