Getting country code from gnome clock?


Is there a way of getting the timezone out of gnome clock? I need in
particular the code of the country the user has selected. I'm developing
a program[1] that could automatically choose a country from a list based
on this knowledge.

panel clock applet has this file clock-country.c[2] which has a struct 

typedef struct {
        gchar *code;
        gchar *name;
        const gchar *l10n_name;
} ClockCountryPrivate;

is this 'code' stored as ISO 3166-1[3] or something like that?

best regards,
Antti Kaijanmäki


Attachment: signature.asc
Description: Digitaalisesti allekirjoitettu viestin osa

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