GNOME Bugzilla – Bug 543288
infinite recursion on Gtk::FileChooser::get_preview_widget
Last modified: 2008-07-16 15:56:06 UTC
Steps to reproduce: call get_preview_widget on any filechooser derivative Stack trace: No stack trace, only application Lockup Other information: Problem seems to be c&p: from filechooser.cc(419ff) const Gtk::Widget* FileChooser::get_preview_widget() const { return const_cast<FileChooser*>(this)->get_preview_widget(); } Gtk::Widget* FileChooser::get_preview_widget() { return const_cast<FileChooser*>(this)->get_preview_widget(); } I think the non-const version should read return Glib::wrap(gtk_file_chooser_get_preview_widget(cobj()));
Very strange. Fixed (but not generally in gmmproc) in svn trunk and the gtkmm-2-12 branch: 2008-07-16 Murray Cumming <murrayc@murrayc.com> * gtk/src/filechooser.hg: get_preview_widget(): Move the const overload after the non-const one, because gmmproc otherwise seems to make both just calls to the non-const one. We really need to stop gmmproc from doing that, first figuring out why. Luckily, I don't think we put them in this order very often. Bug #543288 (Jens Georg)