Fix an annoying bug where chat userlist tooltips would show up when the

Tue, 18 Sep 2007 20:14:55 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Tue, 18 Sep 2007 20:14:55 +0000
changeset 20382
f91400c599de
parent 20381
d9e1a6fc64fd
child 20383
81da92f51cc2
child 20397
e2fe53088dc1

Fix an annoying bug where chat userlist tooltips would show up when the
mouse pointer leaves the conversation window.

pidgin/gtkconv.c file | annotate | diff | comparison | revisions
--- 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);

mercurial