diff options
author | David Robillard <d@drobilla.net> | 2008-10-05 02:29:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-05 02:29:16 +0000 |
commit | e71aa5a95bfbe7955a77cb4061254831f046ab89 (patch) | |
tree | 6f3e7b3159bb9dadf5e9bef99f9e47fe9b9c5fa1 /libs | |
parent | f3252f65856d5684ffc89758425bd5fd2209d650 (diff) |
More cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@3862 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/scroomer.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/gtkmm2ext/scroomer.cc b/libs/gtkmm2ext/scroomer.cc index a8bd0289f2..7c6d2c6350 100644 --- a/libs/gtkmm2ext/scroomer.cc +++ b/libs/gtkmm2ext/scroomer.cc @@ -28,8 +28,8 @@ using namespace std; Scroomer::Scroomer(Gtk::Adjustment& adjustment) : adj(adjustment) , handle_size(0) - , grab_comp(None) { - + , grab_comp(None) +{ position[TopBase] = 0; position[Handle1] = 0; position[Slider] = 0; @@ -88,7 +88,7 @@ Scroomer::on_motion_notify_event (GdkEventMotion* ev) fract = max (-1.0, fract); fract = -fract; - switch(grab_comp) { + switch (grab_comp) { case TopBase: case BottomBase: unzoomed_val += scale * fract * range; @@ -231,7 +231,7 @@ Scroomer::on_button_release_event (GdkEventButton* ev) return true; } - switch(grab_comp) { + switch (grab_comp) { case TopBase: break; case Handle1: @@ -275,7 +275,7 @@ Scroomer::set_comp_rect(GdkRectangle& r, Component c) const { int index = (int) c; - switch(c) { + switch (c) { case None: return; case Total: @@ -372,7 +372,7 @@ Scroomer::adjustment_changed() std::string Scroomer::get_comp_name(Component c) { - switch(c) { + switch (c) { case TopBase: return "TopBase"; case Handle1: |