How to wrap a signal by hand?
- From: Krzesimir Nowak <qdlacz gmail com>
- To: gtkmm mailing list <gtkmm-list gnome org>
- Subject: How to wrap a signal by hand?
- Date: Mon, 11 May 2009 17:43:50 +0200
Hi,
mostly to wrap signal I just used _WRAP_SIGNAL. But now it's a different
case.
I have a 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:
void Gnome::Vte::Terminal(const Glib::ustring& str);
(or maybe std::string).
so I have one parameter instead of two. I know, that 'str' is a classic
null terminated string, so 'length' parameter could be omitted.
Any tips on how could it be done? Or maybe this was already done
somewhere in gtkmm, so I could read it and learn?
Thanks,
Krzesimir Nowak
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]