summaryrefslogtreecommitdiff
path: root/glib/glibmm/interface.h
diff options
context:
space:
mode:
authorMarcin Kolny <marcin.kolny@gmail.com>2015-08-08 14:45:12 +0200
committerMarcin Kolny <marcin.kolny@gmail.com>2015-08-08 14:45:59 +0200
commit0d5f63b18f5766760cf39e82ee11482984e0a938 (patch)
treee3f74b9b37e7618c92840024077dff43e6d08f0d /glib/glibmm/interface.h
parentdce7a844e48a582e42eb2b60eef5c1f2527540ac (diff)
parentd94115843f38967b5e883f5f7d8057882ae364cb (diff)
downloadglibmm-gir-gmmproc.tar.gz
Merge branch 'master' into glibmm-gir-gmmprocglibmm-gir-gmmproc
Diffstat (limited to 'glib/glibmm/interface.h')
-rw-r--r--glib/glibmm/interface.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/glib/glibmm/interface.h b/glib/glibmm/interface.h
index 06390441..0fc9ba62 100644
--- a/glib/glibmm/interface.h
+++ b/glib/glibmm/interface.h
@@ -32,7 +32,7 @@ class Interface_Class;
#endif
// There is no base GInterface struct in Glib, though there is G_TYPE_INTERFACE enum value.
-class Interface : virtual public Glib::ObjectBase
+class GLIBMM_API Interface : virtual public Glib::ObjectBase
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
@@ -62,6 +62,10 @@ public:
explicit Interface(GObject* castitem);
virtual ~Interface();
+ // noncopyable
+ Interface(const Interface&) = delete;
+ Interface& operator=(const Interface&) = delete;
+
//void add_interface(GType gtype_implementer);
// Hook for translating API
@@ -74,11 +78,6 @@ public:
inline GObject* gobj() { return gobject_; }
inline const GObject* gobj() const { return gobject_; }
-
-private:
- // noncopyable
- Interface(const Interface&);
- Interface& operator=(const Interface&);
};
RefPtr<ObjectBase> wrap_interface(GObject* object, bool take_copy = false);