mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Use ID::to_s() in gtk2_ardour instead of ID::print()
This commit is contained in:
parent
334ec95e43
commit
fda05ac64b
2 changed files with 9 additions and 19 deletions
|
|
@ -851,24 +851,15 @@ XMLNode&
|
|||
ARDOUR_UI::get_transport_controllable_state ()
|
||||
{
|
||||
XMLNode* node = new XMLNode(X_("TransportControllables"));
|
||||
char buf[64];
|
||||
|
||||
roll_controllable->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("roll"), buf);
|
||||
stop_controllable->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("stop"), buf);
|
||||
goto_start_controllable->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("goto_start"), buf);
|
||||
goto_end_controllable->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("goto_end"), buf);
|
||||
auto_loop_controllable->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("auto_loop"), buf);
|
||||
play_selection_controllable->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("play_selection"), buf);
|
||||
rec_controllable->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("rec"), buf);
|
||||
shuttle_box.controllable()->id().print (buf, sizeof (buf));
|
||||
node->add_property (X_("shuttle"), buf);
|
||||
node->add_property (X_("roll"), roll_controllable->id().to_s());
|
||||
node->add_property (X_("stop"), stop_controllable->id().to_s());
|
||||
node->add_property (X_("goto_start"), goto_start_controllable->id().to_s());
|
||||
node->add_property (X_("goto_end"), goto_end_controllable->id().to_s());
|
||||
node->add_property (X_("auto_loop"), auto_loop_controllable->id().to_s());
|
||||
node->add_property (X_("play_selection"), play_selection_controllable->id().to_s());
|
||||
node->add_property (X_("rec"), rec_controllable->id().to_s());
|
||||
node->add_property (X_("shuttle"), shuttle_box.controllable()->id().to_s());
|
||||
|
||||
return *node;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2593,8 +2593,7 @@ Editor::get_state ()
|
|||
char buf[32];
|
||||
LocaleGuard lg;
|
||||
|
||||
id().print (buf, sizeof (buf));
|
||||
node->add_property ("id", buf);
|
||||
node->add_property ("id", id().to_s ());
|
||||
|
||||
node->add_child_nocopy (Tabbable::get_state());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue