summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-05-29 14:16:15 +0200
committerRobin Gareus <robin@gareus.org>2014-05-29 14:16:15 +0200
commit2d82446f596b30ae6ffcf464fb63aa6e44e43355 (patch)
treed939b15198d3d92c50de47b43b578faa9408a9bb /gtk2_ardour
parentbc523665fe3e38109d9eb89071ec1ae0a52577f0 (diff)
set Gtk::RadioAction state on instant.xml load.
This should really be done in ArdourDropdown somehow. Fixes issues introduced at b9708d5: If after session-load some radio-item other than the first one is set active, it is impossible to switch to the first. e.g. set "Snap to Grid", Save Session, Load Session, trying to switch to "Snap to None" fails until another mode is selected first.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 1e111bcac6..436b8a250c 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -2127,7 +2127,7 @@ Editor::set_state (const XMLNode& node, int /*version*/)
}
if ((prop = node.property ("zoom-focus"))) {
- set_zoom_focus ((ZoomFocus) string_2_enum (prop->value(), zoom_focus));
+ zoom_focus_selection_done ((ZoomFocus) string_2_enum (prop->value(), zoom_focus));
}
if ((prop = node.property ("zoom"))) {
@@ -2143,11 +2143,11 @@ Editor::set_state (const XMLNode& node, int /*version*/)
}
if ((prop = node.property ("snap-to"))) {
- set_snap_to ((SnapType) string_2_enum (prop->value(), _snap_type));
+ snap_type_selection_done ((SnapType) string_2_enum (prop->value(), _snap_type));
}
if ((prop = node.property ("snap-mode"))) {
- set_snap_mode ((SnapMode) string_2_enum (prop->value(), _snap_mode));
+ snap_mode_selection_done((SnapMode) string_2_enum (prop->value(), _snap_mode));
}
if ((prop = node.property ("internal-snap-to"))) {