Mercurial > pidgin.yaz
changeset 20155:392c32c00b23
Fix an annoying bug where chat userlist tooltips would show up when the
mouse pointer leaves the conversation window.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 18 Sep 2007 20:14:55 +0000 |
parents | df24e0153753 |
children | 5ad014c6e44b |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Tue Sep 18 05:18:29 2007 +0000 +++ b/pidgin/gtkconv.c Tue Sep 18 20:14:55 2007 +0000 @@ -4490,7 +4490,7 @@ g_signal_connect(G_OBJECT(list), "motion-notify-event", G_CALLBACK(pidgin_userlist_motion_cb), gtkconv); g_signal_connect(G_OBJECT(list), "leave-notify-event", - G_CALLBACK(pidgin_userlist_motion_cb), gtkconv); + G_CALLBACK(pidgin_conv_leave_cb), gtkconv); g_signal_connect(G_OBJECT(list), "popup-menu", G_CALLBACK(gtkconv_chat_popup_menu_cb), gtkconv); g_signal_connect(G_OBJECT(lbox), "size-allocate", G_CALLBACK(lbox_size_allocate_cb), gtkconv); @@ -4618,10 +4618,8 @@ model = gtk_tree_view_get_model(GTK_TREE_VIEW(gtkchat->list)); - gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(gtkchat->list), - tooltip.userlistx, tooltip.userlisty, &path, &column, &x, &y); - - if (path == NULL) + if (!gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(gtkchat->list), + tooltip.userlistx, tooltip.userlisty, &path, &column, &x, &y)) return FALSE; gtk_tree_model_get_iter(GTK_TREE_MODEL(model), &iter, path);