diff options
Diffstat (limited to 'fluid/nodes/Button_Node.cxx')
| -rw-r--r-- | fluid/nodes/Button_Node.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fluid/nodes/Button_Node.cxx b/fluid/nodes/Button_Node.cxx index d989c527c..877c5588d 100644 --- a/fluid/nodes/Button_Node.cxx +++ b/fluid/nodes/Button_Node.cxx @@ -57,7 +57,7 @@ Fl_Menu_Item *Button_Node::subtypes() { } void Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8; fld::app::Snap_Action::better_size(w, h); @@ -95,7 +95,7 @@ void Button_Node::copy_properties() { // ---- Return Button ---- void Return_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + h; // make room for the symbol fld::app::Snap_Action::better_size(w, h); @@ -120,7 +120,7 @@ Repeat_Button_Node Repeat_Button_Node::prototype; // ---- Light Button ---- void Light_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the light fld::app::Snap_Action::better_size(w, h); @@ -136,7 +136,7 @@ Light_Button_Node Light_Button_Node::prototype; // ---- Check Button ---- void Check_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the symbol fld::app::Snap_Action::better_size(w, h); @@ -152,7 +152,7 @@ Check_Button_Node Check_Button_Node::prototype; // ---- Round Button ---- void Round_Button_Node::ideal_size(int &w, int &h) { - auto layout = Fluid.proj.layout; + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the symbol fld::app::Snap_Action::better_size(w, h); |
