GNOME Bugzilla – Bug 550675
close button in the aboutdialog example does nothing
Last modified: 2008-09-04 13:09:47 UTC
The example program in examples/book/dialogs/aboutdialog has a bug. The close button has no effect, you have to use the window manager's button to close the dialog. This is with gtkmm 2.19.7, gtkmm-documentation 2.13.2 and gtk 2.13.7.
Fixed in svn. Thanks. 2008-09-03 Murray Cumming <murrayc@murrayc.com> * examples/book/dialogs/aboutdialog/examplewindow.cc: * examples/book/dialogs/aboutdialog/examplewindow.h: Respond to the Close button. Bug #550675 (Götz Waschk).
Your fix will only work in a universe were -6 == -7: if((response_id == Gtk::RESPONSE_CLOSE) && (response_id == Gtk::RESPONSE_CANCEL) ) { m_Dialog.hide(); }
Created attachment 117993 [details] [review] fix logic
committed, thanks. In the future, it would be much easier if the patch were made from the root of the repository and the changelog were patched as well. thanks for the review.