more changes flowing from a persistent MonitorSection object
[ardour.git] / gtk2_ardour / big_clock_window.cc
index 0f688702dd83496b6f8d6f0b1bf167877b54b5d0..58c63989d8f81eb6776dcf38d96e5a2d2c41cefc 100644 (file)
 #include <string>
 #include <vector>
 
+#include "gtkmm2ext/utils.h"
+
 #include "ardour_ui.h"
 #include "audio_clock.h"
 #include "big_clock_window.h"
 #include "public_editor.h"
 #include "utils.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using std::min;
 using std::string;
 using namespace ARDOUR_UI_UTILS;
 
-BigClockWindow::BigClockWindow (AudioClock& c) 
+BigClockWindow::BigClockWindow (AudioClock& c)
        : ArdourWindow (_("Big Clock"))
        , clock (c)
 {
-       ARDOUR_UI::Clock.connect (sigc::mem_fun (clock, &AudioClock::set));
+       ARDOUR_UI::Clock.connect (sigc::bind (sigc::mem_fun (clock, &AudioClock::set), false, 0));
 
        clock.set_corner_radius (0.0);
 
@@ -55,8 +57,7 @@ void
 BigClockWindow::on_unmap ()
 {
        ArdourWindow::on_unmap ();
-
-       PublicEditor::instance().reset_focus ();
+       ARDOUR_UI::instance()->reset_focus (this);
 }
 
 bool
@@ -69,13 +70,10 @@ void
 BigClockWindow::on_realize ()
 {
        ArdourWindow::on_realize ();
-       /* (try to) ensure that resizing is possible.
-        */
-       get_window()->set_decorations (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH);
-
-       /* try to force a fixed aspect ratio so that we don't distort the font
-        */
+       /* (try to) ensure that resizing is possible and the window can be moved (and closed) */
+       get_window()->set_decorations (Gdk::DECOR_BORDER | Gdk::DECOR_RESIZEH | Gdk::DECOR_TITLE | Gdk::DECOR_MENU);
 
+       /* try to force a fixed aspect ratio so that we don't distort the font */
        float aspect = default_size.width/(float)default_size.height;
        Gdk::Geometry geom;