im.pidgin.pidgin.sadrul.tooltips: 5454e20ce772daa3f531e1cadae0435c2f61fdd0

sadrul at pidgin.im sadrul at pidgin.im
Tue Dec 18 04:25:55 EST 2007


-----------------------------------------------------------------
Revision: 5454e20ce772daa3f531e1cadae0435c2f61fdd0
Ancestor: 5615c29563f74c2258cbf72a99ecd88e4632e4f9
Author: sadrul at pidgin.im
Date: 2007-12-18T06:32:42
Branch: im.pidgin.pidgin.sadrul.tooltips

Modified files:
        pidgin/pidgintooltip.c

ChangeLog: 

Reset tree-path when a tooltip is destroyed.

-------------- next part --------------
============================================================
--- pidgin/pidgintooltip.c	23a2a3fe04d606bcbd4c5be51e76ecceaa87f622
+++ pidgin/pidgintooltip.c	7c52f3c66c230e54a1def21f8944eda16718d119
@@ -167,6 +167,13 @@ static void
 }
 
 static void
+reset_data_treepath(PidginTooltipData *data)
+{
+	gtk_tree_path_free(data->path);
+	data->path = NULL;
+}
+
+static void
 pidgin_tooltip_draw(PidginTooltipData *data)
 {
 	GtkWidget *tipwindow;
@@ -205,6 +212,8 @@ pidgin_tooltip_draw(PidginTooltipData *d
 
 	data->path = path;
 	setup_tooltip_window(data->userdata, w, h);
+	g_signal_connect_swapped(G_OBJECT(tipwindow), "destroy",
+			G_CALLBACK(reset_data_treepath), data);
 }
 
 static gboolean


More information about the Commits mailing list