*add* clock supports timezones

*add* first preparations for real transparency (tooltip works already, but panel does not. Therefore it is disabled in the source code)


git-svn-id: http://tint2.googlecode.com/svn/trunk@304 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2009-12-30 11:27:29 +00:00
parent 527c91f005
commit c65ad3628d
8 changed files with 98 additions and 26 deletions

View File

@@ -366,6 +366,14 @@ void add_entry (char *key, char *value)
else if (strcmp (key, "time1_font") == 0) {
time1_font_desc = pango_font_description_from_string (value);
}
else if (strcmp(key, "time1_timezone") == 0) {
if (strlen(value) > 0)
time1_timezone = strdup(value);
}
else if (strcmp(key, "time2_timezone") == 0) {
if (strlen(value) > 0)
time2_timezone = strdup(value);
}
else if (strcmp (key, "time2_font") == 0) {
time2_font_desc = pango_font_description_from_string (value);
}
@@ -391,6 +399,10 @@ void add_entry (char *key, char *value)
if (strlen(value) > 0)
time_tooltip_format = strdup (value);
}
else if (strcmp(key, "clock_tooltip_timezone") == 0) {
if (strlen(value) > 0)
time_tooltip_timezone = strdup(value);
}
else if (strcmp(key, "clock_lclick_command") == 0) {
if (strlen(value) > 0)
clock_lclick_command = strdup(value);