Re: Treeview signal cursor_changed()



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]