Mercurial > pidgin.yaz
comparison pidgin/pidgintooltip.c @ 21884:b40a6bb267a1
Reset tree-path when a tooltip is destroyed.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 18 Dec 2007 06:32:42 +0000 |
parents | a69a4307c9a8 |
children | f5d961556972 |
comparison
equal
deleted
inserted
replaced
21883:bb409f0d26b6 | 21884:b40a6bb267a1 |
---|---|
165 } | 165 } |
166 setup_tooltip_window(userdata, w, h); | 166 setup_tooltip_window(userdata, w, h); |
167 } | 167 } |
168 | 168 |
169 static void | 169 static void |
170 reset_data_treepath(PidginTooltipData *data) | |
171 { | |
172 gtk_tree_path_free(data->path); | |
173 data->path = NULL; | |
174 } | |
175 | |
176 static void | |
170 pidgin_tooltip_draw(PidginTooltipData *data) | 177 pidgin_tooltip_draw(PidginTooltipData *data) |
171 { | 178 { |
172 GtkWidget *tipwindow; | 179 GtkWidget *tipwindow; |
173 GtkTreePath *path = NULL; | 180 GtkTreePath *path = NULL; |
174 int w, h; | 181 int w, h; |
203 return; | 210 return; |
204 } | 211 } |
205 | 212 |
206 data->path = path; | 213 data->path = path; |
207 setup_tooltip_window(data->userdata, w, h); | 214 setup_tooltip_window(data->userdata, w, h); |
215 g_signal_connect_swapped(G_OBJECT(tipwindow), "destroy", | |
216 G_CALLBACK(reset_data_treepath), data); | |
208 } | 217 } |
209 | 218 |
210 static gboolean | 219 static gboolean |
211 pidgin_tooltip_timeout(gpointer data) | 220 pidgin_tooltip_timeout(gpointer data) |
212 { | 221 { |