]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GViewBase.C
It compiles again. I must be crazy. At least it does not run but segfaults
[lyx.git] / src / frontends / gtk / GViewBase.C
index 205bb8246ce3c61305a01dd0bae1962f314c3252..eaea85053101f22f21392c5d8ee4026a97fe35d7 100644 (file)
@@ -54,7 +54,7 @@ void GViewBase::build()
                window()->set_icon_from_file(iconName);
        window()->signal_delete_event().connect(
                sigc::mem_fun(*this, &GViewBase::onDeleteEvent));
-       window()->set_title(Glib::locale_to_utf8(getTitle()));
+       window()->set_title(lyx::to_utf8(getTitle()));
 }
 
 
@@ -120,7 +120,7 @@ void GViewBase::setRestore(Gtk::Button * restore)
 void GViewBase::setTitle(lyx::docstring const & title)
 {
        Dialog::View::setTitle(title);
-       window()->set_title(title);
+       window()->set_title(lyx::to_utf8(title));
 }
 
 
@@ -161,7 +161,7 @@ bool GViewBase::onDeleteEvent(GdkEventAny *)
 }
 
 
-GViewGladeB::GViewGladeB(Dialog & parent, string const & t, bool allowResize) :
+GViewGladeB::GViewGladeB(Dialog & parent, docstring const & t, bool allowResize) :
        GViewBase(parent, t, allowResize)
 {
 }