Mercurial > pidgin.yaz
diff finch/libgnt/gntfilesel.c @ 16203:4f6a6443a1e3
emit/handle gnttree signals appropriately
author | Richard Nelson <wabz@pidgin.im> |
---|---|
date | Mon, 16 Apr 2007 05:19:07 +0000 |
parents | e78b15c2c60f |
children | 8410511f4dbb |
line wrap: on
line diff
--- a/finch/libgnt/gntfilesel.c Mon Apr 16 05:07:21 2007 +0000 +++ b/finch/libgnt/gntfilesel.c Mon Apr 16 05:19:07 2007 +0000 @@ -412,9 +412,11 @@ static void file_sel_changed(GntWidget *widget, gpointer old, gpointer current, GntFileSel *sel) { - g_free(sel->suggest); - sel->suggest = NULL; - update_location(sel); + if (GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) { + g_free(sel->suggest); + sel->suggest = NULL; + update_location(sel); + } } static void