changeset 18351:4f66226418e3

Erase the old text when the text in a label changes.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 29 Jun 2007 04:48:41 +0000
parents 11cb1436e392
children f1dbe3151051
files finch/libgnt/gntlabel.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntlabel.c	Fri Jun 29 04:48:02 2007 +0000
+++ b/finch/libgnt/gntlabel.c	Fri Jun 29 04:48:41 2007 +0000
@@ -138,8 +138,7 @@
 
 	if (GNT_WIDGET(label)->window)
 	{
-		gnt_widget_hide(GNT_WIDGET(label));
-		gnt_label_size_request(GNT_WIDGET(label));
+		werase(GNT_WIDGET(label)->window);
 		gnt_widget_draw(GNT_WIDGET(label));
 	}
 }