From 860726f38eefed0a62736d1c728927ecdec23565 Mon Sep 17 00:00:00 2001 From: karl-qdh Date: Fri, 4 Mar 2011 10:35:22 +0000 Subject: Fix for gtk lookup icon size returning negative numbers --- src/datetime-service.c | 4 ++-- 1 file 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) { -- cgit v1.2.3