Ignore:
Timestamp:
Apr 13, 2011, 10:00:55 PM (11 years ago)
Author:
jordan
Message:

(trunk gtk) more heap pruning: minor GtkTreeModel? changes

Use gtk_tree_model_iter_nth_child() instead of gtk_tree_model_get_iter_first() to avoid an unnecessary gtk_tree_path object being created and destroyed. This is a very minor change and I'm not sure how useful it really is, but it doesn't hurt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/file-list.c

    r12277 r12356  
    237237{
    238238    GtkTreeIter iter;
    239     if( gtk_tree_model_get_iter_first( model, &iter ) ) do
     239    if( gtk_tree_model_iter_nth_child( model, &iter, NULL, 0 ) ) do
    240240        gtr_tree_model_foreach_postorder_subtree( model, &iter, func, data );
    241241    while( gtk_tree_model_iter_next( model, &iter ) );
Note: See TracChangeset for help on using the changeset viewer.