summaryrefslogtreecommitdiff
path: root/panels/datetime
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-09-01 14:43:19 +0200
committerBastien Nocera <hadess@hadess.net>2014-09-01 14:43:51 +0200
commit2ae2eabe2fc5126567f148ea0b56ef788d0588d3 (patch)
tree418b3ed968654bd6920da0fb8caee7d3b97c17b8 /panels/datetime
parent389b75c5f2aed68687a6525f1ab7e3cc116821e6 (diff)
downloadgnome-control-center-2ae2eabe2fc5126567f148ea0b56ef788d0588d3.tar.gz
datetime: Fix crash when setting year to 0
https://bugzilla.gnome.org/show_bug.cgi?id=735352
Diffstat (limited to 'panels/datetime')
-rw-r--r--panels/datetime/cc-datetime-panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index f1d3296b6..6acdc3532 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -1174,7 +1174,7 @@ setup_datetime_dialog (CcDateTimePanel *self)
/* Year */
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);