]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GViewBase.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GViewBase.C
index af627b88e9597cc30f1a062292b463dc5221dbe3..f7762c93c2b5e66220c56ed9cf048acde682ce28 100644 (file)
@@ -9,7 +9,11 @@
  */
 
 #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"
@@ -54,6 +58,7 @@ void GViewBase::show()
        if (!window()) {
                build();
        }
+       update();
        window()->show();
 }
 
@@ -102,6 +107,19 @@ void GViewBase::setRestore(Gtk::Button * restore)
 }
 
 
+void GViewBase::setTitle(std::string const & title)
+{
+       Dialog::View::setTitle(title);
+       window()->set_title(title);
+}
+
+
+bool GViewBase::readOnly() const
+{
+       return kernel().isBufferReadonly();
+}
+
+
 void GViewBase::onApply()
 {
        dialog().ApplyButton();