aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-04 10:35:22 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-03-04 10:35:22 +0000
commit860726f38eefed0a62736d1c728927ecdec23565 (patch)
tree1b2a7b66c9cca2311c3f7bc30f1766c6544ea22d
parent17068224006bda5a994a7fb2f9c1e4e7dda2e540 (diff)
downloadayatana-indicator-datetime-860726f38eefed0a62736d1c728927ecdec23565.tar.gz
ayatana-indicator-datetime-860726f38eefed0a62736d1c728927ecdec23565.tar.bz2
ayatana-indicator-datetime-860726f38eefed0a62736d1c728927ecdec23565.zip
Fix for gtk lookup icon size returning negative numbers
-rw-r--r--src/datetime-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 21c91df..6f38004 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -613,8 +613,8 @@ update_appointment_menu_items (gpointer user_data)
comp_instances = NULL;
gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
- if (width == 0) width = 12;
- if (height == 0) height = 12;
+ if (width <= 0) width = 12;
+ if (height <= 0) height = 13;
i = 0;
for (l = sorted_comp_instances; l; l = l->next) {