diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-19 14:27:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-19 14:27:05 +0000 |
commit | eb1d3e48c822b4235e8dbf58e645ea733e4523b0 (patch) | |
tree | de2142c9bc722bffe48d81ca76fd26090e9c9d6d /gtk2_ardour/ardour_ui_ed.cc | |
parent | 7e5dea02fb0b67828097a0378ffc31bc47302edd (diff) |
fix up big clock aspect ratio; fix color handling in audio clocks
git-svn-id: svn://localhost/ardour2/branches/3.0@10704 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_ed.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_ed.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index e661f05fe6..c47f2023ae 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -641,6 +641,8 @@ ARDOUR_UI::setup_clock () { ARDOUR_UI::Clock.connect (sigc::mem_fun (big_clock, &AudioClock::set)); + big_clock->set_corner_radius (0.0); + big_clock_window->set (new Window (WINDOW_TOPLEVEL), false); big_clock_window->get()->set_keep_above (true); @@ -666,6 +668,16 @@ ARDOUR_UI::big_clock_realized () set_decoration (big_clock_window->get(), (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)); big_clock_window->get()->get_window()->get_geometry (x, y, w, big_clock_height, d); + Gtk::Requisition req; + big_clock->size_request (req); + float aspect = req.width/(float)req.height; + Gdk::Geometry geom; + + geom.min_aspect = aspect; + geom.max_aspect = aspect; + + big_clock_window->get()->set_geometry_hints (*big_clock, geom, Gdk::HINT_ASPECT); + original_big_clock_height = big_clock_height; original_big_clock_width = w; |