[gtkmm-documentation] Fix the build with the latest gtkmm from git master.



commit 6193186780bfa18bbeabf4af4dc13a8c47d88aec
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Dec 14 09:47:59 2010 +0100

    Fix the build with the latest gtkmm from git master.
    
    * examples/book/toolpalette/canvas.h: Use Gtk::Widget::render_icon_pixbuf()
    rather than render_icon().

 ChangeLog                          |    7 +++++++
 examples/book/toolpalette/canvas.h |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5632b2c..9398318 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-14  Murray Cumming  <murrayc murrayc com>
+
+	Fix the build with the latest gtkmm from git master.
+
+	* examples/book/toolpalette/canvas.h: Use Gtk::Widget::render_icon_pixbuf()
+	rather than render_icon().
+
 2.91.6:
 
 2010-12-07  Murray Cumming  <murrayc murrayc com>
diff --git a/examples/book/toolpalette/canvas.h b/examples/book/toolpalette/canvas.h
index 2cce137..9c7f816 100644
--- a/examples/book/toolpalette/canvas.h
+++ b/examples/book/toolpalette/canvas.h
@@ -37,8 +37,8 @@ private:
   public:
     CanvasItem(Gtk::Widget* canvas, Gtk::ToolButton* button, double x, double y)
     {
-      const Gtk::StockID stock_id = Gtk::StockID(button->get_stock_id()); 
-      this->pixbuf = canvas->render_icon(stock_id, Gtk::ICON_SIZE_DIALOG);
+      const Gtk::StockID stock_id(button->get_stock_id()); 
+      this->pixbuf = canvas->render_icon_pixbuf(stock_id, Gtk::ICON_SIZE_DIALOG);
       this->x = x;
       this->y = y;
     }



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