comparison src/gtkblist.c @ 7720:5fe29daf52d7

[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 <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 03 Dec 2003 06:50:48 +0000
parents 853ef377a850
children 9235eecc9f74
comparison
equal deleted inserted replaced
7719:853ef377a850 7720:5fe29daf52d7
1486 1486
1487 while (gtk_events_pending()) 1487 while (gtk_events_pending())
1488 gtk_main_iteration(); 1488 gtk_main_iteration();
1489 1489
1490 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &gtkblist->contact_rect); 1490 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &gtkblist->contact_rect);
1491 gdk_drawable_get_size(GDK_DRAWABLE(tv->window), &(gtkblist->contact_rect.width), NULL);
1491 gtkblist->mouseover_contact = node; 1492 gtkblist->mouseover_contact = node;
1492 gtk_tree_path_down (path); 1493 gtk_tree_path_down (path);
1493 while (gtk_tree_model_get_iter(GTK_TREE_MODEL(gtkblist->treemodel), &i, path)) { 1494 while (gtk_tree_model_get_iter(GTK_TREE_MODEL(gtkblist->treemodel), &i, path)) {
1494 GdkRectangle rect; 1495 GdkRectangle rect;
1495 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &rect); 1496 gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &rect);
1649 gdk_window_destroy (gtkblist->south_shadow); 1650 gdk_window_destroy (gtkblist->south_shadow);
1650 gtkblist->south_shadow = NULL; 1651 gtkblist->south_shadow = NULL;
1651 #endif 1652 #endif
1652 gtkblist->tipwindow = NULL; 1653 gtkblist->tipwindow = NULL;
1653 } 1654 }
1654 1655
1655 if (gtkblist->mouseover_contact) { 1656 if (gtkblist->mouseover_contact &&
1656 gaim_gtk_blist_collapse_contact_cb(NULL, gtkblist->mouseover_contact); 1657 !((e->x > gtkblist->contact_rect.x) && (e->x < (gtkblist->contact_rect.x + gtkblist->contact_rect.width)) &&
1658 (e->y > gtkblist->contact_rect.y) && (e->y < (gtkblist->contact_rect.y + gtkblist->contact_rect.height)))) {
1659 gaim_gtk_blist_collapse_contact_cb(NULL, gtkblist->mouseover_contact);
1657 gtkblist->mouseover_contact = NULL; 1660 gtkblist->mouseover_contact = NULL;
1658 } 1661 }
1659 } 1662 }
1660 1663
1661 static void 1664 static void