RE: Gtk::Tooltip problem





> Date: Sat, 31 Oct 2009 19:12:20 +0100
> From: pch0317 gmail com
> To: gtkmm-list gnome org
> Subject: Gtk::Tooltip problem
>
> Hi
> I have problem with Gtk::Tooltip. I can't use it, because I don't
> entirely understand this page:
> http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Tooltip.html
>
>
> I know, that I first must type: myCanvasWidget.set_has_tooltip();
> When I type:
> myCanvasWidget.signal_query_tooltip().connect(sigc::mem_fun(*this,
> &myClass::myFunction)); I have a lot of error like this:
> /usr/include/sigc++-2.0/sigc++/functors/slot.h: In static member
> function 'static T_return sigc::internal::slot_call4<T_functor,
> T_return, T_arg1, T_arg2, T_arg3,
> T_arg4>::call_it(sigc::internal::slot_rep*, typename
> sigc::type_trait<T_arg3>::take, typename sigc::type_trait<T_arg4>::take,
> typename sig c::type_trait<T_arg5>::take, typename
> sigc::type_trait<T_arg6>::take) [with T_functor =
> sigc::bound_mem_functor0<void, Interfejs>, T_return = bool, T_arg1 =
> int, T_arg2 = int, T_arg3 = bool, T_arg4 = const
> Glib::RefPtr<Gtk::Tooltip>&]': ... ... ... ... ... ... ... .

Whats is the prototype of your "myFunction"?
It should be like this--> bool myFunction(int x, int y, bool keyboard_tooltip, const Glib::RefPtr<Tooltip>& tooltip)


Νέα Windows 7: Βρείτε τον κατάλληλο υπολογιστή για εσάς. Μάθετε περισσότερα.


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