summaryrefslogtreecommitdiff
path: root/gusb
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-11-25 14:00:44 +0000
committerRichard Hughes <richard@hughsie.com>2015-11-25 14:00:44 +0000
commita6335c25c94d946ddf44ca4ee8320e61084814de (patch)
treef499e84d62a77aa063546156ba7a774d9f82dfc0 /gusb
parent5029d349a0e06cbe2e97231d16ebe1e65e5afa56 (diff)
downloadgusb-a6335c25c94d946ddf44ca4ee8320e61084814de.tar.gz
Revert "Allow getting the GUsbContext from the GUsbDevice"
This reverts commit 7561b53eed51776b393e0b5e270cb07d637835a9. It's a layering violation, and I've found a better way to do this now.
Diffstat (limited to 'gusb')
-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: