GNOME Bugzilla – Bug 574010
set_scroll_adjustments first parameter is GtkWidget* instead of VteTerminal*
Last modified: 2014-03-24 21:11:22 UTC
Shouldn't set_scroll_adjustments take the first parameter as VteTerminal* instead of GtkWidget*? All other default signal handlers take VteTerminal* as first parameter. Even documentation says "set-scroll-adjustments" signal handler receives VteTerminal*. While wrapping this library for C++ I got an error during compile of generated files: terminal.cc: In static member function ‘static void Vte::Terminal_Class::set_scroll_adjustments_callback(VteTerminal*, GtkAdjustment*, GtkAdjustment*)’: terminal.cc:1804: error: cannot convert ‘VteTerminal*’ to ‘GtkWidget*’ in argument passing So this one prevents me from wrapping vte. I'll provide a patch.
Created attachment 129985 [details] [review] patch changing GtkWidget* into VteTerminal* and removing few lines. Diffs were done against svn version of vte, but are appliable also in 0.17.
Seems ok to me. However this is exposed in the header so part of the API, which means we can only change this when we next break API. In the meantime, you could simply omit this vfunc from the wrapper.