spice: s/OK/Close/ in USB redirection dialog (bz 1465907)

To make it more clear that USB redirection happens immediately

https://bugzilla.redhat.com/show_bug.cgi?id=1465907
This commit is contained in:
Cole Robinson 2017-07-17 15:46:12 -04:00
parent a0a8470362
commit 7d03190cb5
2 changed files with 4 additions and 3 deletions

View File

@ -1504,7 +1504,8 @@ class vmmDetails(vmmGObjectUI):
spice_usbdev_widget.show()
spice_usbdev_dialog.show_info(_("Select USB devices for redirection"),
widget=spice_usbdev_widget)
widget=spice_usbdev_widget,
buttons=Gtk.ButtonsType.CLOSE)
def _take_screenshot(self):
image = self.console.details_viewer_get_pixbuf()

View File

@ -151,9 +151,9 @@ class vmmErrorDialog(vmmGObject):
str(title), None, modal)
return False
def show_info(self, text1, text2=None, title="", widget=None, modal=True):
def show_info(self, text1, text2=None, title="", widget=None, modal=True,
buttons=Gtk.ButtonsType.OK):
dtype = Gtk.MessageType.INFO
buttons = Gtk.ButtonsType.OK
self._simple_dialog(dtype, buttons, text1, text2, title, widget, modal)
return False