comparison console/libgnt/gnttree.c @ 13878:0d0ab1e39d0a

[gaim-migrate @ 16355] Change the behaviour of the widgets about how they update themselves. This makes things a little better, and hopefully easier to build more stuff on top of this. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 27 Jun 2006 02:33:55 +0000
parents d78ab363e02d
children 5c750626eaa5
comparison
equal deleted inserted replaced
13877:765bbdf29d04 13878:0d0ab1e39d0a
217 mvwhline(widget->window, start, pos, ' ', 217 mvwhline(widget->window, start, pos, ' ',
218 widget->priv.width - pos * 2); 218 widget->priv.width - pos * 2);
219 start++; 219 start++;
220 } 220 }
221 221
222 wrefresh(widget->window); 222 gnt_widget_queue_update(widget);
223 } 223 }
224 224
225 static void 225 static void
226 gnt_tree_draw(GntWidget *widget) 226 gnt_tree_draw(GntWidget *widget)
227 { 227 {
228 GntTree *tree = GNT_TREE(widget); 228 GntTree *tree = GNT_TREE(widget);
229 int bottom; 229 int bottom;
230 230
231 scrollok(widget->window, TRUE); 231 scrollok(widget->window, TRUE);
232 wsetscrreg(widget->window, 0, widget->priv.height - 1); 232 wsetscrreg(widget->window, 0, widget->priv.height - 1);
233
234 tree->top = tree->root;
235 233
236 redraw_tree(tree); 234 redraw_tree(tree);
237 235
238 DEBUG; 236 DEBUG;
239 } 237 }