diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2002-04-30 22:25:18 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2002-04-30 22:25:18 +0000 |
| commit | adb6fc4eeb0d73481a1368531f8593c485fd5c91 (patch) | |
| tree | 0a303c6ab9d6b01cc7f3cb1f2484acb0131028f3 /fluid | |
| parent | 8972642109ea98fd71bc83d7ffc0167958ae22bf (diff) | |
added binary support and procedural names to
Fl_Preferences, updated FLUID, update documentation.
Attempted to strip all Win32 CR.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 1184a5d24..c66d07d24 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1,5 +1,5 @@ // -// "$Id: fluid.cxx,v 1.15.2.13.2.15 2002/04/30 18:11:49 easysw Exp $" +// "$Id: fluid.cxx,v 1.15.2.13.2.16 2002/04/30 22:25:18 matthiaswm Exp $" // // FLUID main entry for the Fast Light Tool Kit (FLTK). // @@ -468,11 +468,9 @@ void make_main_window() { // Load file history from preferences... void load_history() { int i; // Looping var - char name[32]; // Variable name for (i = 0; i < 10; i ++) { - sprintf(name, "file%d", i); - fluid_prefs.get(name, absolute_history[i], "", sizeof(absolute_history[i])); + fluid_prefs.get( Fl_Preferences::Name("file%d", i), absolute_history[i], "", sizeof(absolute_history[i])); if (absolute_history[i][0]) { // Make a relative version of the filename for the menu... fl_filename_relative(relative_history[i], sizeof(relative_history[i]), @@ -488,7 +486,6 @@ void load_history() { // Update file history from preferences... void update_history(const char *filename) { int i; // Looping var - char name[32]; // Variable name char absolute[1024]; fl_filename_absolute(absolute, sizeof(absolute), filename); @@ -519,8 +516,7 @@ void update_history(const char *filename) { // Update the menu items as needed... for (i = 0; i < 10; i ++) { - sprintf(name, "file%d", i); - fluid_prefs.set(name, absolute_history[i]); + fluid_prefs.set( Fl_Preferences::Name("file%d", i), absolute_history[i]); if (absolute_history[i][0]) Main_Menu[i + 4].flags = 0; else Main_Menu[i + 4].flags = FL_MENU_INVISIBLE; } @@ -618,5 +614,5 @@ int main(int argc,char **argv) { } // -// End of "$Id: fluid.cxx,v 1.15.2.13.2.15 2002/04/30 18:11:49 easysw Exp $". +// End of "$Id: fluid.cxx,v 1.15.2.13.2.16 2002/04/30 22:25:18 matthiaswm Exp $". // |
