[gtkmm] IconTheme: Wrap some new functions.



commit b28bb715f67e409ad1330bbf7e84fc461280b780
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jul 26 10:47:31 2013 +0200

    IconTheme: Wrap some new functions.
    
    * gtk/src/icontheme: Add lookup_icon() method overloads that
      take a scale parameter.
      Add choose_icon() method overload that take a scale
      parameter.
      Add load_icon() method overload that takes a scale parameter.
      Add load_surface().

 gtk/src/icontheme.hg |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/icontheme.hg b/gtk/src/icontheme.hg
index dfc3302..d158572 100644
--- a/gtk/src/icontheme.hg
+++ b/gtk/src/icontheme.hg
@@ -60,14 +60,19 @@ public:
   _IGNORE(gtk_icon_theme_get_icon_sizes)
 
   _WRAP_METHOD(IconInfo lookup_icon(const Glib::ustring& icon_name, int size, IconLookupFlags flags) const, 
gtk_icon_theme_lookup_icon)
-
+  _WRAP_METHOD(IconInfo lookup_icon(const Glib::ustring& icon_name, int size, int scale, IconLookupFlags 
flags) const, gtk_icon_theme_lookup_icon_for_scale)
   _WRAP_METHOD(IconInfo lookup_icon(const Glib::RefPtr<const Gio::Icon>& icon, int size, IconLookupFlags 
flags) const, gtk_icon_theme_lookup_by_gicon)
-
+  _WRAP_METHOD(IconInfo lookup_icon(const Glib::RefPtr<const Gio::Icon>& icon, int size, int scale, 
IconLookupFlags flags) const, gtk_icon_theme_lookup_by_gicon_for_scale)
 
   #m4 _CONVERSION(`const std::vector<Glib::ustring>&',`const gchar*[]',`const_cast<const 
gchar**>(Glib::ArrayHandler<Glib::ustring>::vector_to_array($3).data ())')
   _WRAP_METHOD(IconInfo choose_icon(const std::vector<Glib::ustring>& icon_names, int size, IconLookupFlags 
flags), gtk_icon_theme_choose_icon)
+  _WRAP_METHOD(IconInfo choose_icon(const std::vector<Glib::ustring>& icon_names, int size, int scale, 
IconLookupFlags flags), gtk_icon_theme_choose_icon_for_scale)
 
   _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> load_icon(const Glib::ustring& icon_name, int size, IconLookupFlags 
flags = (IconLookupFlags)0) const, gtk_icon_theme_load_icon, errthrow)
+    _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> load_icon(const Glib::ustring& icon_name, int size, int scale, 
IconLookupFlags flags = (IconLookupFlags)0) const, gtk_icon_theme_load_icon_for_scale, errthrow)
+
+ #m4 _CONVERSION(`cairo_surface_t*',`::Cairo::RefPtr< ::Cairo::Surface>',`::Cairo::RefPtr< 
::Cairo::Surface>(new Cairo::Surface($3, true /* do not take reference */))')
+  _WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Surface> load_surface(const Glib::ustring& icon_name, int size, int 
scale, const Glib::RefPtr<Gdk::Window>& for_window, IconLookupFlags flags = (IconLookupFlags)0), 
gtk_icon_theme_load_surface, errthrow)
 
 #m4 _CONVERSION(`GList*',`std::vector<Glib::ustring>',`Glib::ListHandler<Glib::ustring>::list_to_vector($3, 
Glib::OWNERSHIP_DEEP)')
   _WRAP_METHOD(std::vector<Glib::ustring> list_icons(const Glib::ustring& context) const, 
gtk_icon_theme_list_icons)


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