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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

https://developer.gnome.org/gtk3/stable/GtkTreeView.html#gtk-tree-view-get-path-at-pos

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

- Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux