1 --- /usr/src/cvs/fltk-1.1/fluid/fluid.cxx 2007-02-26 09:51:08.000000000 +0200
2 +++ ./fltk-1.1/fluid/fluid.cxx 2007-08-27 19:04:30.000000000 +0300
4 const char* i18n_set = "";
5 char i18n_program[1024] = "";
7 -void write_cb(Fl_Widget *, void *) {
8 +void write_cb(Fl_Widget *, void *d) {
11 if (!filename) return;
14 fl_message("Can't write %s: %s", cname, strerror(errno));
15 } else if (completion_button->value()) {
16 - fl_message("Wrote %s", cname);
18 + fl_message("Wrote %s", cname);
23 -void write_strings_cb(Fl_Widget *, void *) {
24 +void write_strings_cb(Fl_Widget *, void *d) {
25 static const char *exts[] = { ".txt", ".po", ".msg" };
30 fl_message("Can't write %s: %s", sname, strerror(errno));
31 } else if (completion_button->value()) {
32 - fl_message("Wrote %s", sname);
34 + fl_message("Wrote %s", sname);
38 @@ -1560,6 +1562,13 @@
40 #endif // WIN32 && !__CYGWIN__
42 +void save_write_exit_cb(Fl_Widget *w, void *v) {
44 + write_cb(w,(void *)1);
45 + write_strings_cb(w, (void *)1);
49 ////////////////////////////////////////////////////////////////
51 extern Fl_Menu_Item New_Menu[];
54 {"&Save", FL_COMMAND+'s', save_cb, 0},
55 {"Save &As...", FL_COMMAND+FL_SHIFT+'s', save_cb, (void*)1},
56 + {"Sa&ve, Write code/strings, Exit", FL_F+12, save_write_exit_cb, 0},
57 {"Sa&ve A Copy...", 0, save_cb, (void*)2},
58 {"Save &Template...", 0, save_template_cb},
59 {"&Revert...", 0, revert_cb, 0, FL_MENU_DIVIDER},
60 @@ -2170,8 +2180,11 @@
66 int main(int argc,char **argv) {
68 + setlocale(LC_ALL, "");
69 if (!Fl::args(argc,argv,i,arg) || i < argc-1) {
70 fprintf(stderr,"usage: %s <switches> name.fl\n"
71 " -c : write .cxx and .h and exit\n"