#include "ardour/session_directory.h"
#include "video_image_frame.h"
#include "utils_videotl.h"
+#include "utils.h"
#ifdef WAF_BUILD
#include "gtk2ardour-version.h"
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;
}
if (Glib::file_test(outfn, Glib::FILE_TEST_EXISTS)) {
- ArdourDialog confirm (_("Confirm Overwrite"), true);
- Label m (_("A file with the same name already exists. Do you want to overwrite it?"));
- confirm.get_vbox()->pack_start (m, true, true);
- confirm.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
- confirm.add_button (_("Overwrite"), Gtk::RESPONSE_ACCEPT);
- confirm.show_all ();
- if (confirm.run() == RESPONSE_CANCEL) { return false; }
+ 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) {
+ return false;
+ }
}
std::string dir = Glib::path_get_dirname (outfn);
if (config->get_video_advanced_setup()) {
return config->get_video_server_url();
}
- return X_("http://localhost:1554");
+ return X_("http://127.0.0.1:1554");
}