Hello, Krzesimir Nowak Why don't you simple wrap it into the function with the same prototype, as declared in documentation, and later create the object Glib::ustring with your content and pass it as a variable to Gnome::Vte::Terminal(...)
Regards, Vlad Volodin 2009/5/11 Krzesimir Nowak <[email protected]>: > 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 > > _______________________________________________ > gtkmm-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkmm-list > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
