# HG changeset patch # User Stu Tomlinson # Date 1190146495 0 # Node ID 392c32c00b23010a562c6fbaed51dd5011f5bee7 # Parent df24e0153753ab43a9f9197efe38da1d1e80acbe Fix an annoying bug where chat userlist tooltips would show up when the mouse pointer leaves the conversation window. diff -r df24e0153753 -r 392c32c00b23 pidgin/gtkconv.c --- 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);