diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-12-21 02:52:27 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-12-21 02:52:27 +0000 |
commit | 02f714b8c9052e5ada0431df0be00f684294739d (patch) | |
tree | 8461e4f1417d243a701da2b325faa11dc13c55f6 /gtk2_ardour/panner.cc | |
parent | 4d6bfa3d473560153bddd21ff750da48a2bf4891 (diff) |
more panner tweaking
git-svn-id: svn://localhost/ardour2/trunk@1239 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/panner.cc')
-rw-r--r-- | gtk2_ardour/panner.cc | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/gtk2_ardour/panner.cc b/gtk2_ardour/panner.cc index acf06c4b07..49bdf778e4 100644 --- a/gtk2_ardour/panner.cc +++ b/gtk2_ardour/panner.cc @@ -4,7 +4,7 @@ using namespace std; -static const int triangle_size = 9; +static const int triangle_size = 7; static void null_label_callback (char* buf, unsigned int bufsize) @@ -37,8 +37,8 @@ PannerBar::expose (GdkEventExpose* ev) GdkPoint points[3]; + // left - points[0].x = 0; points[0].y = 0; @@ -50,16 +50,20 @@ PannerBar::expose (GdkEventExpose* ev) gdk_draw_polygon (win->gobj(), gc->gobj(), true, points, 3); + // center + points[0].x = darea.get_width()/2 - (triangle_size - 2); points[0].y = 0; points[1].x = darea.get_width()/2 + (triangle_size - 2); points[1].y = 0; - points[2].x = darea.get_width()/2; - points[2].y = triangle_size - 2; + points[2].x = darea.get_width()/2 - 1; + points[2].y = triangle_size - 3; - gdk_draw_polygon (win->gobj(), gc->gobj(), true, points, 3); + gdk_draw_polygon (win->gobj(), gc->gobj(), true, points, 3); + + // right points[0].x = darea.get_width() - triangle_size; points[0].y = 0; @@ -111,3 +115,10 @@ PannerBar::button_release (GdkEventButton* ev) return BarController::button_release (ev); } + +void +PannerBar::on_size_request (Gtk::Requisition* req) +{ + req->width = -1; + req->height = 50; +} |