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/tr-window.c

    r12354 r12356  
    820820        GtkTreeModel * model = gtr_core_model( p->core );
    821821
    822         if( gtk_tree_model_get_iter_first( model, &iter ) ) do
     822        if( gtk_tree_model_iter_nth_child( model, &iter, NULL, 0 ) ) do
    823823        {
    824824            double u, d;
Note: See TracChangeset for help on using the changeset viewer.