summaryrefslogtreecommitdiff
path: root/fluid/Fl_Group_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-07-18 15:21:06 +0200
committerMatthias Melcher <github@matthiasm.com>2023-07-18 15:21:14 +0200
commit4f7a3f384faac7d3f4ee46d42d7f984f48a5b706 (patch)
tree6b422bf6d56b57a717946363ca0478e352d57864 /fluid/Fl_Group_Type.cxx
parent2279f85824b0f13eb47ef79459937c47c1f295c1 (diff)
FLUID correct inheritance, formatting, factory floor cleaning
Diffstat (limited to 'fluid/Fl_Group_Type.cxx')
-rw-r--r--fluid/Fl_Group_Type.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx
index 2c4313108..00cfdb9df 100644
--- a/fluid/Fl_Group_Type.cxx
+++ b/fluid/Fl_Group_Type.cxx
@@ -25,6 +25,7 @@
#include "code.h"
#include "widget_browser.h"
#include "undo.h"
+#include "Fd_Snap_Action.h"
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
@@ -426,8 +427,6 @@ int Fl_Flex_Type::is_fixed(Fl_Type *t) {
Fl_Table_Type Fl_Table_type; // the "factory"
-const char table_type_name[] = "Fl_Table";
-
static const int MAX_ROWS = 14;
static const int MAX_COLS = 7;
@@ -541,6 +540,12 @@ Fl_Widget *Fl_Table_Type::enter_live_mode(int) {
return live_widget;
}
+void Fl_Table_Type::ideal_size(int &w, int &h) FL_OVERRIDE {
+ w = 160;
+ h = 120;
+ Fd_Snap_Action::better_size(w, h);
+}
+
// ---- Fl_Tabs_Type --------------------------------------------------- MARK: -
Fl_Tabs_Type Fl_Tabs_type; // the "factory"