[gtkmm-documentation] Use Gtk::IconSet via RefPtr.



commit ec44a9e2bc3683e36bfc4249f47e1b4a40092d34
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Feb 1 11:02:43 2011 +0100

    Use Gtk::IconSet via RefPtr.
    
    * examples/book/menus_and_toolbars/examplewindow.cc: Adapt to the API change
    in gtkmm.

 ChangeLog                                         |    7 +++++++
 examples/book/menus_and_toolbars/examplewindow.cc |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 008ffb9..87ce6cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-01  Murray Cumming  <murrayc murrayc com>
+
+	Use Gtk::IconSet via RefPtr.
+	
+	* examples/book/menus_and_toolbars/examplewindow.cc: Adapt to the API change 
+	in gtkmm.
+
 2011-01-31  Kjell Ahlstedt <kjell ahlstedt bredband net>
 
   Build: Check for mm-common.
diff --git a/examples/book/menus_and_toolbars/examplewindow.cc b/examples/book/menus_and_toolbars/examplewindow.cc
index 61793a1..9d29849 100644
--- a/examples/book/menus_and_toolbars/examplewindow.cc
+++ b/examples/book/menus_and_toolbars/examplewindow.cc
@@ -150,8 +150,8 @@ void ExampleWindow::add_stock_item(
   source.set_size(Gtk::ICON_SIZE_SMALL_TOOLBAR);
   source.set_size_wildcarded(); //Icon may be scaled.
 
-  Gtk::IconSet icon_set;
-  icon_set.add_source(source); //More than one source per set is allowed.
+  Glib::RefPtr<Gtk::IconSet> icon_set = Gtk::IconSet::create();
+  icon_set->add_source(source); //More than one source per set is allowed.
 
   const Gtk::StockID stock_id(id);
   factory->add(stock_id, icon_set);



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