*/
#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 "GSearch.h"
#include "ControlSearch.h"
#include "ghelpers.h"
+
#include <libglademm.h>
using std::string;
}
+void GSearch::update()
+{
+ bc().refreshReadOnly();
+ onFindEntryChanged();
+}
+
+
void GSearch::onFindNext()
{
controller().find(findentry->get_text(),
replaceallbutton->set_sensitive(false);
} else {
findnextbutton->set_sensitive(true);
- replacebutton->set_sensitive(true);
- replaceallbutton->set_sensitive(true);
+ replacebutton->set_sensitive(!readOnly());
+ replaceallbutton->set_sensitive(!readOnly());
}
}