summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-09 23:12:55 +0100
committerGitHub <noreply@github.com>2022-11-09 23:12:55 +0100
commit56cba05672faa953f3e078de6a2db2992dd888b9 (patch)
tree8eca88e7f9293ff5c8052762c4d195dd719692a8 /fluid/Fl_Function_Type.cxx
parentf41861976b35bfeceed0ffca1b3b97dd89257a55 (diff)
Fluid Fl_Widget::image() path fixes. (#536)
* Adding strings and design file to source view panel * Fluid: Fixed source dir recursion, fixed relative image reading path. * Renaming source_dir to designfile_dir in some functions.
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index 8b15316cc..81ab35a9c 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -1128,9 +1128,9 @@ void Fl_Data_Type::open() {
if (w == data_panel_cancel) goto BREAK2;
else if (w == data_panel_ok) break;
else if (w == data_filebrowser) {
- goto_source_dir();
+ goto_designfile_dir();
const char *fn = fl_file_chooser("Load Inline Data", 0L, data_filename->value(), 1);
- leave_source_dir();
+ leave_designfile_dir();
if (fn) {
if (strcmp(fn, data_filename->value()))
set_modflag(1);
@@ -1217,9 +1217,9 @@ void Fl_Data_Type::write_code1() {
int nData = -1;
// path should be set correctly already
if (filename_ && !write_sourceview) {
- goto_source_dir();
+ goto_designfile_dir();
FILE *f = fl_fopen(filename_, "rb");
- leave_source_dir();
+ leave_designfile_dir();
if (!f) {
message = "Can't include data from file. Can't open";
} else {