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



commit 2ed8ec114ff3420c4380047b8da1dee5bff20e37
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 99fe6c7..b7b0982 100644
--- a/panels/printers/pp-ppd-option-widget.c
+++ b/panels/printers/pp-ppd-option-widget.c
@@ -639,6 +639,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]