Re: How to know a row is a child?



Hey Arthur:

Use the Gtk::TreeModel::Row::parent method, and test the resulting like
a boolean variable; it will be FALSE if there is no parent (and hence
the row is NOT a child).

Bob

Arthur Maciel wrote:

> Guys,
> one more question. If I have a row selected and click a button
> supposed to perform an action, how could I know if the row selected is
> a parent or a child row (let's suppose I have just 2 levels of
> relation - parent and child without other childs inside it).
> Thank you.
>
> Arthur
>
>------------------------------------------------------------------------
>
>_______________________________________________
>gtkmm-list mailing list
>gtkmm-list gnome org
>http://mail.gnome.org/mailman/listinfo/gtkmm-list
>  
>



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