# HG changeset patch # User Sean Egan # Date 1070434248 0 # Node ID 5fe29daf52d7199c58b71cbacd3e234ef06b65bc # Parent 853ef377a8500a9ec0034eb8bd208be69a46b2b9 [gaim-migrate @ 8365] Last thing from me tonight. This will make persons not auto-collapse on the leave event, emitted when putting your mouse over a tooltip, or clicking for the context menu and some such. committer: Tailor Script diff -r 853ef377a850 -r 5fe29daf52d7 src/gtkblist.c --- a/src/gtkblist.c Wed Dec 03 06:12:55 2003 +0000 +++ b/src/gtkblist.c Wed Dec 03 06:50:48 2003 +0000 @@ -1488,6 +1488,7 @@ gtk_main_iteration(); gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, >kblist->contact_rect); + gdk_drawable_get_size(GDK_DRAWABLE(tv->window), &(gtkblist->contact_rect.width), NULL); gtkblist->mouseover_contact = node; gtk_tree_path_down (path); while (gtk_tree_model_get_iter(GTK_TREE_MODEL(gtkblist->treemodel), &i, path)) { @@ -1651,9 +1652,11 @@ #endif gtkblist->tipwindow = NULL; } - - if (gtkblist->mouseover_contact) { - gaim_gtk_blist_collapse_contact_cb(NULL, gtkblist->mouseover_contact); + + if (gtkblist->mouseover_contact && + !((e->x > gtkblist->contact_rect.x) && (e->x < (gtkblist->contact_rect.x + gtkblist->contact_rect.width)) && + (e->y > gtkblist->contact_rect.y) && (e->y < (gtkblist->contact_rect.y + gtkblist->contact_rect.height)))) { + gaim_gtk_blist_collapse_contact_cb(NULL, gtkblist->mouseover_contact); gtkblist->mouseover_contact = NULL; } }