#include <gtkmm/action.h>
#include "pbd/signals.h"
+#include "ardour/automatable.h"
+
#include "gtkmm2ext/binding_proxy.h"
#include "gtkmm2ext/activatable.h"
#include "gtkmm2ext/cairo_widget.h"
void add_elements (Element);
static Element default_elements;
- void set_tooltip_prefix (std::string pfx) { _tooltip_prefix = pfx; }
+ void set_tooltip_prefix (std::string pfx) { _tooltip_prefix = pfx; controllable_changed (true); }
boost::shared_ptr<PBD::Controllable> get_controllable() { return binding_proxy.get_controllable(); }
void set_controllable (boost::shared_ptr<PBD::Controllable> c);
void color_handler ();
protected:
- void render (cairo_t *, cairo_rectangle_t *);
+ void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
void on_size_request (Gtk::Requisition* req);
void on_size_allocate (Gtk::Allocation&);
void on_style_changed (const Glib::RefPtr<Gtk::Style>&);
bool on_focus_in_event (GdkEventFocus*);
bool on_focus_out_event (GdkEventFocus*);
- void controllable_changed ();
+ void controllable_changed (bool force_update = false);
PBD::ScopedConnection watch_connection;
private:
- Element _elements;
-
- BindingProxy binding_proxy;
+ Element _elements;
+ BindingProxy binding_proxy;
bool _hovering;
float _grabbed_x;