Mercurial > pidgin
comparison console/libgnt/gntwidget.c @ 13860:c1e3f7c75c3f
[gaim-migrate @ 16321]
Sean suggested displaying a tooltip in the buddylist (http://gaim.sourceforge.net/sean/gntmock.png).
This (http://img157.imageshack.us/img157/1793/q4jb.png) is close.
You can press Escape to hide the tooltip.
I haven't yet managed to refresh widgets when other widgets covering it are destroyed. So
some parts of the border around the buddylist gets erased. I am going to try to fix it.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 23 Jun 2006 19:41:31 +0000 |
parents | aa1c97f5e6eb |
children | 5642f4658b59 |
comparison
equal
deleted
inserted
replaced
13859:60278852c20c | 13860:c1e3f7c75c3f |
---|---|
219 void | 219 void |
220 gnt_widget_destroy(GntWidget *obj) | 220 gnt_widget_destroy(GntWidget *obj) |
221 { | 221 { |
222 g_return_if_fail(GNT_IS_WIDGET(obj)); | 222 g_return_if_fail(GNT_IS_WIDGET(obj)); |
223 | 223 |
224 gnt_widget_hide(obj); | |
224 delwin(obj->window); | 225 delwin(obj->window); |
225 if(!(GNT_WIDGET_FLAGS(obj) & GNT_WIDGET_DESTROYING)) | 226 if(!(GNT_WIDGET_FLAGS(obj) & GNT_WIDGET_DESTROYING)) |
226 g_object_run_dispose(G_OBJECT(obj)); | 227 g_object_run_dispose(G_OBJECT(obj)); |
227 /* XXX: This may be the wrong place */ | 228 /* XXX: This may be the wrong place */ |
228 gnt_screen_remove_widget(obj); | 229 /*gnt_screen_remove_widget(obj);*/ |
229 DEBUG; | 230 DEBUG; |
230 } | 231 } |
231 | 232 |
232 void | 233 void |
233 gnt_widget_show(GntWidget *widget) | 234 gnt_widget_show(GntWidget *widget) |
307 /* XXX: Currently it simply empties the window. Ideally, it will | 308 /* XXX: Currently it simply empties the window. Ideally, it will |
308 * detect what windows are immediately beneath this one, and cause | 309 * detect what windows are immediately beneath this one, and cause |
309 * those windows to redraw themselves by emitting the approrpiate | 310 * those windows to redraw themselves by emitting the approrpiate |
310 * expose signal. */ | 311 * expose signal. */ |
311 | 312 |
313 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); | |
312 werase(widget->window); | 314 werase(widget->window); |
313 wrefresh(widget->window); | 315 wrefresh(widget->window); |
314 } | 316 } |
315 | 317 |
316 void | 318 void |