[gtkmm] IconInfo: Add load_surface() and get_base_scale().



commit 626b9c3a16c745f993e6654998f26f6b4ba677e0
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jul 26 10:39:56 2013 +0200

    IconInfo: Add load_surface() and get_base_scale().

 gtk/src/iconinfo.hg |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/iconinfo.hg b/gtk/src/iconinfo.hg
index 53a6e4a..6a01325 100644
--- a/gtk/src/iconinfo.hg
+++ b/gtk/src/iconinfo.hg
@@ -58,11 +58,16 @@ public:
   operator BoolExpr() const;
 
   _WRAP_METHOD(int get_base_size() const, gtk_icon_info_get_base_size)
+  _WRAP_METHOD(int get_base_scale() const, gtk_icon_info_get_base_scale)
+
   _WRAP_METHOD(Glib::ustring get_filename() const, gtk_icon_info_get_filename)
   _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> get_builtin_pixbuf(), gtk_icon_info_get_builtin_pixbuf, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Gdk::Pixbuf> get_builtin_pixbuf() const, gtk_icon_info_get_builtin_pixbuf, 
refreturn, constversion)
   _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> load_icon() const, gtk_icon_info_load_icon, 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::RefPtr<Gdk::Window>& for_window), 
gtk_icon_info_load_surface, errthrow)
+
   //TODO: Documentation
   Glib::RefPtr<Gdk::Pixbuf> load_symbolic(const Gdk::RGBA& fg, const Gdk::RGBA& success_color, const 
Gdk::RGBA& warning_color, const Gdk::RGBA& error_color, bool& was_symbolic) const;
   _IGNORE(gtk_icon_info_load_symbolic)


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