mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 14:54:14 +00:00
Change 'OK' button to 'Close' button in USB device selection
The USB device selection applies immediately, so the dialog should be using 'Close' instead of 'OK' for its primary button
This commit is contained in:
parent
90b3edc396
commit
d0d226ca8f
@ -379,7 +379,7 @@ virt_viewer_session_spice_usb_device_selection(VirtViewerSession *session,
|
||||
/* Create the widgets */
|
||||
dialog = gtk_dialog_new_with_buttons(_("Select USB devices for redirection"), parent,
|
||||
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
|
||||
GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);
|
||||
gtk_container_set_border_width(GTK_CONTAINER(dialog), 12);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user