summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-11-15 16:09:17 +0100
committerMatthias Melcher <github@matthiasm.com>2023-11-15 16:09:17 +0100
commit4e1f2e75689a492746570f61ff9bbb1a826c2c0c (patch)
tree12f03f6b86ec0489e2cc855ef03fb2ee5a31dce5 /fluid
parent69189c8f070c9e3347dae6cc835e5f510eca989f (diff)
FLUID: Removes two warnings.
Diffstat (limited to 'fluid')
-rw-r--r--fluid/widget_panel.cxx6
-rw-r--r--fluid/widget_panel.fl12
2 files changed, 9 insertions, 9 deletions
diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx
index be75f3098..24d3d91ae 100644
--- a/fluid/widget_panel.cxx
+++ b/fluid/widget_panel.cxx
@@ -129,8 +129,8 @@ static void cb_widget_grid_transient(Fl_Box* o, void* v) {
if (v==LOAD) {
Fl_Widget *child = ((Fl_Widget_Type*)current_widget)->o;
Fl_Grid_Proxy *g = ((Fl_Grid_Proxy*)((Fl_Widget_Type*)current_widget->parent)->o);
- Fl_Grid::Cell *cell = g->cell(child);
- Fl_Grid::Cell *tcell = g->transient_cell(child);
+ // Fl_Grid::Cell *cell = g->cell(child);
+ // Fl_Grid::Cell *tcell = g->transient_cell(child);
widget_grid_transient->hide();
widget_grid_unlinked->hide();
if (g->transient_cell(child)) {
@@ -573,6 +573,7 @@ Fl_Double_Window* make_widget_panel() {
o->labelsize(11);
o->callback((Fl_Callback*)propagate_load);
o->when(FL_WHEN_NEVER);
+ o->hide();
{ Fl_Group* o = new Fl_Group(95, 40, 309, 20, "Label:");
o->labelfont(1);
o->labelsize(11);
@@ -1446,7 +1447,6 @@ access the Widget pointer and \'v\' to access the user value.");
{ widget_tab_grid_child = new Fl_Group(10, 30, 400, 330, "Grid Child");
widget_tab_grid_child->labelsize(11);
widget_tab_grid_child->callback((Fl_Callback*)propagate_load);
- widget_tab_grid_child->hide();
{ Fl_Group* o = new Fl_Group(95, 60, 315, 20, "Location:");
o->box(FL_FLAT_BOX);
o->labelfont(1);
diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl
index 84ed806cb..d6e90e421 100644
--- a/fluid/widget_panel.fl
+++ b/fluid/widget_panel.fl
@@ -58,8 +58,8 @@ Function {make_widget_panel()} {
} {
Fl_Group {} {
label GUI
- callback propagate_load selected
- xywh {10 30 400 330} labelsize 11 when 0 resizable
+ callback propagate_load
+ xywh {10 30 400 330} labelsize 11 when 0 hide resizable
} {
Fl_Group {} {
label {Label:}
@@ -835,7 +835,7 @@ wCallback->do_callback(wCallback, v);} open
Fl_Group widget_tab_grid_child {
label {Grid Child}
callback propagate_load open
- xywh {10 30 400 330} labelsize 11 hide
+ xywh {10 30 400 330} labelsize 11
} {
Fl_Group {} {
label {Location:}
@@ -894,8 +894,8 @@ wCallback->do_callback(wCallback, v);} open
callback {if (v==LOAD) {
Fl_Widget *child = ((Fl_Widget_Type*)current_widget)->o;
Fl_Grid_Proxy *g = ((Fl_Grid_Proxy*)((Fl_Widget_Type*)current_widget->parent)->o);
- Fl_Grid::Cell *cell = g->cell(child);
- Fl_Grid::Cell *tcell = g->transient_cell(child);
+// Fl_Grid::Cell *cell = g->cell(child);
+// Fl_Grid::Cell *tcell = g->transient_cell(child);
widget_grid_transient->hide();
widget_grid_unlinked->hide();
if (g->transient_cell(child)) {
@@ -903,7 +903,7 @@ wCallback->do_callback(wCallback, v);} open
} else if (!g->cell(child)) {
widget_grid_unlinked->show();
}
-}}
+}} selected
xywh {250 60 80 20} labelsize 11 labelcolor 1
}
Fl_Box widget_grid_unlinked {