mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
provide ARDOUR_UI_UTILS::running_from_source_tree()
This commit is contained in:
parent
556c97b2d5
commit
0cd43a553e
2 changed files with 8 additions and 0 deletions
|
|
@ -826,3 +826,10 @@ ARDOUR_UI_UTILS::overwrite_file_dialog (Gtk::Window& parent, string title, strin
|
||||||
return false;
|
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);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
bool overwrite_file_dialog (Gtk::Window& parent, std::string title, std::string text);
|
||||||
std::string show_gdk_event_state (int state);
|
std::string show_gdk_event_state (int state);
|
||||||
|
bool running_from_source_tree ();
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
#endif /* __ardour_gtk_utils_h__ */
|
#endif /* __ardour_gtk_utils_h__ */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue