48
48
GtkWidget* label = g_object_get_data (G_OBJECT (browser), "clock-label");
49
49
const gchar* format = midori_extension_get_string (extension, "format");
52
51
GDateTime* date = g_date_time_new_now_local ();
53
52
gint seconds = g_date_time_get_seconds (date);
54
53
gchar* pretty = g_date_time_format (date, format);
55
54
gtk_label_set_label (GTK_LABEL (label), pretty);
57
56
g_date_time_unref (date);
63
strftime (date_fmt, sizeof (date_fmt), format, tm);
67
58
if (g_strstr_len (format, -1, "%c")
68
59
|| g_strstr_len (format, -1, "%N")