comparison finch/libgnt/gnttree.c @ 17977:f71bd7e56389

propagate from branch 'im.pidgin.pidgin' (head b438ea0760758dc547f95d62892455f50ee4c4f1) to branch 'im.pidgin.soc.2007.remotelogging' (head 7e683fd40634aa3eb22dcf25cbd25c8959d76662)
author Michael Shkutkov <mshkutkov@soc.pidgin.im>
date Sat, 09 Jun 2007 12:01:29 +0000
parents 467698ab6bf0
children 3c3fc1432a01 8410511f4dbb
comparison
equal deleted inserted replaced
16392:9da82444eee3 17977:f71bd7e56389
150 else 150 else
151 return row; 151 return row;
152 152
153 while(row->next) 153 while(row->next)
154 row = row->next; 154 row = row->next;
155 if (!row->collapsed && row->child) 155 return get_last_child(row);
156 row = get_last_child(row->child);
157 return row;
158 } 156 }
159 157
160 static GntTreeRow * 158 static GntTreeRow *
161 get_prev(GntTreeRow *row) 159 get_prev(GntTreeRow *row)
162 { 160 {
1342 row = g_hash_table_lookup(tree->hash, key); 1340 row = g_hash_table_lookup(tree->hash, key);
1343 if (row) 1341 if (row)
1344 { 1342 {
1345 col = g_list_nth_data(row->columns, colno); 1343 col = g_list_nth_data(row->columns, colno);
1346 g_free(col->text); 1344 g_free(col->text);
1347 col->text = g_strdup(text); 1345 col->text = g_strdup(text ? text : "");
1348 1346
1349 if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0) 1347 if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
1350 redraw_tree(tree); 1348 redraw_tree(tree);
1351 } 1349 }
1352 } 1350 }