diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-04 02:04:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-04 02:04:05 +0000 |
commit | 6ddcd8f0b9a8c27cdc4b96966c6746a1a8c2dc15 (patch) | |
tree | 77c3718ab9d0f62dd986eced541ad5c08fdf5df8 /gtk2_ardour/about.cc | |
parent | b1af21dae72e81e4168a2a9bdfa4f468db081873 (diff) |
add a way to see (most of) the waf config used to build ardour at run time (from the about dialog). buttons still need reordering there
git-svn-id: svn://localhost/ardour2/branches/3.0@6439 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/about.cc')
-rw-r--r-- | gtk2_ardour/about.cc | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index 2519e767bd..d384daae32 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -36,6 +36,7 @@ #include "version.h" #include "about.h" +#include "configinfo.h" #include "rgb_macros.h" #include "ardour_ui.h" @@ -185,8 +186,9 @@ static const char* translators[] = { About::About () + : config_info (0) #ifdef WITH_PAYMENT_OPTIONS - : paypal_pixmap (paypal_xpm) + , paypal_pixmap (paypal_xpm) #endif { // set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); @@ -218,11 +220,14 @@ About::About () "under certain conditions; see the file COPYING for details.\n")); set_name (X_("ardour")); set_website (X_("http://ardour.org/")); - set_website_label (_("visit http://www.ardour.org/")); + set_website_label (_("visit http://ardour.org/")); set_version ((string_compose(_("%1\n(built from revision %2)"), VERSIONSTRING, svn_revision))); + Gtk::Button* config_button = manage (new Button (_("Config"))); + get_action_area()->pack_start (*config_button, false, false); + config_button->signal_clicked().connect (mem_fun (*this, &About::show_config_info)); #ifdef WITH_PAYMENT_OPTIONS paypal_button.add (paypal_pixmap); @@ -239,6 +244,16 @@ About::~About () { } +void +About::show_config_info () +{ + if (!config_info) { + config_info = new ConfigInfoDialog; + } + + config_info->present (); +} + #ifdef WITH_PAYMENT_OPTIONS void About::goto_paypal () |