Reverted some code to hardcode some style for Gtk3.18 only.

This commit is contained in:
Hombre
2016-11-26 22:54:41 +01:00
parent 6676e3d271
commit a4703c54b4
2 changed files with 491 additions and 170 deletions

View File

@@ -23,9 +23,19 @@
using namespace rtengine::procparams;
ToolVBox::ToolVBox() {}
ToolVBox::ToolVBox() {
#if GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 20
set_spacing(1); // Vertical space between tools
set_border_width(3); // Space separating the tab's frame and the tools
#endif
}
ToolParamBlock::ToolParamBlock() {}
ToolParamBlock::ToolParamBlock() {
#if GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 20
set_spacing(2); // Vertical space between parameters in a single tool
set_border_width(5); // Space separating the parameters of a tool and its surrounding frame
#endif
}
FoldableToolPanel::FoldableToolPanel(Gtk::Box* content, Glib::ustring toolName, Glib::ustring UILabel, bool need11, bool useEnabled) : ToolPanel(toolName, need11), parentContainer(nullptr), exp(nullptr), lastEnabled(true)
{