From fc03d304e787936fa6bdd619a79c1b3fef51484d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 15 Nov 2023 15:48:22 +0100 Subject: FLUID: fixing test/valuator.fl and test/tree.fl Using Fl_Terminal widget instead of subclassing from Fl_Group --- test/tree.fl | 11 +++-------- test/valuators.fl | 8 ++------ 2 files changed, 5 insertions(+), 14 deletions(-) (limited to 'test') diff --git a/test/tree.fl b/test/tree.fl index 573641535..d96e3141d 100644 --- a/test/tree.fl +++ b/test/tree.fl @@ -38,9 +38,6 @@ decl {\#include } {public global decl {\#include } {public global } -decl {\#include } {public global -} - decl {int G_cb_counter = 0;} { comment {// Global callback event counter} private local } @@ -780,7 +777,7 @@ Fl::visible_focus(onoff);} } } Fl_Group {} { - label {Test Operations} open selected + label {Test Operations} open tooltip {These controls only affect the defaults for new items that are created. These test the Fl_Tree_Prefs methods.} xywh {350 435 330 125} box GTK_DOWN_BOX color 47 labelsize 12 } { Fl_Group showitem_box { @@ -1746,10 +1743,8 @@ helpwin->show();} Fl_Box resizer_box { xywh {0 263 15 14} } - Fl_Box tty { - label label - xywh {16 571 1014 149} box DOWN_BOX color 0 - class Fl_Terminal + Fl_Terminal tty {selected + xywh {16 571 1014 149} box DOWN_BOX } } code {// Initialize Tree diff --git a/test/valuators.fl b/test/valuators.fl index 8b40eaef1..142037d96 100644 --- a/test/valuators.fl +++ b/test/valuators.fl @@ -2,9 +2,6 @@ version 1.0400 header_name {.h} code_name {.cxx} -decl {\#include } {public global -} - Function {} {open } { Fl_Window {} { @@ -231,10 +228,9 @@ Function {} {open label {Some widgets have color(FL_GREEN) and color2(FL_RED) to show the areas these effect.} xywh {460 385 110 115} box BORDER_FRAME color 0 selection_color 0 labelsize 11 align 128 } - Fl_Box tty {selected - xywh {10 513 560 117} box DOWN_BOX color 0 + Fl_Terminal tty {selected + xywh {10 513 560 117} box DOWN_BOX code0 {o->ansi(true);} - class Fl_Terminal } } } -- cgit v1.2.3