How to wrap a signal by hand?



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]