X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon-time-editor.c;h=ff24dd9889da4232ee4a65983b5b514f6fe44492;hb=9e85b8840c98eee4c79882c17ebcf3e4ad7248d1;hp=b47c59cbdb266f0dd857228b0087c17425937c07;hpb=aaa4181baaf6451d23f3450cdfe61f80f7254b00;p=hildon diff --git a/src/hildon-time-editor.c b/src/hildon-time-editor.c index b47c59c..ff24dd9 100644 --- a/src/hildon-time-editor.c +++ b/src/hildon-time-editor.c @@ -90,7 +90,7 @@ #define ICON_PRESSED 4 -#define ICON_NAME "qgn_widg_timedit" +#define ICON_NAME "widgets_time_editor" #define ICON_SIZE "timepicker-size" @@ -755,15 +755,15 @@ hildon_time_editor_get_time_separators (GtkLabel *hm_sep_label, g_date_set_dmy (&locale_test_date, 1, 2, 1970); (void) g_date_strftime (buffer, sizeof (buffer), "%X", &locale_test_date); + /* Find h-m separator */ + iter = buffer; + while (*iter && g_ascii_isdigit (*iter)) iter++; + /* Extract h-m separator*/ + endp = iter; + while (*endp && ! g_ascii_isdigit (*endp)) endp++; + if (hm_sep_label != NULL) { - /* Find h-m separator */ - iter = buffer; - while (*iter && g_ascii_isdigit (*iter)) iter++; - - /* Extract h-m separator*/ - endp = iter; - while (*endp && ! g_ascii_isdigit (*endp)) endp++; separator = g_strndup (iter, endp - iter); gtk_label_set_label (hm_sep_label, separator); g_free (separator);