13
0

fix styling of pane dividers (the original reason for the "*Pane*" widget=>style spec)

This commit is contained in:
Paul Davis 2016-06-01 22:23:34 -04:00
parent 0d999ea4ec
commit d680c1f1db
2 changed files with 2 additions and 0 deletions

View File

@ -1202,3 +1202,4 @@ widget "*processor postfader" style:highest "processor"
widget "*MonitorSectionLabel" style:highest "small_text" widget "*MonitorSectionLabel" style:highest "small_text"
widget "*ooltip*" style:highest "tooltip" widget "*ooltip*" style:highest "tooltip"
widget "*Pane" style:highest "pane" widget "*Pane" style:highest "pane"
widget "*Pane.Divider" style:highest "pane"

View File

@ -111,6 +111,7 @@ void
Pane::add_divider () Pane::add_divider ()
{ {
Divider* d = new Divider; Divider* d = new Divider;
d->set_name (X_("Divider"));
d->signal_button_press_event().connect (sigc::bind (sigc::mem_fun (*this, &Pane::handle_press_event), d), false); d->signal_button_press_event().connect (sigc::bind (sigc::mem_fun (*this, &Pane::handle_press_event), d), false);
d->signal_button_release_event().connect (sigc::bind (sigc::mem_fun (*this, &Pane::handle_release_event), d), false); d->signal_button_release_event().connect (sigc::bind (sigc::mem_fun (*this, &Pane::handle_release_event), d), false);
d->signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun (*this, &Pane::handle_motion_event), d), false); d->signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun (*this, &Pane::handle_motion_event), d), false);