# HG changeset patch # User Sean Egan # Date 1091747056 0 # Node ID 882e7e423457c94c083da6edf8af525eb6e636f3 # Parent 11baa684c23d4f9721faf20513a5b0ca17b7958e [gaim-migrate @ 10538] [ 837502 ] 0.72 tooltip shadows render incorrectly committer: Tailor Script diff -r 11baa684c23d -r 882e7e423457 src/gtkblist.c --- 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 ***********************************/