Re: Keeping tree rows selected during a pop-up menu
- From: Matt Bragano <maestro485 comcast net>
- Cc: gtkmm-list gnome org
- Subject: Re: Keeping tree rows selected during a pop-up menu
- Date: Fri, 09 Nov 2007 16:14:40 -0500
Murray Cumming wrote:
On Thu, 2007-11-08 at 16:54 -0500, Matt Bragano wrote:
I have a TreeView that allows multiple selections. When multiple
selections are made and the user right-clicks, a pop-up menu appears
where the user can choose to add the selected files to a play list. My
problem is that whenever the right mouse button is released and the menu
appears the selections are unselected, which makes the option to add
selected files useless from the pop-up menu (although it still works
fine from the standard menu bar).
If you are overriding on_button_press_event(), maybe you need to call
the base class's on_button_press_event().
You're right. I was just ironing out the bugs and thats what I needed.
So I'm wondering how I can maintain the selection after the TreeView
itself loses focus to the pop-up menu. I messed around with
TreeSelection::set_select_function() but I was unable to make the
callback slot behave properly.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]