diff options
author | Jonathon Jongsma <jjongsma@src.gnome.org> | 2008-12-12 02:42:47 +0000 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@src.gnome.org> | 2008-12-12 02:42:47 +0000 |
commit | f699807ad855b66f5d27b081ee74c9e275f1afeb (patch) | |
tree | f6611313a01e45b74e95b588585c79e44823003a /gio/src/icon.hg | |
parent | be0a224e2cef917088a42550157acf7d8e714874 (diff) | |
download | glibmm-f699807ad855b66f5d27b081ee74c9e275f1afeb.tar.gz |
Add a bunch of new / missed API
svn path=/trunk/; revision=754
Diffstat (limited to 'gio/src/icon.hg')
-rw-r--r-- | gio/src/icon.hg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gio/src/icon.hg b/gio/src/icon.hg index 5f0671d3..8b9a0c46 100644 --- a/gio/src/icon.hg +++ b/gio/src/icon.hg @@ -44,13 +44,23 @@ class Icon : public Glib::Interface _CLASS_INTERFACE(Icon, GIcon, G_ICON, GIconIface) public: + // We can't just use a _WRAP_CREATE macro here since this is an abstract + // interface class, so implement it by hand +#ifdef GLIBMM_EXCEPTIONS_ENABLED + static Glib::RefPtr<Icon> create(const std::string& str); +#else + static Glib::RefPtr<Icon> create(const std::string& str, std::auto_ptr<Glib::Error>& error); +#endif // GLIBMM_EXCEPTIONS_ENABLED + _IGNORE(g_icon_new_for_string) _WRAP_METHOD(guint hash() const, g_icon_hash) + _WRAP_METHOD(std::string to_string() const, g_icon_to_string) _IGNORE(g_icon_equal) // TODO: should this, and File's equal(), be virtual, in order to // be available to derived classes? bool equal(const Glib::RefPtr<Icon>& other) const; + //_WRAP_VFUNC(guint hash() const, "hash") // TODO: also kind of related to equal() being virtual or not, |