]> Dogcows Code - chaz/tint2/blobdiff - src/clock/clock.c
update my contribution to the company
[chaz/tint2] / src / clock / clock.c
index 79c4266f3b239e86c318033c8a9b38833c2f459b..92378610414cfa3d293f7b0ea4aa6eb7091b3be7 100644 (file)
@@ -2,7 +2,7 @@
 *
 * Tint2 : clock
 *
-* Copyright (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr)
+* Copyright (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr) from Omega distribution
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 2
@@ -78,6 +78,7 @@ void cleanup_clock()
        if (time_tooltip_timezone) g_free(time_tooltip_timezone);
        if (clock_lclick_command) g_free(clock_lclick_command);
        if (clock_rclick_command) g_free(clock_rclick_command);
+       if (clock_timeout) stop_timeout(clock_timeout);
 }
 
 
@@ -211,7 +212,7 @@ int resize_clock (void *obj)
                strftime(buf_date, sizeof(buf_date), time2_format, clock_gettime_for_tz(time2_timezone));
                get_text_size2(time2_font_desc, &date_height_ink, &date_height, &date_width, panel->area.height, panel->area.width, buf_date, strlen(buf_date));
        }
-       
+
        if (panel_horizontal) {
                int new_size = (time_width > date_width) ? time_width : date_width;
                new_size += (2*clock->area.paddingxlr) + (2*clock->area.bg->border.width);
This page took 0.021122 seconds and 4 git commands to generate.