[virt-tools-list] [PATCH 02/11] usbredir: Gnome HIG-ify USB device selection dialog
Hans de Goede
hdegoede at redhat.com
Sun Mar 4 19:05:53 UTC 2012
These changes match the changes already made to the spice-gtk
usb device selection widget to match the spacing advised by the Gnome HIG.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/virt-viewer-session-spice.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 1d6c592..dcde662 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -368,13 +368,16 @@ virt_viewer_session_spice_usb_device_selection(VirtViewerSession *session,
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
NULL);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);
+ gtk_container_set_border_width(GTK_CONTAINER(dialog), 12);
+ gtk_box_set_spacing(GTK_BOX(gtk_bin_get_child(GTK_BIN(dialog))), 12);
+
area = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
usb_device_widget = spice_usb_device_widget_new(priv->session,
"%s %s");
g_signal_connect(usb_device_widget, "connect-failed",
G_CALLBACK(usb_connect_failed), self);
- gtk_box_pack_start(GTK_BOX(area), usb_device_widget, TRUE, TRUE, 5);
+ gtk_box_pack_start(GTK_BOX(area), usb_device_widget, TRUE, TRUE, 0);
/* This shrinks the dialog when USB devices are unplugged */
g_signal_connect(usb_device_widget, "remove",
--
1.7.7.6
More information about the virt-tools-list
mailing list