pidgin: 409dce18: Move the tooltip to the left of the budd...

sadrul at pidgin.im sadrul at pidgin.im
Thu Mar 13 04:37:59 EDT 2008


-----------------------------------------------------------------
Revision: 409dce18b3381a807c9f3a692d19bc38e55ecf2b
Ancestor: 6e57c4c3ef7f3cc9df8b67e8897a30bbe0405817
Author: sadrul at pidgin.im
Date: 2008-03-12T20:42:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/409dce18b3381a807c9f3a692d19bc38e55ecf2b

Modified files:
        ChangeLog finch/gntblist.c

ChangeLog: 

Move the tooltip to the left of the buddylist if there's not enough room to show it on the right.

-------------- next part --------------
============================================================
--- ChangeLog	956d0741891f73a3b19a4919f554d15550efd2b6
+++ ChangeLog	89a06637f9079c1989a9934ab3f73d0f211aaff6
@@ -24,6 +24,8 @@ version 2.4.1 ():
 	* Fix compiling with Glib older than 2.6
 	* Ensure existing conversations selected from the 'Send IM' dialog are
 	  given focus
+	* Move the tooltip on the left of the buddylist if there's not enough room
+	  on the right to show it.
 
 version 2.4.0 (02/29/2008):
 	http://developer.pidgin.im/query?status=closed&milestone=2.4.0
============================================================
--- finch/gntblist.c	70f5b90829bdae8477f7ba7dd5d46aca8ab5eed2
+++ finch/gntblist.c	371a337fff5ffd5944c958bd5345b30725c34f60
@@ -1742,6 +1742,8 @@ draw_tooltip_real(FinchBlist *ggblist)
 	gnt_text_view_set_flag(GNT_TEXT_VIEW(tv), GNT_TEXT_VIEW_NO_SCROLL);
 	gnt_box_add_widget(GNT_BOX(box), tv);
 
+	if (x + w >= getmaxx(stdscr))
+		x -= w + width + 2;
 	gnt_widget_set_position(box, x, y);
 	GNT_WIDGET_UNSET_FLAGS(box, GNT_WIDGET_CAN_TAKE_FOCUS);
 	GNT_WIDGET_SET_FLAGS(box, GNT_WIDGET_TRANSIENT);


More information about the Commits mailing list