provide ARDOUR_UI_UTILS::running_from_source_tree()

This commit is contained in:
Paul Davis 2016-06-21 19:22:40 -04:00
parent 556c97b2d5
commit 0cd43a553e
2 changed files with 8 additions and 0 deletions

View File

@ -826,3 +826,10 @@ ARDOUR_UI_UTILS::overwrite_file_dialog (Gtk::Window& parent, string title, strin
return false;
}
}
bool
ARDOUR_UI_UTILS::running_from_source_tree ()
{
gchar const *x = g_getenv ("ARDOUR_THEMES_PATH");
return x && (string (x).find ("gtk2_ardour") != string::npos);
}

View File

@ -97,6 +97,7 @@ bool windows_overlap (Gtk::Window *a, Gtk::Window *b);
bool overwrite_file_dialog (Gtk::Window& parent, std::string title, std::string text);
std::string show_gdk_event_state (int state);
bool running_from_source_tree ();
} // namespace
#endif /* __ardour_gtk_utils_h__ */