Re: g_object_set and threads

2005-07-07 Thread Paul Pogonyshev
abel schie wrote: > Anyway, it works now. > > Thanks for your input Paul. You are welcome. And you sorted it out yourself in the end, anyway :) Paul ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinf

Re: g_object_set and threads

2005-07-07 Thread abel schie
abel schie wrote: > >No, you don't call gtk_tree_model_row_changed() from you cell data > >function, > >but from you time out function, which updates the list store. And you > > call it on the list store. > > Ok, I've tried that, but still the treeview doesn't get updated. > Maybe it has to do wi

Re: g_object_set and threads

2005-07-06 Thread Paul Pogonyshev
abel schie wrote: > >No, you don't call gtk_tree_model_row_changed() from you cell data > >function, > >but from you time out function, which updates the list store. And you > > call it on the list store. > > Ok, I've tried that, but still the treeview doesn't get updated. > Maybe it has to do wit

Re: g_object_set and threads

2005-07-06 Thread abel schie
No, you don't call gtk_tree_model_row_changed() from you cell data function, but from you time out function, which updates the list store. And you call it on the list store. Ok, I've tried that, but still the treeview doesn't get updated. Maybe it has to do with g_object_set which I use to upd

Re: g_object_set and threads

2005-07-06 Thread Paul Pogonyshev
abel schie wrote: > >abel schie wrote: > > > I've made a gtktreeviewcolumn with a custom GtkTreeCellDataFunc, > > > called cell_func(). This custom function uses the underlying > > > GtkListStore to render the cells: it uses gtk_tree_model_get() to > > > fetch some values, and then g_object_set(ren

Re: g_object_set and threads

2005-07-06 Thread abel schie
In any case, I really doubt that this has anything to do with using threads. I think it has, since this refreshing problem started since I had do use gdk_trheads_enter()/leave() is some other part of the application. A naive guess of mine would be to suggest you try putting gtk_widget_queue_

Re: g_object_set and threads

2005-07-06 Thread abel schie
abel schie wrote: > I've made a gtktreeviewcolumn with a custom GtkTreeCellDataFunc, > called cell_func(). This custom function uses the underlying > GtkListStore to render the cells: it uses gtk_tree_model_get() to > fetch some values, and then g_object_set(renderer,...) to update the > cell rend

Re: g_object_set and threads

2005-07-05 Thread Paul Pogonyshev
abel schie wrote: > I've made a gtktreeviewcolumn with a custom GtkTreeCellDataFunc, > called cell_func(). This custom function uses the underlying > GtkListStore to render the cells: it uses gtk_tree_model_get() to > fetch some values, and then g_object_set(renderer,...) to update the > cell rende

Re: g_object_set and threads

2005-07-05 Thread Tristan Van Berkom
abel schie wrote: [...] My question is: how can I force g_object_set() to instantly redraw the cell renderer? My first thought was: use gdk_threads_enter() and gdk_threads_leave() also within cell_func(). But when I do that, I get a lock while constructing the treeview, therefore the app hangs. P

g_object_set and threads

2005-07-05 Thread abel schie
Hi, I've made a gtktreeviewcolumn with a custom GtkTreeCellDataFunc, called cell_func(). This custom function uses the underlying GtkListStore to render the cells: it uses gtk_tree_model_get() to fetch some values, and then g_object_set(renderer,...) to update the cell renderer. Now, there are s