diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-09-01 14:43:19 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-09-01 14:43:51 +0200 |
commit | 2ae2eabe2fc5126567f148ea0b56ef788d0588d3 (patch) | |
tree | 418b3ed968654bd6920da0fb8caee7d3b97c17b8 /panels/datetime | |
parent | 389b75c5f2aed68687a6525f1ab7e3cc116821e6 (diff) | |
download | gnome-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.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 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); |