Re: How to wrap a signal by hand?
- From: Daniel Elstner <daniel kitta googlemail com>
- To: Krzesimir Nowak <qdlacz gmail com>
- Cc: Vlad Volodin <vest 84 gmail com>, gtkmm mailing list <gtkmm-list gnome org>
- Subject: Re: How to wrap a signal by hand?
- Date: Mon, 11 May 2009 20:32:30 +0200
Hi,
Am Montag, den 11.05.2009, 18:08 +0200 schrieb Krzesimir Nowak:
> I have a C signal, which's handler prototype looks like this:
>
> void commit(VteTerminal* terminal, gchar* str, guint length);
>
> I wanted to wrap it into something like that:
>
> Glib::SignalProxy1<void, const Glib::ustring&>
> Gnome::Vte::Terminal::signal_commit(const Glib::ustring& str);
> (or maybe std::string).
>
> So in C++ I could use this prototype as a signal handler:
> void commit(const Glib::ustring& str);
I think we are doing something along these lines in gtkmm somewhere.
It's not very common, but I think editable.hg might have it. When you
spot a chunk of scary M4 voodoo, you've found it.
Just ask again if you don't get any further.
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]