[gnome-control-center] printers: Update printer options correctly



commit 30a743a94c6073445acf0cc7007ff338a50f34cd
Author: Marek Kasik <mkasik redhat com>
Date:   Thu Apr 16 15:08:51 2015 +0200

    printers: Update printer options correctly
    
    Set 'ppd_filename_set' and 'destination_set' always to FALSE
    before requesting the destination and updated PPD file so we can
    distinguish when we have all information needed for update
    of the PpPPDOptionWidget.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1211580

 panels/printers/pp-ppd-option-widget.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/printers/pp-ppd-option-widget.c b/panels/printers/pp-ppd-option-widget.c
index d0a36f6..1e57c5b 100644
--- a/panels/printers/pp-ppd-option-widget.c
+++ b/panels/printers/pp-ppd-option-widget.c
@@ -641,6 +641,9 @@ update_widget (PpPPDOptionWidget *widget)
 {
   PpPPDOptionWidgetPrivate *priv = widget->priv;
 
+  priv->ppd_filename_set = FALSE;
+  priv->destination_set = FALSE;
+
   get_named_dest_async (priv->printer_name,
                         get_named_dest_cb,
                         widget);


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