Mercurial > pidgin
changeset 9686:882e7e423457
[gaim-migrate @ 10538]
[ 837502 ] 0.72 tooltip shadows render incorrectly
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 05 Aug 2004 23:04:16 +0000 |
parents | 11baa684c23d |
children | 1769cb1261be |
files | src/gtkblist.c |
diffstat | 1 files changed, 14 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Thu Aug 05 21:48:36 2004 +0000 +++ b/src/gtkblist.c Thu Aug 05 23:04:16 2004 +0000 @@ -415,19 +415,20 @@ blist->south = pixbuf; } - gdk_window_move_resize (blist->east_shadow, - x + widget->allocation.width, y, - 5, widget->allocation.height); - - gdk_window_move_resize (blist->south_shadow, - x, y + widget->allocation.height, - widget->allocation.width + 5, 5); - gdk_window_show (blist->east_shadow); - gdk_window_show (blist->south_shadow); - shadow_paint(blist, NULL, EAST_SIDE); - shadow_paint(blist, NULL, SOUTH_SIDE); - - return FALSE; + gdk_window_move_resize (blist->east_shadow, + x + widget->allocation.width, MAX(0,y), + 5, MIN(widget->allocation.height, gdk_screen_height())); + + gdk_window_move_resize (blist->south_shadow, + MAX(0,x), y + widget->allocation.height, + MIN(widget->allocation.width + 5, gdk_screen_width()), 5); + + gdk_window_show (blist->east_shadow); + gdk_window_show (blist->south_shadow); + shadow_paint(blist, NULL, EAST_SIDE); + shadow_paint(blist, NULL, SOUTH_SIDE); + + return FALSE; } /**************** END WEIRD DROP SHADOW STUFF ***********************************/