virt-manager: fix "Copy Volume Path" in storage pool details window
It fixes this error: Traceback (most recent call last): File "virt-manager/virtManager/host.py", line 973, in copy_vol_path clipboard.set_text(target_path) File "/usr/lib/python2.7/site-packages/gi/types.py", line 113, in function return info.invoke(*args, **kwargs) TypeError: set_text() takes exactly 3 arguments (2 given) Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
f4918b3b32
commit
155a7f1f03
|
@ -23,6 +23,7 @@ import logging
|
|||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtinst import VirtualDisk
|
||||
|
@ -966,10 +967,10 @@ class vmmHost(vmmGObjectUI):
|
|||
vol = self.current_vol()
|
||||
if not vol:
|
||||
return
|
||||
clipboard = Gtk.Clipboard()
|
||||
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
|
||||
target_path = vol.get_target_path()
|
||||
if target_path:
|
||||
clipboard.set_text(target_path)
|
||||
clipboard.set_text(target_path, -1)
|
||||
|
||||
|
||||
def repopulate_storage_pools(self, src_ignore=None, uuid_ignore=None):
|
||||
|
|
Loading…
Reference in New Issue