GNOME Bugzilla – Bug 148376
fileselection example
Last modified: 2004-12-22 21:47:04 UTC
in http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch13s02.html (fileselection example) it says #include <gtkmm/dialog.h> where i think it should be #include <gtkmm/fileselection.h>
Does it not compile?
no it doesn't
I searched dialog.h and there is no FileSelection in there.
I don't believe that it doesn't compile - maybe you are not taking all of the example code - you can take it from the example directory (follow the link) to avoid copy/paste errors. Also, the examples compile as part of the gtkmm build. It includes gtkmm.h, which brings in all of the headers. However, the dialog.h include should be removed because it is irrelevant. More importantly, FileSelectionDialog is deprecated, and you should be using FileChooserDialog, and the documentation should be updated to show that.
You are right, i only pasted part of the code because i assumed dialog.h was meant for the FileSelection, sorry to have been bothering you with this. btw. I am realy starting to like gtkmm now i am getting the hang of it, keep up the good work, and if there is anyway i can help with updating parts of the documentation or examples let me know. .
dialog.h include removed.