X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmissing_file_dialog.cc;h=9fe125843279424fe860926f0839f307c82b4dec;hb=6a52dc321954b3d65ee9840bef08fe3c047d8850;hp=8f171947b4e3f7c07a03bcfc1884b391aa00f211;hpb=ad017365f7a73f8ba57f667cc1aa36478b48c50e;p=ardour.git diff --git a/gtk2_ardour/missing_file_dialog.cc b/gtk2_ardour/missing_file_dialog.cc index 8f171947b4..9fe1258432 100644 --- a/gtk2_ardour/missing_file_dialog.cc +++ b/gtk2_ardour/missing_file_dialog.cc @@ -22,6 +22,7 @@ #include "pbd/search_path.h" #include "ardour/session.h" +#include "gtkmm2ext/utils.h" #include "missing_file_dialog.h" #include "i18n.h" @@ -41,7 +42,10 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT , all_missing_ok (choice_group, _("Skip all missing files"), false) , this_missing_ok (choice_group, _("Skip this file"), false) { - set_session (s); + /* This dialog is always shown programatically. Center the window.*/ + set_position (Gtk::WIN_POS_CENTER); + + set_session (s); add_button (_("Done"), RESPONSE_OK); set_default_response (RESPONSE_OK); @@ -68,7 +72,7 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT msg.set_justify (JUSTIFY_LEFT); msg.set_markup (string_compose (_("%1 cannot find the %2 file\n\n%3\n\nin any of these folders:\n\n\ -%4\n\n"), PROGRAM_NAME, typestr, Glib::Markup::escape_text(path), Glib::Markup::escape_text (oss.str()))); +%4\n\n"), PROGRAM_NAME, typestr, Gtkmm2ext::markup_escape_text (path), Gtkmm2ext::markup_escape_text (oss.str()))); HBox* hbox = manage (new HBox); hbox->pack_start (msg, false, true);