Mercurial > pidgin.yaz
comparison finch/libgnt/gnttree.c @ 16283:5187395d6b78
Debug is not necessary anymore, and don't crash on null text.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 20 Apr 2007 19:14:04 +0000 |
parents | f02e611bdb6b |
children | 467698ab6bf0 |
comparison
equal
deleted
inserted
replaced
16282:4a1fc97196c0 | 16283:5187395d6b78 |
---|---|
1342 row = g_hash_table_lookup(tree->hash, key); | 1342 row = g_hash_table_lookup(tree->hash, key); |
1343 if (row) | 1343 if (row) |
1344 { | 1344 { |
1345 col = g_list_nth_data(row->columns, colno); | 1345 col = g_list_nth_data(row->columns, colno); |
1346 g_free(col->text); | 1346 g_free(col->text); |
1347 col->text = g_strdup(text); | 1347 col->text = g_strdup(text ? text : ""); |
1348 | 1348 |
1349 if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0) | 1349 if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0) |
1350 redraw_tree(tree); | 1350 redraw_tree(tree); |
1351 } | 1351 } |
1352 } | 1352 } |