GNOME Bugzilla – Bug 157401
PATCH: MSVC demo build fixes, new .cvsignore files
Last modified: 2004-12-22 21:47:04 UTC
Fixes compile-time errors with MSVC .Net 2003 in the gtk-demo, stock, and tictactoe examples. Adds new .cvsignore files for the MSVC_Net2003 directory.
Created attachment 33448 [details] [review] Fixes MSVC compile-time errors in demo applications
Created attachment 33449 [details] New .cvsignore files for the MSVC_Net2003 directory
Thanks. Next time, could you please mention that your .cvsignore attachment was in fact a .tar.gz ?
Thanks. The patch looks OK to me, apart from this part: - type_slotDo slot = row[columns.slot]; + type_slotDo slot = row.get_value(columns.slot); That really should work. Please put it in an #ifdef for now if it doesn't, but show us the compile error. I leave it to Cedric to actually apply win32 stuff.
Cedric, will you apply this?
I committed all .cvsignore files to the gtkmm-2-4 branch For the 'type_slotDo slot = row[columns.slot]' issue, the error returned by MSVC is c:\Users\Gustin\Programs\libsigc++2\sigc++\functors\slot.h(103) : error C2440: 'return' : cannot convert from 'sigc::adaptor_functor::result_type' to 'Gtk::Window *' with [ T_functor=sigc::adaptor_trait>::functor_type ] Expressions of type void cannot be converted to other types c:\Users\Gustin\Programs\libsigc++2\sigc++\functors\slot.h(100) : while compiling class-template member function 'Gtk::Window sigc::internal::slot_call0::call_it(sigc::internal::slot_rep *)' with [ T_functor=Gtk::TreeValueProxy, T_return=Gtk::Window * ] c:\Users\Gustin\Programs\libsigc++2\sigc++\functors\slot.h(452) : see reference to class template instantiation 'sigc::internal::slot_call0' being compiled with [ T_functor=Gtk::TreeValueProxy, T_return=Gtk::Window * ] c:\Users\Gustin\Programs\libsigc++2\sigc++\functors\slot.h(1103) : see reference to function template instantiation 'sigc::slot0::slot0(const T_functor &)' being compiled with [ T_return=Gtk::Window *, T_functor=Gtk::TreeValueProxy ] c:\Users\Gustin\Programs\gtkmm\demos\gtk-demo\demowindow.cc(162) : see reference to function template instantiation 'sigc::slot::slot>(const T_functor &)' being compiled with [ T_return=Gtk::Window *, ColumnType=type_slotDo, T_functor=Gtk::TreeValueProxy ] A few days ago, I committed an updated demowindow.cc with const type_slotDo& slot = row[columns.slot]; that does the job.