> <mailto: leerling@xxxxxxxxxx>> wrote:This application is purely the gui part of my system. I have another
>
> Hi,
>
> I'm slightly overwhelmed as to the whole reference counting issue.
> Could
> someone explain the though process or logic behind the reference
> counting or direct me to some information where I can find the
> correct
> use. For example, in my code I set up my combo boxes on startup using
> gtk_list_store_newv and gtk_combo_box_set_model. (Do I need to
> unref the
> list_store pointer at this stage?)
>
>
> This is a question of how you interpret your application, think, do you
> want to give the ownership of your data model to your view widget ?
>
application that does the actual work, so my gui is totally stateless.
To my knowledge is it advantageous to give the ownership to the view
widget as I don't have to keep variables laying around. If I need
something like the store I can always request it from GTK.> Will you be having multiple list stores that you might want to keepNo, I initialise the stores on startup and just add/remove items from them.
> around and alternate the view ?
>> If you unref your list store (passing ownership to the combo box), thenDoes this mean that I have to unref the store as soon as I have assigned
> destroying (freeing) the combo box will take care of finalizing (freeing)
> the list store.
>
it to the combo (gtk_combo_box_set_model) ?
to the combo, as opposed to simply leeking it or unreffing the store
yourself when you know its no longer needed.
Cheers,
-Tristan
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list