[gnome-control-center/gnome-3-12] datetime: Fix crash when setting year to 0
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-12] datetime: Fix crash when setting year to 0
- Date: Mon, 1 Sep 2014 12:54:32 +0000 (UTC)
commit 9dd9d934cb67cbe7c0446cf104f14add7dbc317e
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
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 f52187e..ec76d22 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -1191,7 +1191,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]