[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: About Treeview update with thread
- From: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
- To: 唐瑞博 <ruibotang gmail com>
- Cc: muppet <scott asofyet org>, gtk-perl-list gnome org
- Subject: Re: About Treeview update with thread
- Date: Wed, 13 May 2009 17:40:35 +0200
2009/5/13 唐瑞博 <ruibotang gmail com>
> hi, muppet,
>
> Many thanks for your suggestion, sorry for late to response.
>
> I have tried the three methods you mentioned (gdk lock; Glib::Idle and a
> variant technique), and found an alternative solution for my issue. But
> there still exist other unsolved issues, as below
>
> For the gdk lock method, I have used Gtk2::Gdk::Threads->enter and
> Gtk2::Gdk::Threads->leave in my background thread, it seem that it can
> update all the widgets(like button, labes) correctly excepte the
> Gtk2::TreeModel(I used a Gtk2::ListStore actually). when i use the
> Gtk2::TreeModel->set() method, it will fail and says "Usage:
> Gtk2::TreeModel->set($liststore, $iter, $col.....)" , and then the exit. I
> checked my code and found that I have a column with type Glib::Scalar in my
> treemodel, in this column i assign a pointer to an new constructed object (
> the object is not a subclass of Glib::Object, and have not decleared as
> shared), I do not know if the fail have relationship with this object?
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]