Fix subclass callback output code.

Make fltk-config script executable after rerunning configure script.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-04-15 20:45:07 +00:00
parent fc4db19395
commit 91c3b8231d
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ makeinclude: configure configh.in makeinclude.in
./configure; \ ./configure; \
fi fi
touch config.h touch config.h
chmod +x fltk-config
configure: configure.in configure: configure.in
autoconf autoconf

View File

@ -1496,7 +1496,7 @@ void Fl_Widget_Type::write_static() {
if (k) { if (k) {
write_c("void %s::%s(%s* o, %s v) {\n", k, cn, t, ut); write_c("void %s::%s(%s* o, %s v) {\n", k, cn, t, ut);
write_c(" ((%s*)(o->", k); write_c(" ((%s*)(o->", k);
for (Fl_Type* p = parent; p->is_widget(); p = p->parent) for (Fl_Type* p = parent; p && p->is_widget(); p = p->parent)
write_c("parent()->"); write_c("parent()->");
write_c("user_data()))->%s_i(o,v);\n}\n", cn); write_c("user_data()))->%s_i(o,v);\n}\n", cn);
} }