summaryrefslogtreecommitdiff
path: root/gtk2_ardour/processor_box.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-04 17:45:11 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-04 17:45:11 +0000
commit12c97285305fba9c0edf2297128e978b0f2ccd67 (patch)
treee37a98940371cf04f14ea3248298f73718bea537 /gtk2_ardour/processor_box.h
parent4a836618f3f9eb28848353e072315da1f2ccfbf0 (diff)
Make processor box send faders adjust their size correctly.
git-svn-id: svn://localhost/ardour2/branches/3.0@6280 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.h')
-rw-r--r--gtk2_ardour/processor_box.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h
index efc91c7a82..daff50dfe7 100644
--- a/gtk2_ardour/processor_box.h
+++ b/gtk2_ardour/processor_box.h
@@ -76,7 +76,8 @@ public:
Gtk::Widget& widget ();
std::string drag_text () const;
boost::shared_ptr<ARDOUR::Processor> processor () const;
- void set_width (Width);
+ void set_enum_width (Width);
+ virtual void set_pixel_width (int) {}
protected:
@@ -104,6 +105,9 @@ public:
static void setup_slider_pix ();
+ void set_enum_width (Width, int);
+ void set_pixel_width (int);
+
private:
void show_gain ();
void gain_adjusted ();
@@ -242,6 +246,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject
gint idle_delete_processor (boost::weak_ptr<ARDOUR::Processor>);
void weird_plugin_dialog (ARDOUR::Plugin& p, ARDOUR::Route::ProcessorStreams streams);
+ void on_size_allocate (Gtk::Allocation &);
static ProcessorBox* _current_processor_box;