[gdlmm] No default handler to dockobject's signals.



commit 7e9384522ad62288a02a037dff7f371a3f9a2fc8
Author: Fabien Parent <parent f gmail com>
Date:   Wed Nov 25 12:30:41 2009 +0100

    No default handler to dockobject's signals.
    add "on_dock" signal in DockObject

 codegen/m4/convert_gdl.m4 |    7 +++++--
 gdl/src/dockobject.hg     |    4 ++--
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/codegen/m4/convert_gdl.m4 b/codegen/m4/convert_gdl.m4
index bf7660f..361acda 100644
--- a/codegen/m4/convert_gdl.m4
+++ b/codegen/m4/convert_gdl.m4
@@ -14,8 +14,11 @@ _CONVERSION(`GList*',`Glib::ListHandle<DockItem*>',__FL2H_SHALLOW)
 _CONVERSION(`const Glib::RefPtr<DockMaster>&',`GdlDockMaster*',__CONVERT_REFPTR_TO_P)
 _CONVERSION(`const Glib::RefPtr<DockMaster>&',`GObject*', G_OBJECT($3->gobj()))
 
-dnl _CONVERSION(`GValue*', `const Glib::ValueBase*', Glib::wrap($3))
-dnl _CONVERSION(`const Glib::ValueBase*', `GValue*', const_cast<GValue*>($3->gobj()))
+_CONVERSION(`GValue*', `const Glib::ValueBase*', reinterpret_cast<const Glib::ValueBase*>($3))
+_CONVERSION(`const Glib::ValueBase*', `GValue*', const_cast<GValue*>($3->gobj()))
+
+dnl _CONVERSION(`GValue*', `const Glib::ValueBase*', reinterpret_cast<const Glib::ValueBase*>($3))
+dnl _CONVERSION(`const Glib::ValueBase*', `GValue*', const_cast<GValue*>(reinterpret_cast<const GValue*>($3)))
 
 _CONVERSION(`const Glib::ustring', `const gchar*', $3.c_str())
 
diff --git a/gdl/src/dockobject.hg b/gdl/src/dockobject.hg
index 7923b75..d3524ff 100644
--- a/gdl/src/dockobject.hg
+++ b/gdl/src/dockobject.hg
@@ -87,9 +87,9 @@ public:
   _WRAP_PROPERTY("stock-id", Glib::ustring)
   
   
-  _WRAP_SIGNAL(void detach(bool arg1), "detach")
+  _WRAP_SIGNAL(void detach(bool arg1), "detach", no_default_handler)
   
-  //_WRAP_SIGNAL(void dock(DockObject& arg1, DockPlacement arg2, const Glib::ValueBase* arg3), "dock")
+  _WRAP_SIGNAL(void dock(DockObject& arg1, DockPlacement arg2, const Glib::ValueBase* arg3), "dock", no_default_handler)
   
 protected:
   _IGNORE(gdl_dock_object_dock)



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