another replacement of ActionManager::get_action() by ActionMap::find_action()
[ardour.git] / gtk2_ardour / video_server_dialog.cc
index a8c2bd3ea3e0f91fc61ba3ba93ed84e741a556b8..9422a53971dfc0485dc3bf62eac4e3bf2f88acb0 100644 (file)
 
 #include <sigc++/bind.h>
 
+#include <gtkmm/box.h>
+#include <gtkmm/filechooserdialog.h>
+#include <gtkmm/stock.h>
+#include <gtkmm/table.h>
+
 #include "pbd/error.h"
 #include "pbd/file_utils.h"
+#include "ardour/filesystem_paths.h"
 #include "ardour/session_directory.h"
 #include "gtkmm2ext/utils.h"
 #include "ardour/template_utils.h"
@@ -35,7 +41,6 @@
 
 #include "video_server_dialog.h"
 #include "utils_videotl.h"
-#include "video_tool_paths.h"
 #include "pbd/i18n.h"
 
 #ifdef PLATFORM_WINDOWS
@@ -76,7 +81,7 @@ VideoServerDialog::VideoServerDialog (Session* s)
        path_entry.set_width_chars(38);
        path_entry.set_text("/usr/bin/harvid");
        docroot_entry.set_width_chars(38);
-       docroot_entry.set_text(Config->get_video_server_docroot());
+       docroot_entry.set_text(video_get_docroot (Config));
 
 #ifndef __APPLE__
        /* Note: on OSX icsd is not able to bind to IPv4 localhost */
@@ -153,11 +158,6 @@ VideoServerDialog::VideoServerDialog (Session* s)
        if (Config->get_video_advanced_setup()){
                vbox->pack_start (*docroot_hbox, false, false);
        } else {
-#ifndef PLATFORM_WINDOWS
-               docroot_entry.set_text(X_("/"));
-#else
-               docroot_entry.set_text(X_("C:\\"));
-#endif
                listenport_spinner.set_sensitive(false);
        }
        vbox->pack_start (*options_box, false, true);