[gtkmm] Gtk::MenuShell: Add bind_model().



commit dadbde46b18580acb89974a61586940270fecace
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Apr 1 18:57:43 2013 +0200

    Gtk::MenuShell: Add bind_model().
    
        * gtk/src/textview: Wrap the new
        gtk_menu_shell_bind_model() function.

 ChangeLog            |    7 +++++++
 gtk/src/menushell.hg |    3 +++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4c7853e..d48893b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2013-04-01  Murray Cumming  <murrayc murrayc com>
 
+       Gtk::MenuShell: Add bind_model().
+       
+       * gtk/src/textview: Wrap the new
+       gtk_menu_shell_bind_model() function.
+
+2013-04-01  Murray Cumming  <murrayc murrayc com>
+
        Gtk::TextView: Add the populate_all property.
        
        * gtk/src/textview: Wrap the new
diff --git a/gtk/src/menushell.hg b/gtk/src/menushell.hg
index 8809814..233cad1 100644
--- a/gtk/src/menushell.hg
+++ b/gtk/src/menushell.hg
@@ -24,6 +24,7 @@ _PINCLUDE(gtkmm/window.h)
 
 #include <gtkmm/container.h>
 #include <gtkmm/menuitem.h>
+#include <giomm/menumodel.h>
 
 namespace Gtk
 {
@@ -119,6 +120,8 @@ public:
   _WRAP_METHOD(Widget* get_parent_shell(), gtk_menu_shell_get_parent_shell)
   _WRAP_METHOD(const Widget* get_parent_shell() const, gtk_menu_shell_get_parent_shell)
 
+  _WRAP_METHOD(void bind_model(const Glib::RefPtr<Gio::MenuModel>& model, const Glib::ustring& 
action_namespace,  bool with_separators), gtk_menu_shell_bind_model)
+
   _WRAP_PROPERTY("take-focus", bool)
 
 protected:


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