diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-11-25 18:20:02 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-11-25 18:20:08 +0100 |
| commit | 34ed30fe1a710f6294e23003aa385bd6da6cb326 (patch) | |
| tree | 4fb8628a64a3c2943b23a9f7646206cb38bba69a /test | |
| parent | 00808500926af83a531fc1fdc0b2df9716743e8b (diff) | |
Adds `linespacing()` to `Fl_Browser_` and all derived widgets
Diffstat (limited to 'test')
| -rw-r--r-- | test/grid_dialog.cxx | 2 | ||||
| -rw-r--r-- | test/unittests.cxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/grid_dialog.cxx b/test/grid_dialog.cxx index 72ffe66b4..ae393cb22 100644 --- a/test/grid_dialog.cxx +++ b/test/grid_dialog.cxx @@ -86,7 +86,7 @@ void button_cb(Fl_Widget *w, void *v) { break; case 1: { // Copy const char *text = message_box->label(); - const int len = strlen(text); + const int len = (int)strlen(text); Fl::copy(text, len, 1); } printf("Message copied to clipboard.\n"); diff --git a/test/unittests.cxx b/test/unittests.cxx index 4783c223e..12776d670 100644 --- a/test/unittests.cxx +++ b/test/unittests.cxx @@ -454,6 +454,7 @@ int main(int argc, char** argv) { browser->align(FL_ALIGN_TOP|FL_ALIGN_LEFT); browser->when(FL_WHEN_CHANGED); browser->callback(ui_browser_cb); + browser->linespacing(2); int n = UnitTest::num_tests(); for (i=0; i<n; i++) { |
