[gtkmm] Widget: Make insert_action_group() public.



commit 1efd7a5f365357b594de6d856ec9e003fa84635b
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Sep 16 11:37:05 2013 +0200

    Widget: Make insert_action_group() public.
    
    * gtk/src/widget.hg: Because it is convenient for me in Glom,
      where I need to call it in a helper function rather in the widget
      class itself, to avoid duplication.

 gtk/src/widget.hg |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index a95dc49..73644d1 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -569,6 +569,9 @@ public:
 //TODO: guint gtk_widget_add_tick_callback (GtkWidget *widget,  GtkTickCallback callback, gpointer 
user_data, GDestroyNotify   notify);
 //TODO: void gtk_widget_remove_tick_callback (GtkWidget *widget,  guint id);
 
+  //This is mostly only needed by the class itself, so it could be protected,
+  //but it is sometimes helpful to call it from outside:
+  _WRAP_METHOD(void insert_action_group(const Glib::ustring& name, const Glib::RefPtr<Gio::ActionGroup>& 
group), gtk_widget_insert_action_group)
 
   _WRAP_SIGNAL(void show(),"show")
   _WRAP_SIGNAL(void hide(),"hide", custom_c_callback)
@@ -874,9 +877,6 @@ protected:
 
   void realize_if_needed();
 
-  _WRAP_METHOD(void insert_action_group(const Glib::ustring& name, const Glib::RefPtr<Gio::ActionGroup>& 
group), gtk_widget_insert_action_group)
-
-
 #m4begin
 dnl// Hook in custom hierarchy_changed callback.
 dnl// It will use the generated callback.


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