[glibmm] ThemedIcon: Added get_names().



commit 38476d201d2e5ffe04142d09f93c90d5960f4523
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 24 09:20:41 2010 +0100

    ThemedIcon: Added get_names().
    
    * gio/src/themedicon.[hg|ccg]: Add get_names() manually because we have
        a strange error when trying to use _WRAP_METHOD() for it.
        Bug #612584 (Markus Schwab)

 ChangeLog              |    8 ++++++++
 gio/src/themedicon.ccg |    7 +++++++
 gio/src/themedicon.hg  |    5 ++++-
 3 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 318a30f..6ab47a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-24  Murray Cumming  <murrayc murrayc com>
+
+    ThemedIcon: Added get_names().
+
+	* gio/src/themedicon.[hg|ccg]: Add get_names() manually because we have 
+    a strange error when trying to use _WRAP_METHOD() for it.
+    Bug #612584 (Markus Schwab)
+
 2010-03-23  Alexey Kosilin  <kosilin gmail com>
 
     MemoryInputStream: Correct data loss/corruption with binary data.
diff --git a/gio/src/themedicon.ccg b/gio/src/themedicon.ccg
index 214cf9e..5f471ef 100644
--- a/gio/src/themedicon.ccg
+++ b/gio/src/themedicon.ccg
@@ -27,5 +27,12 @@ ThemedIcon::ThemedIcon(const std::string& iconname, bool use_default_callbacks)
   _CONSTRUCT("name", iconname.c_str(), "use-default-fallbacks", gboolean(use_default_callbacks))
 {}
 
+Glib::StringArrayHandle ThemedIcon::get_names() const
+{
+ return Glib::StringArrayHandle(
+    g_themed_icon_get_names(const_cast<GThemedIcon*>(gobj())),
+    Glib::OWNERSHIP_DEEP);
+
+}
 
 } //namespace Gio
diff --git a/gio/src/themedicon.hg b/gio/src/themedicon.hg
index 4271fd1..b7260a9 100644
--- a/gio/src/themedicon.hg
+++ b/gio/src/themedicon.hg
@@ -59,9 +59,12 @@ public:
   _WRAP_METHOD(void prepend_name(const std::string& iconname), g_themed_icon_prepend_name)
   _WRAP_METHOD(void append_name(const std::string& iconname), g_themed_icon_append_name)
 
-#m4 _CONVERSION(`const char*const*',`Glib::StringArrayHandle',`Glib::StringArrayHandle($3, Glib::OWNERSHIP_DEEP)')
+  //TODO: USe _WRAP_METHOD() instead, but:
+  //#m4 _CONVERSION(`const char*const*',`Glib::StringArrayHandle',`Glib::StringArrayHandle($3, Glib::OWNERSHIP_DEEP)')
   //TODO: gmmproc complains about the wrong number of arguments, but I can't see why. murrayc.
   //_WRAP_METHOD(Glib::StringArrayHandle get_names() const, g_themed_icon_get_names)
+  Glib::StringArrayHandle get_names() const;
+  _IGNORE(g_themed_icon_get_names)
 
 
   //There are no signals.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]