[gnome-control-center/gnome-3-8] datetime: Fix crash when setting year to 0



commit 712e75e108a8506c59aa64221686fd5a7a269fd6
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 1 14:43:19 2014 +0200

    datetime: Fix crash when setting year to 0
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735352
    
    Conflicts:
        panels/datetime/cc-datetime-panel.c

 panels/datetime/cc-datetime-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 969af95..f970e03 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -1027,7 +1027,7 @@ cc_date_time_panel_init (CcDateTimePanel *self)
                     G_CALLBACK (day_changed), self);
 
   adjustment = (GtkAdjustment*) gtk_adjustment_new (g_date_time_get_year (priv->date),
-                                                    G_MINDOUBLE, G_MAXDOUBLE, 1,
+                                                    1, G_MAXDOUBLE, 1,
                                                     10, 1);
   gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (W ("year-spinbutton")),
                                   adjustment);


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