Fixes vertical displacement of Before|After views

Added the 'smallbuttonbox' style to the container and removed relief to
make it flat as all other header buttons.
Fixes #4778
This commit is contained in:
Morgan Hardwood
2018-09-24 11:03:48 +02:00
parent 7e36e86dfb
commit 4a28b185b9

View File

@@ -2184,9 +2184,11 @@ void EditorPanel::beforeAfterToggled ()
beforeLabel = Gtk::manage (new Gtk::Label ());
beforeLabel->set_markup (Glib::ustring ("<b>") + M ("GENERAL_BEFORE") + "</b>");
tbBeforeLock = Gtk::manage (new Gtk::ToggleButton ());
tbBeforeLock->set_relief(Gtk::RELIEF_NONE);
tbBeforeLock->set_tooltip_markup (M ("MAIN_TOOLTIP_BEFOREAFTERLOCK"));
tbBeforeLock->signal_toggled().connect ( sigc::mem_fun (*this, &EditorPanel::tbBeforeLock_toggled) );
beforeHeaderBox = Gtk::manage (new Gtk::Box (Gtk::ORIENTATION_HORIZONTAL));
beforeHeaderBox->get_style_context()->add_class("smallbuttonbox");
beforeHeaderBox->pack_end (*tbBeforeLock, Gtk::PACK_SHRINK, 2);
beforeHeaderBox->pack_end (*beforeLabel, Gtk::PACK_SHRINK, 2);
beforeHeaderBox->set_size_request (0, HeaderBoxHeight);