[libvtemm] Changed "commit" signal handler prototype.



commit 7ed4827543162936ecdd90bfa047f3e946ffd1a7
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Tue May 12 12:51:52 2009 +0200

    Changed "commit" signal handler prototype.
    
    terminal.hg: API breaking continued: changed "commit" signal handler
    prototype (parameters: char*, int -> const Glib::ustring&).
    TODO: another change.
---
 src/libvtemm/g/terminal.hg |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/src/libvtemm/g/terminal.hg b/src/libvtemm/g/terminal.hg
index a771f07..38d577c 100644
--- a/src/libvtemm/g/terminal.hg
+++ b/src/libvtemm/g/terminal.hg
@@ -207,7 +207,37 @@ public:
   _WRAP_SIGNAL(void cursor_moved(), "cursor-moved")
   _WRAP_SIGNAL(void status_line_changed(), "status-line-changed")
   // the one below could just send std::string...
-  _WRAP_SIGNAL(void commit(char* text, guint size), "commit")
+//  _WRAP_SIGNAL(void commit(char* text, guint size), "commit")
+  _IGNORE_SIGNAL(commit)
+#m4begin
+dnl // WRAP_SIGNAL "commit"
+dnl // C++ prototype: void commit(const Glib::ustring& text)
+dnl // C prototype: void commit(const gchar* text, gint size)
+
+  _SIGNAL_PROXY(
+      commit, void, `const gchar* text, gint size',
+      commit, void, `const Glib::ustring&',dnl // C++ prototype
+      `Glib::ustring(text, text + size)',`dnl // C -> C++ conversion
+      /**
+       * @param const Glib::ustring& text
+       * @return void
+       */')
+
+  _SIGNAL_H(commit, void, `const Glib::ustring& text')
+  _SIGNAL_PH(commit, void, `VteTerminal* self, const gchar* text, gint size')
+
+  _SIGNAL_CC(
+      commit, commit, void, void,
+      `const Glib::ustring& text',dnl // C++ arguments
+      `text.data(), text.bytes()')dnl // C++ -> C conversion
+
+  _SIGNAL_PCC(
+      commit, commit, void, void,
+      `VteTerminal* self, const gchar* text, gint size',dnl // C arguments
+      `self, text, size',dnl // C argument names
+      `Glib::ustring(text, text + size)',dnl // C -> C++ conversion
+      self)
+#m4end
   
   _WRAP_SIGNAL(void deiconify_window(), "deiconify-window")
   _WRAP_SIGNAL(void iconify_window(), "iconify-window")



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