aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-15 09:55:23 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-03-15 09:55:23 +0000
commit05e4b574ec953bd6b509f0b623de0cf520ce1598 (patch)
treeef46a43df4dd2b2c14f07d45c4c566c6ef888a04 /src/datetime-service.c
parent0de507c31bbbadd9b0036486d5b58dcbf6533fb9 (diff)
downloadayatana-indicator-datetime-05e4b574ec953bd6b509f0b623de0cf520ce1598.tar.gz
ayatana-indicator-datetime-05e4b574ec953bd6b509f0b623de0cf520ce1598.tar.bz2
ayatana-indicator-datetime-05e4b574ec953bd6b509f0b623de0cf520ce1598.zip
Fixed missed build error, caused by sync problems between netbook and laptop.
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 13dc057..62fa435 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -551,7 +551,7 @@ update_appointment_menu_items (gpointer user_data)
GSList *g;
GError *gerror = NULL;
gint i;
- gint width, height;
+ gint width = 0, height = 0;
ESourceList * sources = NULL;
if (start_time_appointments > 0)
@@ -621,9 +621,7 @@ 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 timestamps
- // is there a buffer overwrite causing it?
+ gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
if (width <= 0) width = 12;
if (height <= 0) height = 12;
if (width > 30) width = 12;