[glibmm] gmmproc, _WRAP_METHOD: Accept ":" in slot_callback parameter



commit 5dcb82e7b12e29dc0b88decd9da0f504f6b317e2
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Jul 2 18:42:29 2018 +0200

    gmmproc, _WRAP_METHOD: Accept ":" in slot_callback parameter
    
    such as slot_callback Gio::SignalProxy_async_callback, useful in gtkmm.

 tools/pm/WrapParser.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/pm/WrapParser.pm b/tools/pm/WrapParser.pm
index f8ce348c..7be5fd8a 100644
--- a/tools/pm/WrapParser.pm
+++ b/tools/pm/WrapParser.pm
@@ -987,8 +987,8 @@ sub on_wrap_method($)
     }
     # The "slot_callback" option tells gmmproc the name of the
     # callback function that should be passed to the C function if the
-    # method has a slot.
-    elsif($argRef =~ /^slot_callback\s+(\w+)/)
+    # method has a slot. The name can contain a namespace prefix.
+    elsif($argRef =~ /^slot_callback\s+([:\w]+)/)
     {
       $$objCppfunc{slot_callback} = $1;
     }


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