From 7d03190cb527ad6921b1ac2cd69834dfe47e6196 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 17 Jul 2017 15:46:12 -0400 Subject: [PATCH] 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 --- virtManager/details.py | 3 ++- virtManager/error.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/virtManager/details.py b/virtManager/details.py index b3f079267..267aa594a 100644 --- a/virtManager/details.py +++ b/virtManager/details.py @@ -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() diff --git a/virtManager/error.py b/virtManager/error.py index 6f16169df..1de6c8b15 100644 --- a/virtManager/error.py +++ b/virtManager/error.py @@ -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