Re: How to get the selected gtktreeitem?
- From: Vlad Harchev <hvv hippo ru>
- To: Ottavio Campana <bott iol it>
- Cc: Gtk-list <gtk-list gnome org>
- Subject: Re: How to get the selected gtktreeitem?
- Date: Wed, 23 Aug 2000 14:45:12 +0500 (SAMST)
On Wed, 23 Aug 2000, Ottavio Campana wrote:
> On Tue, Aug 22, 2000 at 11:38:22PM +0500, Vlad Harchev wrote:
> > Are you sure you need GTK_SELECTION_SINGLE? May be you need
> > GTK_SELECTION_BROWSE?
>
> No, I'm not sure of it. It's the first time I use the gtktree widget and
> I think I need a bit of help.
>
> I have got a function which creates some gtktreeitems with label and
> puts them into a gtktree. Together with this function I have got a
> similar one, which has to check if an item is selected, remove it and
> return the label of the item. And I don't know how to do it.
>
> Should I user GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE? Can anyone
> help help me?
The *_SINGLE mode allows selection of one or zero items, while
*_BROWSE allows selection exactly one item (if there is something to select
from). What is more suitable for your case - you decide.
> Bye and thanks.
>
Best regards,
-Vlad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]