diff options
author | David Robillard <d@drobilla.net> | 2013-02-02 04:29:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-02 04:29:07 +0000 |
commit | e3d2efb034677c315eb83e4b19651f1737e07ee0 (patch) | |
tree | c773e0f2d378bafe42d19cee33f50260ea612f83 /src/gui/GraphBox.cpp | |
parent | 0c5792cb84ca039a7dbf4ca933066ab11f8af6e4 (diff) | |
download | ingen-e3d2efb034677c315eb83e4b19651f1737e07ee0.tar.gz ingen-e3d2efb034677c315eb83e4b19651f1737e07ee0.tar.bz2 ingen-e3d2efb034677c315eb83e4b19651f1737e07ee0.zip |
Fix default status bar text when engine is local.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5019 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/GraphBox.cpp')
-rw-r--r-- | src/gui/GraphBox.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp index 596854e9..c3c89258 100644 --- a/src/gui/GraphBox.cpp +++ b/src/gui/GraphBox.cpp @@ -23,6 +23,8 @@ #include <glibmm/fileutils.h> #include <gtkmm/stock.h> +#include "raul/fmt.hpp" + #include "ingen/Interface.hpp" #include "ingen/Configuration.hpp" #include "ingen/client/ClientStore.hpp" @@ -176,11 +178,14 @@ GraphBox::init_box(App& app) { _app = &app; - std::string engine_name = _app->interface()->uri(); - if (engine_name == "http://drobilla.net/ns/ingen#internal") { - engine_name = "internal engine"; + const Raul::URI engine_uri(_app->interface()->uri()); + if (engine_uri == "ingen:/clients/event_writer") { + _status_bar->push("Running internal engine", STATUS_CONTEXT_ENGINE); + } else { + _status_bar->push( + (Raul::fmt("Connected to %1%") % engine_uri).str(), + STATUS_CONTEXT_ENGINE); } - _status_bar->push(std::string("Connected to ") + engine_name, STATUS_CONTEXT_ENGINE); _menu_view_messages_window->signal_activate().connect( sigc::mem_fun<void>(_app->messages_dialog(), &MessagesWindow::present)); |