diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-03-03 11:43:07 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-03-06 12:55:30 +0100 |
commit | 54a3e7d600f21bc16711df8b1aba856d2818cfa2 (patch) | |
tree | 8bb1b0c3fd91e5beceaf943df56657eeb7c9143e | |
parent | c8f3a9e843c6ef3038a57b8cfb3efa2f8c7c2901 (diff) |
usbredir: Gnome HIG-ify USB device selection dialog
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@redhat.com>
-rw-r--r-- | 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", |