Re: gtk.TreeModel.iter_children() method, how often should it be called?
- From: Kristian Rietveld <kris gtk org>
- To: Gerald Britton <gerald britton gmail com>
- Cc: gtk-list gnome org
- Subject: Re: gtk.TreeModel.iter_children() method, how often should it be called?
- Date: Tue, 23 Jun 2009 22:56:45 +0200
On Tue, Jun 23, 2009 at 10:48 PM, Gerald
Britton<gerald britton gmail com> wrote:
> Not using TreeViewSort. I certainly agree about excessive calls. So
> the question must then be, "why is TreeView redrawing the view over
> and over again?" Also, "What is TreeView looking for to make it stop
> redrawing the view?"
TreeView only redraws when it is necessary. This is, for example,
when the model changes: when a row is inserted or deleted, or when a
row's contents have been changed (in such a case the row-changed
signal is emitted). Or when the the widget hierarchy implies a
redraw, or any code calling gtk_widget_queue_redraw() or resize() on
the tree view or any widget higher in the widget tree.
regards,
-kris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]