Re: Treeview signal cursor_changed()
- From: Roger Leigh <rleigh whinlatter ukfsn org>
- To: Igor Jovanovic <igorj pixelthorn com>
- Cc: Gtkmm List <gtkmm-list gnome org>
- Subject: Re: Treeview signal cursor_changed()
- Date: Mon, 31 Jan 2005 09:55:27 +0000
On Mon, Jan 31, 2005 at 10:46:34AM +0100, Igor Jovanovic wrote:
> Hi.
>
> I noticed that while interactively searching on Gtk::TreeView
> signal `cursor_changed()` is not emitted when selection is changing
> position in a view, but only when row is manually selected with mouse-
> click or keyboard.
>
> Is there an other signal that can be used to solve this.
Glib::RefPtr<Gtk::TreeSelection> selection = treeview->get_selection();
selection->signal_changed().connect(...);
...
if (selection->get_model().is_null() == false &&
selection->count_selected_rows() > 0)
...
Regards,
Roger
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]