minor visual change for panner
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 21 Dec 2006 00:28:08 +0000 (00:28 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 21 Dec 2006 00:28:08 +0000 (00:28 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1238 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/panner.cc
libs/gtkmm2ext/barcontroller.cc

index 938e8042c0f1f1df6fc79decc2402fdb7f85115f..acf06c4b07f8d0de235f0bb858b51e58a799108d 100644 (file)
@@ -18,7 +18,7 @@ null_label_callback (char* buf, unsigned int bufsize)
 PannerBar::PannerBar (Gtk::Adjustment& adj, PBD::Controllable& c)
        : BarController (adj, c, sigc::ptr_fun (null_label_callback))
 {
-       
+       set_style (BarController::Line);
 }
 
 PannerBar::~PannerBar ()
index fcd6476772c23654ece25503f40d0947b1b1e58f..618891e424fe3cd569bb61175983bcf947fec456 100644 (file)
@@ -281,22 +281,18 @@ BarController::expose (GdkEventExpose* event)
                        
                        if (parent) {
                                win->draw_rectangle (parent->get_style()->get_fg_gc (parent->get_state()),
-                                                   true,
-                                                   0, 0, darea.get_width(), darea.get_height());
+                                                    true,
+                                                    0, 0, darea.get_width(), darea.get_height());
                        }
-               } else {
-                       win->draw_rectangle (get_style()->get_bg_gc (get_state()),
-                                           true,
-                                           0, 0, darea.get_width(), darea.get_height());
-               }
 
-               if (fract == 0.0) {
-                       win->draw_rectangle (get_style()->get_fg_gc (get_state()),
-                                           true, x1, 1, 2, darea.get_height() - 2);
                } else {
-                       win->draw_rectangle (get_style()->get_fg_gc (get_state()),
-                                           true, x1 - 1, 1, 3, darea.get_height() - 2);
+
+                       win->draw_rectangle (get_style()->get_bg_gc (get_state()),
+                                            true,
+                                            0, 0, darea.get_width(), darea.get_height());
                }
+               
+               win->draw_line (get_style()->get_base_gc (get_state()), x1, 0, x1, darea.get_height());
                break;
 
        case CenterOut: