[virt-tools-list] [virt-manager PATCH 2/2] details: introduce show_remove_button method

Cole Robinson crobinso at redhat.com
Thu Apr 24 17:06:30 UTC 2014

On 04/24/2014 11:40 AM, Chen Hanxiao wrote:
> On 04/24/2014 11:29 PM, Cole Robinson wrote:
>> On 04/24/2014 11:22 AM, Chen Hanxiao wrote:
>>> a)  vm -> details
>>> b) select one device(not USB controller)
>>> c) right click on USB controller
>>> d) we could use the popup menu to remove USB controller
>> Hmm, that doesn't work for me. When I right click, it selects that list entry
>> before showing the pop up menu, so everything is in the right state. Are you
>> using gnome-shell? Weirdness like this is often due to gtk on other desktops.
> Yes, I used gnome-shell.
> It seemed that right click is ahead of selection.
>> Regardless, we should fix it by forcing that behavior: before showing the
>> popup menu, force select the list entry (if it's not already selected).
>> - Cole
> That's a good idea.
> Can you give some hints?

gtktreeview has this function:


Can be used to get the treeiter for the row that was clicked on. You can use
that to force the selection.

- Cole

More information about the virt-tools-list mailing list