[Glade-users] liststore with GObjects



On Thu, 2009-08-20 at 10:41 -0400, Tristan Van Berkom wrote:
On Thu, Aug 20, 2009 at 10:01 AM, Alexey
Kurochkin<alexey.kurochkin at pathfinderlwd.com> wrote:
Is it possible to fill liststore's column with data if the column type
is GObject? I mean, even aside of implementing it in Glade, is it
technically possible to fill liststore with GObjects using GtkBuilder?

Yes, note that GObjects in the liststore are be passed by
reference (i.e. the value of an object column is the id/name
of the referred object in the file... the same object can show
up in multiple rows and columns...).

If you mean replacing <col id="0" /> which Glade generates for GObject
column with something like this:

<col id="0">adjustment1</col>

then it does not work. It segfaults... :(





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