summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QGlib/object.cpp2
-rw-r--r--src/QGlib/object.h8
-rw-r--r--src/QGst/childproxy.h2
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);
}
}