[gtkmm] IconTheme: Add add_resource_path() and deprecate add_builtin_icon().



commit af80c45f7942727d50bf3c47620ef6d70f0878ea
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jul 1 11:16:25 2014 +0200

    IconTheme: Add add_resource_path() and deprecate add_builtin_icon().

 gtk/src/icontheme.hg |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/src/icontheme.hg b/gtk/src/icontheme.hg
index d158572..eee7f93 100644
--- a/gtk/src/icontheme.hg
+++ b/gtk/src/icontheme.hg
@@ -26,6 +26,10 @@
 _DEFS(gtkmm,gtk)
 _PINCLUDE(glibmm/private/object_p.h)
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
 
 namespace Gtk
 {
@@ -53,6 +57,9 @@ public:
   std::vector<Glib::ustring> get_search_path() const;
   _WRAP_METHOD(void append_search_path(const Glib::ustring& path), gtk_icon_theme_append_search_path)
   _WRAP_METHOD(void prepend_search_path(const Glib::ustring& path), gtk_icon_theme_prepend_search_path)
+
+  _WRAP_METHOD(void add_resource_path(const std::string& path), gtk_icon_theme_add_resource_path)
+
   _WRAP_METHOD(void set_custom_theme(const Glib::ustring& theme_name), gtk_icon_theme_set_custom_theme)
   _WRAP_METHOD(bool has_icon(const Glib::ustring& icon_name) const, gtk_icon_theme_has_icon)
 
@@ -90,7 +97,7 @@ public:
 
   _WRAP_METHOD(Glib::ustring get_example_icon_name() const, gtk_icon_theme_get_example_icon_name)
   _WRAP_METHOD(bool rescan_if_needed(), gtk_icon_theme_rescan_if_needed)
-  _WRAP_METHOD(static void add_builtin_icon(const Glib::ustring& icon_name, int size, const 
Glib::RefPtr<Gdk::Pixbuf>& pixbuf), gtk_icon_theme_add_builtin_icon)
+  _WRAP_METHOD(static void add_builtin_icon(const Glib::ustring& icon_name, int size, const 
Glib::RefPtr<Gdk::Pixbuf>& pixbuf), gtk_icon_theme_add_builtin_icon, deprecated "Use add_resource_path() to 
add application-specific icons to the icon theme.")
 
   _WRAP_SIGNAL(void changed(), "changed")
 };


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