Mercurial > pidgin.yaz
comparison pidgin/pidgintooltip.c @ 25960:43da17b9a27e
propagate from branch 'im.pidgin.pidgin' (head c5b982597812ab3c0fd2dbca9be31f173fda67bb)
to branch 'im.pidgin.cpw.malu.xmpp.idle' (head 4379b3a32fa6bbd860103c93b291406542af52f9)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Thu, 22 Jan 2009 20:39:12 +0000 |
parents | 8a5c0c5c71f9 |
children | 2d873973b4d6 |
comparison
equal
deleted
inserted
replaced
25959:d978395b4e18 | 25960:43da17b9a27e |
---|---|
80 } | 80 } |
81 | 81 |
82 static void | 82 static void |
83 destroy_tooltip_data(PidginTooltipData *data) | 83 destroy_tooltip_data(PidginTooltipData *data) |
84 { | 84 { |
85 gtk_tree_path_free(data->common.treeview.path); | 85 if (data->common.treeview.path) |
86 gtk_tree_path_free(data->common.treeview.path); | |
86 pidgin_tooltip_destroy(); | 87 pidgin_tooltip_destroy(); |
87 g_free(data); | 88 g_free(data); |
88 } | 89 } |
89 | 90 |
90 void pidgin_tooltip_destroy() | 91 void pidgin_tooltip_destroy() |
378 wdata->common.widget.create_tooltip = create_tooltip; | 379 wdata->common.widget.create_tooltip = create_tooltip; |
379 wdata->paint_tooltip = paint_tooltip; | 380 wdata->paint_tooltip = paint_tooltip; |
380 | 381 |
381 g_signal_connect(G_OBJECT(widget), "motion-notify-event", G_CALLBACK(widget_motion_cb), wdata); | 382 g_signal_connect(G_OBJECT(widget), "motion-notify-event", G_CALLBACK(widget_motion_cb), wdata); |
382 g_signal_connect(G_OBJECT(widget), "leave-notify-event", G_CALLBACK(widget_leave_cb), NULL); | 383 g_signal_connect(G_OBJECT(widget), "leave-notify-event", G_CALLBACK(widget_leave_cb), NULL); |
383 g_signal_connect_swapped(G_OBJECT(widget), "destroy", G_CALLBACK(g_free), wdata); | 384 g_signal_connect_swapped(G_OBJECT(widget), "destroy", G_CALLBACK(destroy_tooltip_data), wdata); |
384 return TRUE; | 385 return TRUE; |
385 } | 386 } |
386 | 387 |