diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-07 16:42:48 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-07 16:42:48 +0000 |
commit | be1abb12ffcd8ded8638742e96ac60d754dac8f5 (patch) | |
tree | 3383a3c0adcceb602f8f4f492573523ca1e2bb16 /gtk2_ardour/time_info_box.cc | |
parent | a91d18414ac7e33889595ee8dfd904177dc3ae94 (diff) |
more clock tweaking
git-svn-id: svn://localhost/ardour2/branches/3.0@9680 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_info_box.cc')
-rw-r--r-- | gtk2_ardour/time_info_box.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk2_ardour/time_info_box.cc b/gtk2_ardour/time_info_box.cc index a58aa071c0..8319db94ef 100644 --- a/gtk2_ardour/time_info_box.cc +++ b/gtk2_ardour/time_info_box.cc @@ -82,6 +82,10 @@ TimeInfoBox::TimeInfoBox () set_homogeneous (false); set_spacings (0); + set_border_width (2); + + /* a bit more spacing between the two "sides" */ + set_col_spacing (1, 10); Gtk::Label* l; @@ -199,12 +203,13 @@ TimeInfoBox::on_expose_event (GdkEventExpose* ev) if (win) { Cairo::RefPtr<Cairo::Context> context = win->create_cairo_context(); - - translate_coordinates (*window_parent, 0, 0, x, y); - + +#if 0 + translate_coordinates (*window_parent, ev->area.x, ev->area.y, x, y); context->rectangle (x, y, ev->area.width, ev->area.height); context->clip (); - +#endif + translate_coordinates (*window_parent, 0, 0, x, y); context->set_source_rgba (0.149, 0.149, 0.149, 1.0); Gtkmm2ext::rounded_rectangle (context, x, y, get_allocation().get_width(), get_allocation().get_height(), 5); context->fill (); |