diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2019-02-02 10:08:42 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2019-02-02 10:08:42 +0100 |
commit | 0cd517399a4fafa6578b63ba45cee8968b317058 (patch) | |
tree | f1101da6dc3772ed762a25cc6893d438940e3177 /tools/m4/convert_glib.m4 | |
parent | 203063d1b7a8bcc9bb0ffb9e8bbbfe5d5832a944 (diff) | |
download | glibmm-0cd517399a4fafa6578b63ba45cee8968b317058.tar.gz |
Glib::KeyFile: Make it a _CLASS_OPAQUE_REFCOUNTED
* examples/keyfile/main.cc:
* gio/src/desktopappinfo.hg: Store KeyFile in a RefPtr.
* glib/src/keyfile.[ccg|hg]: Replace _CLASS_GENERIC by _CLASS_OPAQUE_REFCOUNTED.
Remove handcoded methods that are now generated by gmmproc.
* tools/m4/convert_glib.m4: Update conversion for KeyFile.
GKeyFile is refcounted since 2009.
Diffstat (limited to 'tools/m4/convert_glib.m4')
-rw-r--r-- | tools/m4/convert_glib.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/m4/convert_glib.m4 b/tools/m4/convert_glib.m4 index 87197e49..f8bc1364 100644 --- a/tools/m4/convert_glib.m4 +++ b/tools/m4/convert_glib.m4 @@ -109,7 +109,8 @@ _CONVERSION(`GDateTime*',`Glib::DateTime',`Glib::wrap($3)') _CONVERSION(`const DateTime&',`GDateTime*',`const_cast<$2>($3.gobj())') dnl KeyFile -_CONVERSION(`Glib::KeyFile&',`GKeyFile*',`($3).gobj()') +_CONVERSION(`const Glib::RefPtr<Glib::KeyFile>&',`GKeyFile*',__CONVERT_REFPTR_TO_P) +_CONVERSION(`const Glib::RefPtr<const Glib::KeyFile>&',`GKeyFile*',__CONVERT_CONST_REFPTR_TO_P) dnl Object _CONVERSION(`const Glib::RefPtr<Glib::Object>&',`GObject*',__CONVERT_REFPTR_TO_P) |