[gnome-control-center/gnome-3-8] privacy: Fix default "Retain history" value



commit 3791aea80e255f13257179276bfd8ad437386083
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jul 1 09:04:54 2013 +0200

    privacy: Fix default "Retain history" value
    
    Our loop to set the combo box to the current value of
    recent-files-max-age didn't work properly for the negative (and default)
    -1 value that means "Forever". This fixes the default display value.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703359

 panels/privacy/cc-privacy-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c
index d92b9e4..13e87e0 100644
--- a/panels/privacy/cc-privacy-panel.c
+++ b/panels/privacy/cc-privacy-panel.c
@@ -413,7 +413,7 @@ set_retain_history_value_for_combo (GtkComboBox    *combo_box,
                           1, &value_tmp,
                           -1);
       if (value == value_tmp ||
-          (value_tmp > value_prev && value < value_tmp))
+          (value > 0 && value_tmp > value_prev && value < value_tmp))
         {
           gtk_combo_box_set_active_iter (combo_box, &iter);
           return;


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