[glibmm] Wrap couple of unwrapped methods.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Wrap couple of unwrapped methods.
- Date: Wed, 26 May 2010 00:16:09 +0000 (UTC)
commit 12ef76fc5f6f00f93cd89ad8d9275741a56ac8d1
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Tue May 25 20:12:39 2010 -0400
Wrap couple of unwrapped methods.
* gio/src/desktopappinfo.hg: Wrap get_filename().
* glib/src/keyfile.hg: Wrap load_from_dirs().
* glib/src/convert.hg:
* glib/src/valuearray.hg: some _IGNORE()'s.
ChangeLog | 9 +++++++++
gio/src/desktopappinfo.hg | 1 +
glib/src/convert.hg | 1 +
glib/src/keyfile.hg | 12 +++---------
glib/src/valuearray.hg | 1 +
5 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ee0ea2b..b5b6931 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-05-25 José Alburquerque <jaalburqu svn gnome org>
+
+ Wrap couple of unwrapped methods.
+
+ * gio/src/desktopappinfo.hg: Wrap get_filename().
+ * glib/src/keyfile.hg: Wrap load_from_dirs().
+ * glib/src/convert.hg:
+ * glib/src/valuearray.hg: some _IGNORE()'s.
+
2010-05-05 José Alburquerque <jaalburqu svn gnome org>
gmmproc: Quote the property docs to avoid losing text after commas.
diff --git a/gio/src/desktopappinfo.hg b/gio/src/desktopappinfo.hg
index 29bab3a..ed0ec90 100644
--- a/gio/src/desktopappinfo.hg
+++ b/gio/src/desktopappinfo.hg
@@ -46,6 +46,7 @@ public:
_WRAP_METHOD(static Glib::RefPtr<DesktopAppInfo> create_from_keyfile(Glib::KeyFile& key_file), g_desktop_app_info_new_from_keyfile)
_WRAP_METHOD(static Glib::RefPtr<DesktopAppInfo> create_from_filename(const std::string& filename), g_desktop_app_info_new_from_filename)
+ _WRAP_METHOD(std::string get_filename() const, g_desktop_app_info_get_filename)
_WRAP_METHOD(bool is_hidden() const, g_desktop_app_info_get_is_hidden)
_WRAP_METHOD(static void set_desktop_env(const std::string& desktop_env), g_desktop_app_info_set_desktop_env)
};
diff --git a/glib/src/convert.hg b/glib/src/convert.hg
index 079454a..0e4333a 100644
--- a/glib/src/convert.hg
+++ b/glib/src/convert.hg
@@ -79,6 +79,7 @@ public:
* @return Count of non-reversible conversions, or <tt>static_cast<size_t>(-1)</tt> on error.
*/
size_t iconv(char** inbuf, gsize* inbytes_left, char** outbuf, gsize* outbytes_left);
+ _IGNORE(g_iconv)
/** Reset conversion descriptor to initial state.
* Same as <tt>iconv(0, 0, 0, 0)</tt>, but implemented slightly differently
diff --git a/glib/src/keyfile.hg b/glib/src/keyfile.hg
index 75b4b06..33c3516 100644
--- a/glib/src/keyfile.hg
+++ b/glib/src/keyfile.hg
@@ -132,15 +132,9 @@ public:
#endif
_IGNORE(g_key_file_load_from_data)
- //TODO:
- /*
- gboolean g_key_file_load_from_dirs (GKeyFile *key_file,
- const gchar *file,
- const gchar **search_dirs,
- gchar **full_path,
- GKeyFileFlags flags,
- GError **error);
- */
+#m4 _CONVERSION(`const Glib::ArrayHandle<std::string>&', `const gchar**', `const_cast<const gchar**>($3.data())')
+#m4 _CONVERSION(`Glib::ArrayHandle<std::string>&', `gchar**', `const_cast<gchar**>($3.data())')
+ _WRAP_METHOD(bool load_from_dirs(const std::string& file, const Glib::ArrayHandle<std::string>& search_dirs, Glib::ArrayHandle<std::string>& full_path, KeyFileFlags flags = Glib::KEY_FILE_NONE), g_key_file_load_from_dirs, errthrow)
/** Looks for a KeyFile named @a file in the paths returned from
* g_get_user_data_dir() and g_get_system_data_dirs() and loads them
diff --git a/glib/src/valuearray.hg b/glib/src/valuearray.hg
index cbe9cc0..64bb99d 100644
--- a/glib/src/valuearray.hg
+++ b/glib/src/valuearray.hg
@@ -79,6 +79,7 @@ public:
_WRAP_METHOD_DOCS_ONLY(g_value_array_sort)
Glib::ValueArray& sort(const SlotCompare& compare_func);
+ _IGNORE(g_value_array_sort_with_data)
};
} //namespace Glib
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]