More cleanup.
authorDavid Robillard <d@drobilla.net>
Sun, 5 Oct 2008 02:29:16 +0000 (02:29 +0000)
committerDavid Robillard <d@drobilla.net>
Sun, 5 Oct 2008 02:29:16 +0000 (02:29 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3862 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/gtkmm2ext/scroomer.cc

index a8bd0289f23771d5050a59cb3ab18ae9e43da38d..7c6d2c6350b324ebff9be05e9aea97492299b495 100644 (file)
@@ -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: