Mercurial > pidgin
changeset 15479:5551adcf8f97
fix overlapping in tooltips w/ large avatars
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 01 Feb 2007 00:37:13 +0000 |
parents | d2a41819ba6a |
children | 62a1ebd08b74 48f3837a9625 |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Thu Feb 01 00:30:21 2007 +0000 +++ b/pidgin/gtkblist.c Thu Feb 01 00:37:13 2007 +0000 @@ -2348,13 +2348,12 @@ gtk_paint_layout (style, gtkblist->tipwindow->window, GTK_STATE_NORMAL, FALSE, NULL, gtkblist->tipwindow, "tooltip", TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE, current_height, td->name_layout); - current_height += td->name_height; gtk_paint_layout (style, gtkblist->tipwindow->window, GTK_STATE_NORMAL, FALSE, NULL, gtkblist->tipwindow, "tooltip", - TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE, current_height, td->layout); - - current_height += td->height + TOOLTIP_BORDER; + TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE, current_height + td->name_height, td->layout); + + current_height += MAX(td->name_height + td->height, td->avatar_height) + TOOLTIP_BORDER; } }