Merge lp:~jjardon/indicator-datetime/fix-775113 into lp:indicator-datetime/0.3

Proposed by Javier Jardón
Status: Merged
Merged at revision: 131
Proposed branch: lp:~jjardon/indicator-datetime/fix-775113
Merge into: lp:indicator-datetime/0.3
Diff against target: 47 lines (+9/-3)
2 files modified
configure.ac (+1/-1)
src/indicator-datetime.c (+8/-2)
To merge this branch: bzr merge lp:~jjardon/indicator-datetime/fix-775113
Reviewer Review Type Date Requested Status
Indicator Applet Developers Pending
Review via email: mp+73846@code.launchpad.net
To post a comment you must log in.
129. By Javier Jardón

configure.ac: Bump glib required version

This version of Glib supports all the strftime format specifiers
Fixes https://bugs.launchpad.net/indicator-datetime/+bug/775113

Revision history for this message
Ted Gould (ted) wrote :

No currently a new enough version of GLib in Oneiric to test. Need to circle back when that gets updated.

Revision history for this message
Javier Jardón (jjardon) wrote :

Only note that the needed version is currently available in oneiric

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'configure.ac'
--- configure.ac 2011-08-18 15:57:14 +0000
+++ configure.ac 2011-09-05 12:10:42 +0000
@@ -66,7 +66,7 @@
66ICAL_REQUIRED_VERSION=0.4466ICAL_REQUIRED_VERSION=0.44
67CAIRO_REQUIRED_VERSION=1.1067CAIRO_REQUIRED_VERSION=1.10
68GDK_REQUIRED_VERSION=2.2268GDK_REQUIRED_VERSION=2.22
69GLIB_REQUIRED_VERSION=2.2669GLIB_REQUIRED_VERSION=2.29.19
70GTK3_REQUIRED_VERSION=3.1.470GTK3_REQUIRED_VERSION=3.1.4
71GCONF_REQUIRED_VERSION=2.3171GCONF_REQUIRED_VERSION=2.31
7272
7373
=== modified file 'src/indicator-datetime.c'
--- src/indicator-datetime.c 2011-08-25 14:46:51 +0000
+++ src/indicator-datetime.c 2011-09-05 12:10:42 +0000
@@ -215,7 +215,7 @@
215 PROP_TIME_FORMAT,215 PROP_TIME_FORMAT,
216 g_param_spec_int(PROP_TIME_FORMAT_S,216 g_param_spec_int(PROP_TIME_FORMAT_S,
217 "A choice of which format should be used on the panel",217 "A choice of which format should be used on the panel",
218 "Chooses between letting the locale choose the time, 12-hour time, 24-time or using the custom string passed to strftime().",218 "Chooses between letting the locale choose the time, 12-hour time, 24-time or using the custom string passed to g_date_time_format().",
219 SETTINGS_TIME_LOCALE, /* min */219 SETTINGS_TIME_LOCALE, /* min */
220 SETTINGS_TIME_CUSTOM, /* max */220 SETTINGS_TIME_CUSTOM, /* max */
221 SETTINGS_TIME_LOCALE, /* default */221 SETTINGS_TIME_LOCALE, /* default */
@@ -245,7 +245,7 @@
245 PROP_CUSTOM_TIME_FORMAT,245 PROP_CUSTOM_TIME_FORMAT,
246 g_param_spec_string(PROP_CUSTOM_TIME_FORMAT_S,246 g_param_spec_string(PROP_CUSTOM_TIME_FORMAT_S,
247 "The format that is used to show the time on the panel.",247 "The format that is used to show the time on the panel.",
248 "A format string in the form used to pass to strftime to make a string for displaying on the panel.",248 "A format string in the form used to pass to g_date_time_format() to make a string for displaying on the panel.",
249 DEFAULT_TIME_FORMAT,249 DEFAULT_TIME_FORMAT,
250 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));250 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
251251
@@ -775,6 +775,12 @@
775 }775 }
776 else {776 else {
777 timestr = g_date_time_format(datetime_now, format);777 timestr = g_date_time_format(datetime_now, format);
778 if (timestr == NULL) {
779 g_warning ("The custom date format is not valid, check the
780 g_date_time_format() documentation for the supported
781 format specifiers ");
782 timestr = g_strdup ("Date format not supported");
783 }
778 }784 }
779785
780 gboolean use_markup = FALSE;786 gboolean use_markup = FALSE;

Subscribers

People subscribed via source and target branches