diff 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
line wrap: on
line diff
--- a/console/libgnt/gntwidget.c	Fri Jun 23 16:59:12 2006 +0000
+++ b/console/libgnt/gntwidget.c	Fri Jun 23 19:41:31 2006 +0000
@@ -221,11 +221,12 @@
 {
 	g_return_if_fail(GNT_IS_WIDGET(obj));
 
+	gnt_widget_hide(obj);
 	delwin(obj->window);
 	if(!(GNT_WIDGET_FLAGS(obj) & GNT_WIDGET_DESTROYING))
 		g_object_run_dispose(G_OBJECT(obj));
 	/* XXX: This may be the wrong place */
-	gnt_screen_remove_widget(obj);
+	/*gnt_screen_remove_widget(obj);*/
 	DEBUG;
 }
 
@@ -309,6 +310,7 @@
 	 * those windows to redraw themselves by emitting the approrpiate
 	 * expose signal. */
 
+	wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL));
 	werase(widget->window);
 	wrefresh(widget->window);
 }