Re: Foobar patch



Hi,

Chris Phelps <chicane reninet com> writes:
> +		das_time = 0;
> +		das_tm = localtime (&das_time);
> +		strftime(hour, sizeof(hour), _(clock_format), das_tm);
> +		layout = gtk_widget_create_pango_layout (foo->clock_label, hour);

Note that "hour" is not in UTF-8, you need a g_locale_to_utf8().

The clock part looks good to me otherwise.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]