changeset 16099:8e0a9b2f5a2e

Fix ticket #52
author Sean Egan <seanegan@gmail.com>
date Sat, 14 Apr 2007 07:23:05 +0000
parents 634b96915d2e
children 5311fcd9fbfb b048d48cc633
files pidgin/gtkblist.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sat Apr 14 07:15:02 2007 +0000
+++ b/pidgin/gtkblist.c	Sat Apr 14 07:23:05 2007 +0000
@@ -2592,7 +2592,7 @@
 		gtkblist->tooltipdata = g_list_append(gtkblist->tooltipdata, td);
 		w = TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE +
 			MAX(td->width, td->name_width) + SMALL_SPACE + td->avatar_width + TOOLTIP_BORDER;
-		h = TOOLTIP_BORDER + MAX(td->height + td->name_height, MAX(STATUS_SIZE, td->avatar_height))
+		h = TOOLTIP_BORDER + MAX(td->height + td->name_height, MAX(STATUS_SIZE, td->avatar_height));
 			+ TOOLTIP_BORDER;
 	} else if(PURPLE_BLIST_NODE_IS_CONTACT(node)) {
 		PurpleBlistNode *child;
@@ -2612,10 +2612,11 @@
 				}
 				max_text_width = MAX(max_text_width, MAX(td->width, td->name_width));
 				max_avatar_width = MAX(max_avatar_width, td->avatar_width);
-				h += MAX(TOOLTIP_BORDER + MAX(STATUS_SIZE,td->avatar_height) + TOOLTIP_BORDER,
-						TOOLTIP_BORDER + td->height + td->name_height + TOOLTIP_BORDER);
+				h += MAX(TOOLTIP_BORDER + MAX(STATUS_SIZE,td->avatar_height),
+						TOOLTIP_BORDER + td->height + td->name_height);
 			}
 		}
+		h += TOOLTIP_BORDER;
 		w = TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE + max_text_width + SMALL_SPACE + max_avatar_width + TOOLTIP_BORDER;
 	} else {
 		gtk_widget_destroy(gtkblist->tipwindow);