The description of Gtk::TreeView::set_hover_selection() at
https://developer.gnome.org/gtkmm/stable/classGtk_1_1TreeView.html#ac2aa7aaff2cb5f1838aa30ddd224e09e
says: "Hover selection makes the selected row follow the pointer.
Currently, this works only for the selection modes Gtk::SELECTION_SINGLE
and Gtk::SELECTION_BROWSE."
Kjell
2013-03-07 16:46, Dos Santos, Oliveira skrev:
The signal_cursor_changed() signal works like a mouse click --->
GdkEventButton ev; (ev->type==GDK_BUTTON_PRESS)... useless
If you have any idea, any advices, any examples or any links to
documentation, you're welcome :)
Regards
Marco Dos Santos Oliveira
EBU/European Broadcasting Union
Technology and Innovation Department
*From:*gtkmm-list [mailto:[email protected]] *On Behalf Of
*Dos Santos, Oliveira
*Sent:* jeudi 7 mars 2013 16:12
*To:* [email protected]
*Subject:* How to implement the hover effect with multiple selection
mode in a TreeView
Hi everybody,
Basically, How to properly implement the set_hover_selection(true)
from the Gtk::TreeView Class with the
set_mode(Gtk::SELECTION_MULTIPLE) from the Gtk::TreeSelection class ???
When I implement only the hover effect, it works fine and I have the
expected effect on each row.
set_hover_selection(true); // works fine
When I implement only the multiple selection mode, it works fine and I
can select several rows of my Gtk::TreeView at the same time.
m_TreeViewSelection = get_selection();
m_TreeViewSelection->set_mode(Gtk::SELECTION_MULTIPLE); // works fine
When I try to implement the both, only the multiple selection mode
stays functional and the hover effect seems disable.
set_hover_selection(true); // seems to be disable
m_TreeViewSelection = get_selection();
m_TreeViewSelection->set_mode(Gtk::SELECTION_MULTIPLE); // works fine
My source code compiles without problem or warnings. When I launch my
application, all works fine; During operation, I have neither warning
or neither crashes and all seems to be fine except the hover effect
which doesn't work.
If it's a bug which needs to be fixed, can I activate my hover effect
with multiple selection if I connect the Glib::SignalProxy0<void>
Gtk::TreeView::signal_cursor_changed(void) signal ???
Regards
Marco Dos Santos Oliveira
EBU/European Broadcasting Union
Technology and Innovation Department
------------------------------------------------------------------------
*****************************************************
*This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. *
*If you have received this email in error, please notify the system
manager. This footnote also confirms that this email message has been
swept by the mailgateway*
*************************************************** **
------------------------------------------------------------------------
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list