call foo::foo() before bar::bar(foo).
[ardour.git] / gtk2_ardour / audio_clock.h
index b9c9be095dc5be4b926fcdebdbbe1a538d3b48ae..dd06f7cf44f847f42cc042245458c1085dd40124 100644 (file)
 #ifndef __audio_clock_h__
 #define __audio_clock_h__
 
-#include <gtk--.h>
+#include <gtkmm/box.h>
+#include <gtkmm/menu.h>
+#include <gtkmm/eventbox.h>
+#include <gtkmm/label.h>
+#include <gtkmm/frame.h>
 #include <ardour/ardour.h>
 
 namespace ARDOUR {
@@ -50,7 +54,7 @@ class AudioClock : public Gtk::HBox
        jack_nframes_t current_duration (jack_nframes_t position = 0) const;
        void set_session (ARDOUR::Session *s);
 
-       SigC::Signal0<void> ValueChanged;
+       sigc::signal<void> ValueChanged;
 
   private:
        ARDOUR::Session  *session;
@@ -144,14 +148,14 @@ class AudioClock : public Gtk::HBox
        double drag_y;
        double drag_accum;
 
-       void realize_impl ();
+       void on_realize ();
        
-       gint field_motion_notify_event (GdkEventMotion *ev, Field);
-       gint field_button_press_event (GdkEventButton *ev, Field);
-       gint field_button_release_event (GdkEventButton *ev, Field);
-       gint field_key_release_event (GdkEventKey *, Field);
-       gint field_focus_in_event (GdkEventFocus *, Field);
-       gint field_focus_out_event (GdkEventFocus *, Field);
+       bool field_motion_notify_event (GdkEventMotion *ev, Field);
+       bool field_button_press_event (GdkEventButton *ev, Field);
+       bool field_button_release_event (GdkEventButton *ev, Field);
+       bool field_key_release_event (GdkEventKey *, Field);
+       bool field_focus_in_event (GdkEventFocus *, Field);
+       bool field_focus_out_event (GdkEventFocus *, Field);
 
        void set_smpte (jack_nframes_t, bool);
        void set_bbt (jack_nframes_t, bool);