fix ArdourButton initialization
authorRobin Gareus <robin@gareus.org>
Sat, 6 Sep 2014 10:48:21 +0000 (12:48 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 6 Sep 2014 10:48:21 +0000 (12:48 +0200)
gtk2_ardour/ardour_button.cc

index f2c107d859134b8ae09a8b2fc3af70817793a996..4872102c9e38b8970115a24df64881adf1eadd50 100644 (file)
@@ -120,8 +120,14 @@ ArdourButton::ArdourButton (const std::string& str, Element e)
        , _hovering (false)
        , _focused (false)
        , _fixed_colors_set (false)
+       , _fallthrough_to_parent (false)
+       , _layout_ellipsize_width (-1)
+       , _ellipsis (Pango::ELLIPSIZE_NONE)
+       , _update_colors (true)
+       , _pattern_height (0)
 {
        set_text (str);
+       ARDOUR_UI_UTILS::ColorsChanged.connect (sigc::mem_fun (*this, &ArdourButton::color_handler));
 }
 
 ArdourButton::~ArdourButton()