comparison 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
comparison
equal deleted inserted replaced
16201:36b09c6f7957 16203:4f6a6443a1e3
410 } 410 }
411 411
412 static void 412 static void
413 file_sel_changed(GntWidget *widget, gpointer old, gpointer current, GntFileSel *sel) 413 file_sel_changed(GntWidget *widget, gpointer old, gpointer current, GntFileSel *sel)
414 { 414 {
415 g_free(sel->suggest); 415 if (GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) {
416 sel->suggest = NULL; 416 g_free(sel->suggest);
417 update_location(sel); 417 sel->suggest = NULL;
418 update_location(sel);
419 }
418 } 420 }
419 421
420 static void 422 static void
421 gnt_file_sel_map(GntWidget *widget) 423 gnt_file_sel_map(GntWidget *widget)
422 { 424 {