*/
#include <config.h>
-#include <gtkmm.h>
+
+// Too hard to make concept checks work with this file
+#ifdef _GLIBCPP_CONCEPT_CHECKS
+#undef _GLIBCPP_CONCEPT_CHECKS
+#endif
#include "GViewBase.h"
#include "support/filetools.h"
if (!iconName.empty())
window()->set_icon_from_file(iconName);
window()->signal_delete_event().connect(
- SigC::slot(*this, &GViewBase::onDeleteEvent));
+ sigc::mem_fun(*this, &GViewBase::onDeleteEvent));
window()->set_title(Glib::locale_to_utf8(getTitle()));
}
if (!window()) {
build();
}
+ update();
window()->show();
}
{
bcview().setCancel(cancel);
cancel->signal_clicked().connect(
- SigC::slot(*this, &GViewBase::onCancel));
+ sigc::mem_fun(*this, &GViewBase::onCancel));
}
{
bcview().setApply(apply);
apply->signal_clicked().connect(
- SigC::slot(*this, &GViewBase::onApply));
+ sigc::mem_fun(*this, &GViewBase::onApply));
}
{
bcview().setOK(ok);
ok->signal_clicked().connect(
- SigC::slot(*this, &GViewBase::onOK));
+ sigc::mem_fun(*this, &GViewBase::onOK));
}
{
bcview().setRestore(restore);
restore->signal_clicked().connect(
- SigC::slot(*this, &GViewBase::onRestore));
+ sigc::mem_fun(*this, &GViewBase::onRestore));
+}
+
+
+void GViewBase::setTitle(std::string const & title)
+{
+ Dialog::View::setTitle(title);
+ window()->set_title(title);
+}
+
+
+bool GViewBase::readOnly() const
+{
+ return kernel().isBufferReadonly();
}