[maemo-commits] [maemo-commits] r18226 - in projects/haf/branches/gtk+/hildon-fm-optimization-test: . gtk
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon May 4 16:52:23 EEST 2009
- Previous message: [maemo-commits] r18225 - in projects/haf/branches/gtk+/hildon-fm-optimization-test: . gtk
- Next message: [maemo-commits] r18227 - in projects/haf/branches/gtk+/hildon-fm-optimization-test: . gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: kris Date: 2009-05-04 16:52:20 +0300 (Mon, 04 May 2009) New Revision: 18226 Modified: projects/haf/branches/gtk+/hildon-fm-optimization-test/ChangeLog projects/haf/branches/gtk+/hildon-fm-optimization-test/gtk/gtktreemodelfilter.c Log: 2009-05-04 Kristian Rietveld <kris at imendio.com> * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_nth_visible): if the level does not have any invisible nodes, directly access the array. Modified: projects/haf/branches/gtk+/hildon-fm-optimization-test/ChangeLog =================================================================== --- projects/haf/branches/gtk+/hildon-fm-optimization-test/ChangeLog 2009-05-04 13:50:30 UTC (rev 18225) +++ projects/haf/branches/gtk+/hildon-fm-optimization-test/ChangeLog 2009-05-04 13:52:20 UTC (rev 18226) @@ -1,5 +1,11 @@ 2009-05-04 Kristian Rietveld <kris at imendio.com> + * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_nth_visible): + if the level does not have any invisible nodes, directly access + the array. + +2009-05-04 Kristian Rietveld <kris at imendio.com> + * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_n_columns), (gtk_tree_model_filter_set_model): cache the n_columns value of the child model. Modified: projects/haf/branches/gtk+/hildon-fm-optimization-test/gtk/gtktreemodelfilter.c =================================================================== --- projects/haf/branches/gtk+/hildon-fm-optimization-test/gtk/gtktreemodelfilter.c 2009-05-04 13:50:30 UTC (rev 18225) +++ projects/haf/branches/gtk+/hildon-fm-optimization-test/gtk/gtktreemodelfilter.c 2009-05-04 13:52:20 UTC (rev 18226) @@ -836,6 +836,10 @@ if (level->visible_nodes <= n) return NULL; + /* Short ciruit if this level does not have invisible nodes. */ + if (level->visible_nodes == level->array->len) + return gtk_tree_model_filter_get_nth (filter, level, n); + elt = FILTER_ELT (level->array->data); while (!elt->visible) elt++;
- Previous message: [maemo-commits] r18225 - in projects/haf/branches/gtk+/hildon-fm-optimization-test: . gtk
- Next message: [maemo-commits] r18227 - in projects/haf/branches/gtk+/hildon-fm-optimization-test: . gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]