Re: delete_event



Whoops, that made a lot of compiler errors...

See the attached text file.
Thanks!


On Sat, 2006-11-25 at 10:57 +0200, Pavlo Korzhyk wrote:

> According to my gtkmm documentation you must use
> widget->signal_delete_event()
> If this is not the solution - try explicitly convert prefs_diag to
> Widget*.

make
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" 	-DPACKAGE_SRC_DIR=\""."\" 	-DPACKAGE_DATA_DIR=\""/usr/local/share"\" 	-I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/libglade-2.0 -I/usr/include/libxml2      -g -O2 -c main.cc

/usr/include/sigc++-2.0/sigc++/functors/slot.h: In static member function ‘static T_return sigc::internal::slot_call1<T_functor, T_return, T_arg1>::call_it(sigc::internal::slot_rep*, typename sigc::type_trait<T_arg3>::take) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’:

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:144:   instantiated from ‘static void* (* sigc::internal::slot_call1<T_functor, T_return, T_arg1>::address())(void*) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:529:   instantiated from ‘sigc::slot1<T_return, T_arg1>::slot1(const T_functor&) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:1157:   instantiated from ‘sigc::slot<T_return, T_arg1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::slot(const T_functor&) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’

/home/di/Desktop/Projects/xamoz/src/main.cc:106:   instantiated from here

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:137: error: void value not ignored as it ought to be

/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h: In member function ‘typename sigc::adaptor_functor<T_functor>::deduce_result_type<T_arg1, void, void, void, void, void, void>::type sigc::adaptor_functor<T_functor>::operator()(T_arg1) const [with T_arg1 = GdkEventAny* const&, T_functor = sigc::pointer_functor0<void>]’:

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:137:   instantiated from ‘static T_return sigc::internal::slot_call1<T_functor, T_return, T_arg1>::call_it(sigc::internal::slot_rep*, typename sigc::type_trait<T_arg3>::take) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:144:   instantiated from ‘static void* (* sigc::internal::slot_call1<T_functor, T_return, T_arg1>::address())(void*) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:529:   instantiated from ‘sigc::slot1<T_return, T_arg1>::slot1(const T_functor&) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/slot.h:1157:   instantiated from ‘sigc::slot<T_return, T_arg1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::slot(const T_functor&) [with T_functor = sigc::pointer_functor0<void>, T_return = bool, T_arg1 = GdkEventAny*]’

/home/di/Desktop/Projects/xamoz/src/main.cc:106:   instantiated from here

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84: error: no match for call to ‘(sigc::pointer_functor0<void>) (GdkEventAny* const&)’

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:76: note: candidates are: T_return sigc::pointer_functor0<T_return>::operator()() const [with T_return = void]

/home/di/Desktop/Projects/xamoz/src/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84: error: return-statement with a value, in function returning 'void'

make: *** [main.o] Error 1

Completed... unsuccessful
Total time taken: 19 secs


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