summaryrefslogtreecommitdiff
path: root/gio/src/themedicon.hg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2011-02-15 12:30:41 +0100
committerMurray Cumming <murrayc@murrayc.com>2011-02-15 12:30:41 +0100
commitefa5be64159016d2b9cc4ac8d1cc5a6176703ce7 (patch)
tree9152eca17509977c015641b13da8884f8451afe9 /gio/src/themedicon.hg
parent991637dd7502a05f8857015366a6805b3018303f (diff)
downloadglibmm-efa5be64159016d2b9cc4ac8d1cc5a6176703ce7.tar.gz
Dealt with several TODOs.
* gio/src/*.[hg|ccg]: Mostly just adding hand-coded documentation, and changing some new methods to use std::vector.
Diffstat (limited to 'gio/src/themedicon.hg')
-rw-r--r--gio/src/themedicon.hg13
1 files changed, 11 insertions, 2 deletions
diff --git a/gio/src/themedicon.hg b/gio/src/themedicon.hg
index b7260a9c..42435582 100644
--- a/gio/src/themedicon.hg
+++ b/gio/src/themedicon.hg
@@ -47,11 +47,20 @@ class ThemedIcon
_IMPLEMENTS_INTERFACE(Icon)
protected:
- //TODO: Documentation:
+ /** Creates a new themed icon for @ iconname, and optionally all the names that can be created by shortening @a iconname at '-' characters.
+ *
+ * @param iconname A string containing an icon name.
+ * use_default_callbacks Whether to use all the names that can be created by shortening @a iconname at '-' characters.
+ */
explicit ThemedIcon(const std::string& iconname, bool use_default_callbacks = false);
_IGNORE(g_themed_icon_new, g_themed_icon_new_with_default_fallbacks)
public:
+ /** Creates a new themed icon for @ iconname, and optionally all the names that can be created by shortening @a iconname at '-' characters.
+ *
+ * @param iconname A string containing an icon name.
+ * use_default_callbacks Whether to use all the names that can be created by shortening @a iconname at '-' characters.
+ */
_WRAP_CREATE(const std::string& iconname, bool use_default_callbacks = false)
//TODO: GIcon *g_themed_icon_new_from_names (char **iconnames, int len);
@@ -59,7 +68,7 @@ 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)
- //TODO: USe _WRAP_METHOD() instead, but:
+ //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)