aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-14 09:59:55 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-03-14 09:59:55 +0000
commit3cf4b8aea38d62a047b609d13909d79d5c246d65 (patch)
treed81c18e869a7432f7d91d497d9b53bc0da41e646 /src/datetime-service.c
parent7d8535da7bd004bf6aa16ea0a52d2a4052614860 (diff)
downloadayatana-indicator-datetime-3cf4b8aea38d62a047b609d13909d79d5c246d65.tar.gz
ayatana-indicator-datetime-3cf4b8aea38d62a047b609d13909d79d5c246d65.tar.bz2
ayatana-indicator-datetime-3cf4b8aea38d62a047b609d13909d79d5c246d65.zip
Fixing ted's comments
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 46b31ef..5616d1c 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -548,7 +548,6 @@ update_appointment_menu_items (gpointer user_data)
time_t t1, t2;
gchar *ad;
GList *l;
- //GList *allobjects = NULL;
GSList *g;
GError *gerror = NULL;
gint i;
@@ -560,7 +559,11 @@ update_appointment_menu_items (gpointer user_data)
else
time(&t1);
- t2 = t1 + (time_t) (7 * 24 * 60 * 60); /* 7 days ahead of now, we actually need number_of_days_in_this_month */
+ /* TODO: 7 days ahead of now, we actually need number_of_days_in_this_month
+ * so we call "mark-day" for all remaining days in this month
+ * N.B. Ideally we want any/all dates which are later than today to be marked.
+ */
+ t2 = t1 + (time_t) (7 * 24 * 60 * 60);
// TODO Remove all highlights from the calendar widget
@@ -619,7 +622,8 @@ update_appointment_menu_items (gpointer user_data)
}
gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
- // Sometimes these give negative numbers, sometimes large numbers which look like timestampss
+ // Sometimes these give negative numbers, sometimes large numbers which look like timestamps
+ // is there a buffer overwrite causing it?
if (width <= 0) width = 12;
if (height <= 0) height = 12;
if (width > 30) width = 12;