Handling parent & child behaviour using tree view
- From: "Saba Khan" <s_i_uk hotmail com>
- To: diego otello alma unibo it
- Cc: gtk-list gnome org
- Subject: Handling parent & child behaviour using tree view
- Date: Wed, 06 Dec 2006 07:07:35 +0000
Hello,
Sorry for my last thread as now requirement is little bit changed now.
Parent child behaviour in tree view when i select the child toggle button ,
All parents are selected by default itself if it does not
selected already.
And now when i use to select parent toggle button parent should be selected
in that way as well as its childs also.
So how i can make this relation using tree view.
I used this method, gtk_tree_model_iter_parent() but i have problem like
this.
gtk_tree_store_iter_parent: assertion `child->stamp == GTK_TREE_STORE
(tree_model)->stamp' failed.
(:7868): Gtk-CRITICAL **: gtk_tree_store_set: assertion `VALID_ITER (iter,
tree_store)' failed
Please do me feedback.
saba
From: Diego Zuccato <diego otello alma unibo it>
To: Saba Khan <s_i_uk hotmail com>
CC: yeti physics muni cz, gtk-list gnome org
Subject: Re: Making parent & child behaviour in tree view
Date: Wed, 15 Nov 2006 14:44:54 +0100
Saba Khan ha scritto:
> Hi,
> I want to become parent child behaviour in tree view. When i select the
> child toggle button , parent is selected by default itself if it does
not
> selected already. But when i use to select parent toggle button only
parent
> should be selected in that way not rest of childs.
> So how i can make this relation in tree view.
> Hope for the positive and prompt reply.
Hou have to find the parent of the selected row (see
gtk_tree_model_iter_parent() ) and select there what you need to be
selected, iterating to the root or until a parent node is already selected.
BYtE,
Diego.
_________________________________________________________________
Windows Live? Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]