| Top |  |  |  |  | 
| gchar * | device-format-string | Read / Write / Construct Only | 
| SpiceSession * | session | Read / Write / Construct Only | 
    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBox
                    ╰── SpiceUsbDeviceWidget
SpiceUsbDeviceWidget implements AtkImplementorIface, GtkBuildable and GtkOrientable.
SpiceUsbDeviceWidget is a gtk widget which apps can use to easily add an UI to select USB devices to redirect (or unredirect).
GtkWidget * spice_usb_device_widget_new (SpiceSession *session,const gchar *device_format_string);
Creates a new widget to control USB redirection.
| session | SpiceSession for which to widget will control USB redirection | |
| device_format_string | String passed to
 | [allow-none] | 
typedef struct _SpiceUsbDeviceWidget SpiceUsbDeviceWidget;
The SpiceUsbDeviceWidget struct is opaque and should not be accessed directly.
typedef struct _SpiceUsbDeviceWidgetClass SpiceUsbDeviceWidgetClass;
Class structure for SpiceUsbDeviceWidget. It is opaque and should not be accessed directly.
“device-format-string” property  “device-format-string”     gchar *
Format string to pass to spice_usb_device_get_description() for getting
the device USB descriptions.
Owner: SpiceUsbDeviceWidget
Flags: Read / Write / Construct Only
Default value: NULL
“session” property“session” SpiceSession *
SpiceSession this SpiceUsbDeviceWidget is associated with
Owner: SpiceUsbDeviceWidget
Flags: Read / Write / Construct Only
“connect-failed” signalvoid user_function (SpiceUsbDeviceWidget *widget, SpiceUsbDevice *device, GError *error, gpointer user_data)
The “connect-failed” signal is emitted whenever the user has requested for a device to be redirected and this has failed.
| widget | The SpiceUsbDeviceWidget that emitted the signal | |
| device | SpiceUsbDevice boxed object corresponding to the added device | |
| error | GError describing the reason why the connect failed | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run First