summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_info_box.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-18 15:35:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-18 15:35:58 +0000
commit8ad4133d26a098e15c6de984a6a6aff5d9271c24 (patch)
tree2f6110558c20ecb743e6900e875f38ed118fcaed /gtk2_ardour/time_info_box.cc
parente5329ca777caea45a754ef1b57e031602c9a61ab (diff)
don't cache width & height for CairoWidget; provide option for all CairoWidgets to not draw their backgrounds; provide a static method to allow any (Container, probably) widget to provide background color to a CairoWidget without the requirement that it have its own window; remove existing cursor from clocks; clock text no longer has background attribute set, to correct a mistake in my understanding of pango attributes
git-svn-id: svn://localhost/ardour2/branches/3.0@10673 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_info_box.cc')
-rw-r--r--gtk2_ardour/time_info_box.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/time_info_box.cc b/gtk2_ardour/time_info_box.cc
index cde7e97e51..3befc890ae 100644
--- a/gtk2_ardour/time_info_box.cc
+++ b/gtk2_ardour/time_info_box.cc
@@ -143,6 +143,14 @@ TimeInfoBox::TimeInfoBox ()
Editor::instance().get_selection().RegionsChanged.connect (sigc::mem_fun (*this, &TimeInfoBox::selection_changed));
Editor::instance().MouseModeChanged.connect (editor_connections, invalidator(*this), ui_bind (&TimeInfoBox::track_mouse_mode, this), gui_context());
+
+ Gdk::Color bg;
+
+ bg.set_red (lrint (0.149 * 65535));
+ bg.set_green (lrint (0.149 * 65535));
+ bg.set_blue (lrint (0.149 * 65535));
+
+ CairoWidget::provide_background_for_cairo_widget (*this, bg);
}
TimeInfoBox::~TimeInfoBox ()