Re: How does Gtk::TreeView::Selection::select() work?
- From: José Alburquerque <jaalburquerque cox net>
- To: gtkmm-list gnome org
- Subject: Re: How does Gtk::TreeView::Selection::select() work?
- Date: Tue, 02 Oct 2007 12:57:43 -0400
José Alburquerque wrote:
Hi, I have a quick question; How does the
Gtk::TreeView::Selection::select() method work? Is it as if a click was
done on a row with the mouse or different? I've noticed something weird
in my program and want to make sure I'm not doing something wrong:
I've connected a slot to listen for TreeView selection changes using
Gtk::TreeView::Selection::signal_changed().connect(...). In the
callback member function I get the current selection (Gtk::TreeIter),
try to access the row and then get a column in the row (by dereferencing
and indexing the iterator with a Gtk::TreeModelColumn). If I click the
row in the TreeView with the mouse, all works as expected, but if I call
"select()" from within the program, the slot gets called, but accessing
the row (ie, dereferencing) is impossible. Am I doing something wrong
somewhere? Thanks.
Never mind. It was a problem with my code! Thanks.
-Jose
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]