summaryrefslogtreecommitdiff
path: root/gtk2_ardour/button_joiner.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-02-03 18:31:10 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-02-03 18:31:10 +0000
commitc21c9e666286529fbef0539402367b8787b9964b (patch)
tree166ca40fec69c8fcf22e31ff452a3b69bfa8f394 /gtk2_ardour/button_joiner.h
parentac268b1224af860e94a67bc957319da888952fd7 (diff)
use button joiner for smart mode; polish up the visuals on the joiner a bit
git-svn-id: svn://localhost/ardour2/branches/3.0@11439 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/button_joiner.h')
-rw-r--r--gtk2_ardour/button_joiner.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/button_joiner.h b/gtk2_ardour/button_joiner.h
index 5a07e5d8d2..b3913ef20d 100644
--- a/gtk2_ardour/button_joiner.h
+++ b/gtk2_ardour/button_joiner.h
@@ -11,6 +11,8 @@
class ButtonJoiner : public CairoWidget, public Gtkmm2ext::Activatable {
public:
ButtonJoiner (Gtk::Widget&, Gtk::Widget&);
+ ~ButtonJoiner ();
+
void set_related_action (Glib::RefPtr<Gtk::Action>);
void set_active_state (Gtkmm2ext::ActiveState);
@@ -18,6 +20,7 @@ class ButtonJoiner : public CairoWidget, public Gtkmm2ext::Activatable {
void render (cairo_t*);
bool on_button_release_event (GdkEventButton*);
void on_size_request (Gtk::Requisition*);
+ void on_size_allocate (Gtk::Allocation&);
void action_sensitivity_changed ();
void action_visibility_changed ();
@@ -30,6 +33,9 @@ class ButtonJoiner : public CairoWidget, public Gtkmm2ext::Activatable {
Gtk::HBox packer;
Gtk::Alignment align;
+ cairo_pattern_t* active_fill_pattern;
+ cairo_pattern_t* inactive_fill_pattern;
+
void set_colors ();
};