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. >> > > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
