enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / gtk2_ardour / utils_videotl.cc
index 0c94f378f02bfa9ac3376cfc2d3507a252af1de7..2d859b692ad404ced8a40fd82680469c2e60b532 100644 (file)
@@ -37,7 +37,7 @@
 #ifndef ARDOUR_CURL_TIMEOUT
 #define ARDOUR_CURL_TIMEOUT (60)
 #endif
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace Gtk;
 using namespace std;
@@ -46,7 +46,7 @@ using namespace ARDOUR;
 using namespace VideoUtils;
 
 bool
-VideoUtils::confirm_video_outfn (std::string outfn, std::string docroot)
+VideoUtils::confirm_video_outfn (Gtk::Window& parent, std::string outfn, std::string docroot)
 {
        /* replace docroot's '/' to G_DIR_SEPARATOR for the comparison */
        size_t look_here = 0;
@@ -68,7 +68,8 @@ VideoUtils::confirm_video_outfn (std::string outfn, std::string docroot)
        }
 
        if (Glib::file_test(outfn, Glib::FILE_TEST_EXISTS)) {
-               bool overwrite = ARDOUR_UI_UTILS::overwrite_file_dialog (_("Confirm Overwrite"),
+               bool overwrite = ARDOUR_UI_UTILS::overwrite_file_dialog (parent,
+                                                                        _("Confirm Overwrite"),
                                                                         _("A file with the same name already exists. Do you want to overwrite it?"));
 
                if (!overwrite) {