summaryrefslogtreecommitdiff
path: root/src/Fl_Help_Dialog.fl
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-02-02 01:10:24 +0100
committerMatthias Melcher <git@matthiasm.com>2019-02-02 01:10:24 +0100
commit2ce406ab428bcaa960f368ab19a0911047b1a98a (patch)
tree986ef1a3d11c5b783c8ee5164bf1b0864600efed /src/Fl_Help_Dialog.fl
parent0698e16a6b154f227dcb4ab135b273af1fa0f5f9 (diff)
Fl_Help_Dialog::load() now returns an error code (STR #3429)
Diffstat (limited to 'src/Fl_Help_Dialog.fl')
-rw-r--r--src/Fl_Help_Dialog.fl13
1 files changed, 7 insertions, 6 deletions
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 <FL/Fl_Shared_Image.H>} {selected private local
+decl {\#include <FL/Fl_Shared_Image.H>} {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
} {