summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-08-20 20:30:56 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-08-20 20:30:56 +0000
commit61fb41fd7f8a09d5fe9dad3021f177f8d2c7cf5f (patch)
treee58c3868226b454383f4862e79902fb3a7ecd88f
parentc1ba87140e22e9e7b46fe90c0f98e38b7c8a94ca (diff)
This commit fixes one aspect of bug STR #984. However, since Allesandro took his patch back, I would like to first run this one by the developers before I fix the rest on the list.
This patch is different to Alessandro's in that it checks if data was actually changed and the n setting the modflag. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--fluid/Fl_Function_Type.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index 3f4ea2e11..539fb9b09 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -181,12 +181,18 @@ void Fl_Function_Type::open() {
if (*c && *d != '(') {
message = "must be name(arguments), try again:"; continue;
}
+ int mod = 0;
c = f_return_type_input->value();
message = c_check(c); if (message) continue;
+ if (name() && strcmp(f_name_input->value(), name())) mod = 1;
name(f_name_input->value());
+ if (return_type && strcmp(return_type, c)) mod = 1;
storestring(c, return_type);
+ if (public_ != f_public_button->value()) mod = 1;
public_ = f_public_button->value();
+ if (cdecl_ != f_c_button->value()) mod = 1;
cdecl_ = f_c_button->value();
+ if (mod) set_modflag(1);
break;
}
BREAK2: