Bartek Kostrzewa wrote: > Bartek Kostrzewa wrote: > >>I have a filechooser widget from which I want to drag filenames into my >>application (not using OK or Cancel buttons, just dragging folders and >>files)... >> >>I've got the file filters all set up but I don't understand how to do >>the dragging. The tutorial is way too simple (and wrong I believe, at >>least SigC::slot does not even exist in my installation). > > > AHA! I see... I fell victim to some old documentation lingering around > the net.... DUH! well... now I just have to overcome the following: > /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h: In member > function ‘typename > sigc::adaptor_functor<T_functor>::deduce_result_type<T_arg1, T_arg2, > T_arg3, T_arg4, T_arg5, T_arg6, void>::type > sigc::adaptor_functor<T_functor>::operator()(T_arg1, T_arg2, T_arg3, > T_arg4, T_arg5, T_arg6) const [with T_arg1 = const > Glib::RefPtr<Gdk::DragContext>&, T_arg2 = const int&, T_arg3 = const > int&, T_arg4 = const Gtk::SelectionData&, T_arg5 = const guint&, T_arg6 > = const guint&, T_functor = sigc::bound_mem_functor6<void, AppWindow, > const Glib::RefPtr<Gdk::DragContext>&, int, int, Gtk::SelectionData&, > guint, guint>]’: > /usr/include/sigc++-2.0/sigc++/functors/slot.h:337: instantiated from > ‘static T_return sigc::internal::slot_call6<T_functor, T_return, T_arg1, > T_arg2, T_arg3, T_arg4, T_arg5, > T_arg6>::call_it(sigc::internal::slot_rep*, typename > sigc::type_trait<T_arg3>::take, typename sigc::type_trait<T_arg4>::take, > typename sigc::type_trait<T_arg5>::take, typename > sigc::type_trait<T_arg6>::take, typename sigc::type_trait<T_arg7>::take, > typename sigc::type_trait<T_arg6>::take) [with T_functor = > sigc::bound_mem_functor6<void, AppWindow, const > Glib::RefPtr<Gdk::DragContext>&, int, int, Gtk::SelectionData&, guint, > guint>, T_return = void, T_arg1 = const Glib::RefPtr<Gdk::DragContext>&, > T_arg2 = int, T_arg3 = int, T_arg4 = const Gtk::SelectionData&, T_arg5 = > guint, T_arg6 = guint]’ > /usr/include/sigc++-2.0/sigc++/functors/slot.h:344: instantiated from > ‘static void* (* sigc::internal::slot_call6<T_functor, T_return, T_arg1, > T_arg2, T_arg3, T_arg4, T_arg5, T_arg6>::address())(void*) [with > T_functor = sigc::bound_mem_functor6<void, AppWindow, const > Glib::RefPtr<Gdk::DragContext>&, int, int, Gtk::SelectionData&, guint, > guint>, T_return = void, T_arg1 = const Glib::RefPtr<Gdk::DragContext>&, > T_arg2 = int, T_arg3 = int, T_arg4 = const Gtk::SelectionData&, T_arg5 = > guint, T_arg6 = guint]’ > /usr/include/sigc++-2.0/sigc++/functors/slot.h:949: instantiated from > ‘sigc::slot6<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, > T_arg6>::slot6(const T_functor&) [with T_functor = > sigc::bound_mem_functor6<void, AppWindow, const > Glib::RefPtr<Gdk::DragContext>&, int, int, Gtk::SelectionData&, guint, > guint>, T_return = void, T_arg1 = const Glib::RefPtr<Gdk::DragContext>&, > T_arg2 = int, T_arg3 = int, T_arg4 = const Gtk::SelectionData&, T_arg5 = > guint, T_arg6 = guint]’ > /usr/include/sigc++-2.0/sigc++/functors/slot.h:1292: instantiated from > ‘sigc::slot<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, > sigc::nil>::slot(const T_functor&) [with T_functor = > sigc::bound_mem_functor6<void, AppWindow, const > Glib::RefPtr<Gdk::DragContext>&, int, int, Gtk::SelectionData&, guint, > guint>, T_return = void, T_arg1 = const Glib::RefPtr<Gdk::DragContext>&, > T_arg2 = int, T_arg3 = int, T_arg4 = const Gtk::SelectionData&, T_arg5 = > guint, T_arg6 = guint]’AppWindow.cpp:131: instantiated from here > /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:189: error: no > match for call to ‘(sigc::bound_mem_functor6<void, AppWindow, const > Glib::RefPtr<Gdk::DragContext>&, int, int, Gtk::SelectionData&, guint, > guint>) (const Glib::RefPtr<Gdk::DragContext>&, const int&, const int&, > const Gtk::SelectionData&, const unsigned int&, const unsigned int&)’ > /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:2158: note: candidates > are: T_return sigc::bound_mem_functor6<T_return, T_obj, T_arg1, T_arg2, > T_arg3, T_arg4, T_arg5, T_arg6>::operator()(typename > sigc::type_trait<T_arg3>::take, typename sigc::type_trait<T_arg4>::take, > typename sigc::type_trait<T_arg5>::take, typename > sigc::type_trait<T_arg6>::take, typename sigc::type_trait<T_arg7>::take, > typename sigc::type_trait<T_arg6>::take) const [with T_return = void, > T_obj = AppWindow, T_arg1 = const Glib::RefPtr<Gdk::DragContext>&, > T_arg2 = int, T_arg3 = int, T_arg4 = Gtk::SelectionData&, T_arg5 = > guint, T_arg6 = guint] > /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:189: error: > return-statement with a value, in function returning 'void' >
great... this one was a typo! > > and find out how to handle whatever the filechooser puts into the > selection_data! > > > _______________________________________________ > 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
