From 2ce406ab428bcaa960f368ab19a0911047b1a98a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 2 Feb 2019 01:10:24 +0100 Subject: Fl_Help_Dialog::load() now returns an error code (STR #3429) --- src/Fl_Help_Dialog.fl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/Fl_Help_Dialog.fl') diff --git a/src/Fl_Help_Dialog.fl b/src/Fl_Help_Dialog.fl index 2eb8efebc..66462a904 100644 --- a/src/Fl_Help_Dialog.fl +++ b/src/Fl_Help_Dialog.fl @@ -29,7 +29,7 @@ comment {// } {in_source in_header } -decl {\#include } {selected private local +decl {\#include } {private local } decl {\#include "flstring.h"} {private local @@ -50,8 +50,7 @@ class FL_EXPORT Fl_Help_Dialog {open } decl {int find_pos_;} {private local } - Function {Fl_Help_Dialog()} {open - } { + Function {Fl_Help_Dialog()} {} { Fl_Window window_ { label {Help Dialog} open private xywh {398 64 530 385} type Double hide resizable size_range {260 150 0 0} @@ -190,11 +189,13 @@ fl_register_images();} {} } { code {window_->hide();} {} } - Function {load(const char *f)} {return_type void + Function {load(const char *f)} {open return_type int } { code {view_->set_changed(); -view_->load(f); -window_->label(view_->title());} {} +int ret = view_->load(f); +window_->label(view_->title()); +return ret;} {selected + } } Function {position(int xx, int yy)} {return_type void } { -- cgit v1.2.3