Re: Wrapping gtkimageview



Am Wed, 05 Mar 2008 00:39:49 +0100 schrieb Murray Cumming:

> _WRAP_SIGNAL(void on_mouse_wheel_scroll(), "mouse-wheel-scroll")
...
> > imageview.cc: In member function 
> > 'virtual void Gtk::ImageView::on_on_mouse_wheel_scroll()':
> > imageview.cc:339: error: too few arguments to function
> > 
> > See the prototype of the C signal:
> > 
> > void user_function (GtkImageView *view, GdkScrollDirection
> > direction, gpointer user_data)
> 
> This signal seems to send a GtkScrollDirection direction parameter,
> but you don't mention that in your _WRAP_SIGNAL().

Yes, you're right. But this one has another problem:

Output.pm: gtk_image_view_to_widget_rect : method defs lookup failed (1)
No conversion from GdkScrollDirection to Gdk::ScrollDirection defined
(line: 0, parameter name: p0)

and this one:

  _WRAP_SIGNAL(void on_set_scroll_adjustment(Gtk::Adjustment &arg1,  
                                             Gtk::Adjustment &arg2),
"set-scroll-adjustments")

Output.pm: gtk_image_view_to_widget_rect : method defs lookup failed (1)
No conversion from GtkAdjustment* to Gtk::Adjustment& defined (line: 0,
parameter name: p0)

Any ideas how to solve that conversation problems?

regards
Andreas


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]