[prev in list] [next in list] [prev in thread] [next in thread]
List: gtkmm
Subject: Re: [gtkmm] How can I obtain index of selection? (Gtk::Combo)
From: "Daniel J. Lauk" <Daniel.Lauk () Student ! FH-Reutlingen ! de>
Date: 2004-09-30 11:03:09
Message-ID: 415be7ed.6691.0 () MailServ ! FH-Reutlingen ! DE
[Download RAW message or body]
>>> The index then is available via a call to
>>> my_map[my_combo->get_entry()->get_text()].
>>
>> You can also make a non-viewable column for the index, and set that as
>> you append items. It's always retrievable from the selected row, and
>> you don't have to maintain a map.
>
>He's talking about the deprecated Gtk::Combo widget, but I think you are
>talking about the new Gtk::ComboBox widget. With the ComboBox you would
>probably want to use the TreeModel::iterator instead of an index anyway.
Murray is right, I am talking about the deprecated Gtk::Combo, just like the
subject line says ;-)
Please correct me, if I err, but in gtkmm-2.2 there is no Gtk::ComboBox, right?
At least I couldn't find it...
Best regards,
DJ
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic