[gtkmm] Menu: Make attach_to_widget() public.



commit 329d7c59bb3f75f79142600872221ae946c7c3a1
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Jul 22 13:46:40 2013 +0200

    Menu: Make attach_to_widget() public.
    
    Because it seems to be necessary now that there is
    gtk_menu_new_from_model().

 gtk/src/menu.hg |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/gtk/src/menu.hg b/gtk/src/menu.hg
index 12294fb..7519a67 100644
--- a/gtk/src/menu.hg
+++ b/gtk/src/menu.hg
@@ -118,6 +118,16 @@ public:
   _WRAP_METHOD(void set_reserve_toggle_size(bool reserve_toggle_size = true), 
gtk_menu_set_reserve_toggle_size)
   _WRAP_METHOD(bool get_reserve_toggle_size() const, gtk_menu_get_reserve_toggle_size)
 
+  //TODO: What does "attach" actually mean here? murrayc
+  //  Part answer: It has become more important now that it is mentioned in the (apparently newer) 
gtk_menu_new_from_model() documentation.
+  /** Attaches the menu to the widget.
+   *
+   * @param attach_widget The Widget that the menu will be attached to.
+   *
+   * @newin{2,10}
+   */
+  void attach_to_widget(Widget& attach_widget);
+
   _IGNORE_SIGNAL("move_scroll")
 
 
@@ -132,18 +142,11 @@ public:
 
 protected:
 
+  //TODO: Remove this if it has never been used, at the next ABI break?
   //We can not wrap this as a slot because there is no data parameter, and no destroy callback to destroy 
that data.
   typedef void (*GtkMenuDetachFunc)   (GtkWidget *attach_widget, GtkMenu   *menu);
   _WRAP_METHOD(void attach_to_widget(Widget& attach_widget, GtkMenuDetachFunc detacher), 
gtk_menu_attach_to_widget)
 
-  //TODO: What does "attach" actually mean here? murrayc
-  /** Attaches the menu to the widget.
-   *
-   * @param attach_widget The Widget that the menu will be attached to.
-   *
-   * @newin{2,10}
-   */
-  void attach_to_widget(Widget& attach_widget);
 };
 
 } // namespace Gtk


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