summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-10 06:24:07 +0000
committerDavid Robillard <d@drobilla.net>2012-05-10 06:24:07 +0000
commit0c9e861caa8b1eed5068942edc35d5f91bac816e (patch)
treeb241856ddf49e1b1192f8ea442d1733d9d31b2f2 /src/gui
parent8ec295a0f2a40086ed83e8d2ad8ad38c8125bcb4 (diff)
downloadingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.gz
ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.bz2
ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.zip
Work towards translatable strings and a cleaner log interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4338 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/App.cpp6
-rw-r--r--src/gui/PatchView.cpp2
-rw-r--r--src/gui/Port.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index c4c9cfe6..3b3fa6f9 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -47,7 +47,7 @@
#include "WidgetFactory.hpp"
#include "WindowFactory.hpp"
-#define LOG(s) s << "[GUI] "
+#define LOG(s) (s("[GUI] "))
using namespace std;
using namespace Raul;
@@ -149,7 +149,7 @@ App::run()
break;
_main->run();
- LOG(info) << "Exiting" << endl;
+ LOG(info)("Exiting\n");
}
void
@@ -226,7 +226,7 @@ App::property_change(const Raul::URI& subject,
{
if (subject == uris().ingen_engine && key == uris().ingen_sampleRate) {
if (value.type() == forge().Int) {
- LOG(info) << "Sample rate: " << uris().forge.str(value) << std::endl;
+ LOG(info)(Raul::fmt("Sample rate: %1%\n") % uris().forge.str(value));
_sample_rate = value.get_int32();
} else {
error << "Engine sample rate property is not an integer" << std::endl;
diff --git a/src/gui/PatchView.cpp b/src/gui/PatchView.cpp
index 282e83bc..4d54f4dc 100644
--- a/src/gui/PatchView.cpp
+++ b/src/gui/PatchView.cpp
@@ -181,7 +181,7 @@ void
PatchView::refresh_clicked()
{
_app->engine()->get(_patch->path());
- Raul::warn << "Refresh plugins" << std::endl;
+ Raul::warn("Refreshing plugins\n");
_app->engine()->get("ingen:plugins");
}
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index c9c858cb..7d84abca 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -136,7 +136,7 @@ void
Port::on_value_changed(GVariant* value)
{
if (!g_variant_is_of_type(value, G_VARIANT_TYPE_DOUBLE)) {
- Raul::warn << "TODO: Non-float port value changed." << std::endl;
+ Raul::warn("TODO: Non-float port value changed\n");
return;
}