[beast: 22/26] BSE: use UI-friendly Synth/Song/Midi-Synth as default object names
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 22/26] BSE: use UI-friendly Synth/Song/Midi-Synth as default object names
- Date: Fri, 14 Oct 2016 15:49:50 +0000 (UTC)
commit 95600de1e833900ec97003799d3ed99f3d1633f0
Author: Tim Janik <timj gnu org>
Date: Tue May 31 14:11:00 2016 +0200
BSE: use UI-friendly Synth/Song/Midi-Synth as default object names
Signed-off-by: Tim Janik <timj gnu org>
bse/bsecsynth.cc | 1 +
bse/bsemidisynth.cc | 2 ++
bse/bsesong.cc | 4 +++-
bse/bsesuper.cc | 9 ++++-----
po/POTSCAN | 1 +
5 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/bse/bsecsynth.cc b/bse/bsecsynth.cc
index 8ea5227..1fa5004 100644
--- a/bse/bsecsynth.cc
+++ b/bse/bsecsynth.cc
@@ -59,6 +59,7 @@ bse_csynth_class_init (BseCSynthClass *klass)
static void
bse_csynth_init (BseCSynth *self)
{
+ bse_item_set (self, "uname", _("Synth"), NULL);
BSE_OBJECT_SET_FLAGS (self, BSE_SNET_FLAG_USER_SYNTH);
BSE_OBJECT_UNSET_FLAGS (self, BSE_SUPER_FLAG_NEEDS_CONTEXT);
}
diff --git a/bse/bsemidisynth.cc b/bse/bsemidisynth.cc
index 0caf613..d7d6626 100644
--- a/bse/bsemidisynth.cc
+++ b/bse/bsemidisynth.cc
@@ -85,6 +85,8 @@ bse_midi_synth_init (BseMidiSynth *self)
{
BseSNet *snet = BSE_SNET (self);
+ bse_item_set (self, "uname", _("Midi-Synth"), NULL);
+
BSE_OBJECT_UNSET_FLAGS (self, BSE_SNET_FLAG_USER_SYNTH);
BSE_OBJECT_SET_FLAGS (self, BSE_SUPER_FLAG_NEEDS_CONTEXT);
self->midi_channel_id = 1;
diff --git a/bse/bsesong.cc b/bse/bsesong.cc
index fe66573..1c81d07 100644
--- a/bse/bsesong.cc
+++ b/bse/bsesong.cc
@@ -549,8 +549,10 @@ static void
bse_song_init (BseSong *self)
{
BseSNet *snet = BSE_SNET (self);
- Bse::SongTiming timing;
+ bse_item_set (self, "uname", _("Song"), NULL);
+
+ Bse::SongTiming timing;
bse_song_timing_get_default (&timing);
BSE_OBJECT_UNSET_FLAGS (self, BSE_SNET_FLAG_USER_SYNTH);
diff --git a/bse/bsesuper.cc b/bse/bsesuper.cc
index 63786f9..849023e 100644
--- a/bse/bsesuper.cc
+++ b/bse/bsesuper.cc
@@ -1,10 +1,8 @@
// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#include "bsesuper.hh"
-
#include "bseproject.hh"
#include <string.h>
-
enum
{
PARAM_0,
@@ -34,9 +32,10 @@ bse_super_init (BseSuper *super,
bse_super_objects = g_slist_prepend (bse_super_objects, super);
- /* we want Unnamed-xxx default unames */
- bse_item_set (super, "uname", "Unnamed", NULL);
- /* default-fill fields */
+ // default to 'Unnamed-###' unames
+ bse_item_set (super, "uname", _("Unnamed"), NULL);
+
+ // default-fill fields
const char *value = BSE_GCONFIG (author_default);
if (value && value[0])
bse_item_set (super, "author", value, NULL);
diff --git a/po/POTSCAN b/po/POTSCAN
index 5ae751e..2db2d88 100644
--- a/po/POTSCAN
+++ b/po/POTSCAN
@@ -63,6 +63,7 @@ bse/bsebiquadfilter.cc
bse/bsebus.cc
bse/bsebusmodule.idl
bse/bseconstant.cc
+bse/bsecsynth.cc
bse/bsedevice.cc
bse/bseenums.cc
bse/bseinstrumentinput.cc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]