summaryrefslogtreecommitdiff
path: root/gusb/gusb-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'gusb/gusb-device.c')
-rw-r--r--gusb/gusb-device.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index 3914143..45aa57c 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -116,9 +116,6 @@ g_usb_device_get_property (GObject *object,
case PROP_LIBUSB_DEVICE:
g_value_set_pointer (value, priv->device);
break;
- case PROP_CONTEXT:
- g_value_set_object (value, priv->context);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -198,7 +195,7 @@ g_usb_device_class_init (GUsbDeviceClass *klass)
g_param_spec_object ("context", NULL, NULL,
G_USB_TYPE_CONTEXT,
G_PARAM_CONSTRUCT_ONLY|
- G_PARAM_READWRITE);
+ G_PARAM_WRITABLE);
/**
* GUsbDevice:platform-id: