diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-01-12 00:48:29 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-01-12 00:48:29 +0200 |
commit | 403f903933ccd50bc2f6f51af3c8545593036a8a (patch) | |
tree | 1d06fbac3ceabdea0a8de4707f91e75b27095e4b /src | |
parent | 0ca51dbf9e33d49bb7a944ce9ae5966a812cbdcb (diff) |
Rename ObjectBase::setPropertyValue to setProperty.
Diffstat (limited to 'src')
-rw-r--r-- | src/QGlib/object.cpp | 2 | ||||
-rw-r--r-- | src/QGlib/object.h | 8 | ||||
-rw-r--r-- | src/QGst/childproxy.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/QGlib/object.cpp b/src/QGlib/object.cpp index 0e1b918..77fc7e0 100644 --- a/src/QGlib/object.cpp +++ b/src/QGlib/object.cpp @@ -70,7 +70,7 @@ Value ObjectBase::property(const char *name) const return result; } -void ObjectBase::setPropertyValue(const char *name, const Value & value) +void ObjectBase::setProperty(const char *name, const Value & value) { g_object_set_property(object<GObject>(), name, value); } diff --git a/src/QGlib/object.h b/src/QGlib/object.h index 3c6037f..357c74b 100644 --- a/src/QGlib/object.h +++ b/src/QGlib/object.h @@ -59,10 +59,10 @@ public: /*! Sets the property with the given \a name to hold the given \a value. * \a value \em must have exactly the same type that the property expects, - * otherwise this call will fail. Normally, you should use setProperty() - * instead of this function. + * otherwise this call will fail. Normally, you should use the template + * version of setProperty() instead of this function. */ - void setPropertyValue(const char *name, const Value & value); + void setProperty(const char *name, const Value & value); void *data(const char *key) const; void *stealData(const char *key) const; @@ -110,7 +110,7 @@ void ObjectBase::setProperty(const char *name, const T & value) Value v; v.init(param->valueType()); v.set<T>(value); - setPropertyValue(name, v); + setProperty(name, v); } } diff --git a/src/QGst/childproxy.h b/src/QGst/childproxy.h index 2128f32..9003437 100644 --- a/src/QGst/childproxy.h +++ b/src/QGst/childproxy.h @@ -46,7 +46,7 @@ void ChildProxy::setChildProperty(const char *name, const T & value) QGlib::Value v; v.init(param->valueType()); v.set<T>(value); - object->setPropertyValue(param->name(), value); + object->setProperty(param->name(), value); } } |