summaryrefslogtreecommitdiff
path: root/glib/glibmm/object.h
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@usa.net>2003-11-01 17:01:02 +0000
committerMurray Cumming <murrayc@src.gnome.org>2003-11-01 17:01:02 +0000
commita86081587ca4aa8e090cffcc10dfe62412ed46b9 (patch)
tree73a8740f5d5c8d47e441f03b002b68801af7cb76 /glib/glibmm/object.h
parentfe56b08cc8158d4022c51265803fa32f22d6c4d0 (diff)
downloadglibmm-a86081587ca4aa8e090cffcc10dfe62412ed46b9.tar.gz
Now uses ObjectBase instead of Object, because glib can now have
2003-11-01 Murray Cumming <murrayc@usa.net> * glib/glibmm/propertyproxy.h, propertyproxy_base.[h|cc]: Now uses ObjectBase instead of Object, because glib can now have properties on interfaces. This is needed, for instance, by the GtkFileChooser interface wrapper in gtkmm. * glib/glibmm/object.h: Moved get/set_property() methods into ObjectBase, for the same reason. * tools/pm/WrapParser.pm, Output.pm: Added optional no_default_handler parameter to gmmproc _WRAP_SIGNAL() macro, for signals whose default signal handler is not in the klass struct and therefore can not be overridden.
Diffstat (limited to 'glib/glibmm/object.h')
-rw-r--r--glib/glibmm/object.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/glib/glibmm/object.h b/glib/glibmm/object.h
index 9cd42412..a67b387e 100644
--- a/glib/glibmm/object.h
+++ b/glib/glibmm/object.h
@@ -23,8 +23,6 @@
#include <glibmm/objectbase.h>
#include <glibmm/wrap.h>
#include <glibmm/quark.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/propertyproxy.h>
#include <glibmm/refptr.h>
#include <glibmm/utility.h> /* Could be private, but that would be tedious. */
#include <glibmm/value.h>
@@ -126,20 +124,6 @@ public:
//T& get_data_typed(const QueryQuark& quark)
// { return *static_cast<T*>(get_data(quark)); }
- /// You probably want to use a specific property_*() accessor method instead.
- void set_property_value(const Glib::ustring& property_name, const Glib::ValueBase& value);
-
- /// You probably want to use a specific property_*() accessor method instead.
- void get_property_value(const Glib::ustring& property_name, Glib::ValueBase& value) const;
-
- /// You probably want to use a specific property_*() accessor method instead.
- template <class PropertyType>
- void set_property(const Glib::ustring& property_name, const PropertyType& value);
-
- /// You probably want to use a specific property_*() accessor method instead.
- template <class PropertyType>
- void get_property(const Glib::ustring& property_name, PropertyType& value) const;
-
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
@@ -156,32 +140,6 @@ private:
//virtual void set_manage();
};
-
-#ifndef DOXYGEN_SHOULD_SKIP_THIS
-
-template <class PropertyType>
-void Object::set_property(const Glib::ustring& property_name, const PropertyType& value)
-{
- Glib::Value<PropertyType> property_value;
- property_value.init(Glib::Value<PropertyType>::value_type());
-
- property_value.set(value);
- this->set_property_value(property_name, property_value);
-}
-
-template <class PropertyType>
-void Object::get_property(const Glib::ustring& property_name, PropertyType& value) const
-{
- Glib::Value<PropertyType> property_value;
- property_value.init(Glib::Value<PropertyType>::value_type());
-
- this->get_property_value(property_name, property_value);
-
- value = property_value.get();
-}
-
-#endif /* DOXYGEN_SHOULD_SKIP_THIS */
-
} // namespace Glib
#endif /* _GLIBMM_OBJECT_H */