RE: Problem with TreeView Refresh



Hi,

I was updating the store using gtk_list_store_set API. I was using the
fixed-height-mode for the TreeView and GTK_TREE_VIEW_COLUMN_FIXED for
the Column. I had read that this increases the performance of the tree
view. 
But when I used these modes the Tree View was not getting refreshed when
the store was updated. After I removed the fixed modes it was getting
refreshed.
But the performance of the App was unacceptable for my project.
Any ideas,


Thanks
Uday



-----Original Message-----
From: Owen Taylor [mailto:otaylor redhat com] 
Sent: Saturday, November 13, 2004 8:43 AM
To: Uday Kolli
Cc: gtk-app-devel-list gnome org
Subject: Re: Problem with TreeView Refresh

On Wed, 2004-11-10 at 16:04 -0500, Uday Kolli wrote:
Hi,

  I am having a problem with the refresh of the Tree View. I have a
List
store which is associated with the Tree View. 

But when the List store is modified, the GUI is not update
automatically.  It does so when a new row is added or a row is
deleted.

Isn't Tree View supposed to update when the store is changed. I can do
a
gtk_widget_queue_draw on the view/column but it is a very inefficient
way of updating a cell. Is there any API available that will enable us
to update a single cell in the Tree View?

Can you describe how you are modifying the store? 

If you are setting values using gtk_list_store_set() it definitely is
supposed to be updating automatically. If you are changing some value
that the list store points to (for example, modifying a GdkPixbuf) then
it isn't going to know to update.

The standard way of handling that is to set the same value back into
the list store, which will force an update.

Regards,
                                                Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]