From 0b98e816d858a5bc49b0596293760c5237f58e8d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 20 Apr 2006 04:34:18 +0000 Subject: Fixed crash in Fl_Preferences if 2nd or 3rd argument in the 'path' constructor were NULL git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Preferences.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'documentation') diff --git a/documentation/Fl_Preferences.html b/documentation/Fl_Preferences.html index fc5c723d4..e39b6cdd3 100644 --- a/documentation/Fl_Preferences.html +++ b/documentation/Fl_Preferences.html @@ -69,9 +69,11 @@ method. -

Fl_Preferences(enum Root root, -const char *vendor, const char *application)
-Fl_Preferences(Fl_Preferences &p, const char *groupname)

+

+Fl_Preferences(enum Root root, const char *vendor, const char *application)
+Fl_Preferences(const char *path, const char *vendor, const char *application)
+Fl_Preferences(Fl_Preferences &p, const char *groupname)
+

The constructor creates a group that manages name/value pairs and child groups. Groups are ready for reading and writing at any time. @@ -89,9 +91,15 @@ name of your application. Both vendor and application must be valid relative UNIX pathnames and may contain '/'s to create deeper file structures. -

The groupname argument identifies a group of -entries. It can contain '/'s to get quick access to individual -elements inside the hierarchy. +

The second format is used to create a preferences file at an +arbitrary position in the file system. The file name is generated +as path/application.prefs. If application +is 0, path must contain the full file name. + +

The third format generates a new group of preference entries +inside the group or file p. The groupname argument +identifies a group of entries. It can contain '/'s to get quick +access to individual elements inside the hierarchy.

~Fl_Preferences()

-- cgit v1.2.3