MetaStringPreference Struct Reference


Data Fields

gchar * key
MetaPreference pref
void(* handler )(MetaPreference pref, const gchar *string_value, gboolean *inform_listeners)
 A handler.
gchar ** target
 Where to write the incoming string.

Detailed Description

Definition at line 259 of file prefs.c.


Field Documentation

Definition at line 261 of file prefs.c.

Referenced by handle_preference_init_string(), and handle_preference_update_string().

Definition at line 262 of file prefs.c.

Referenced by handle_preference_init_string(), and handle_preference_update_string().

void(* MetaStringPreference::handler)(MetaPreference pref, const gchar *string_value, gboolean *inform_listeners)

A handler.

Many of the string preferences aren't stored as strings and need parsing; others of them have default values which can't be solved in the general case. If you include a function pointer here, it will be called before the string value is written out to the target variable.

The function is passed two arguments: the preference, and the new string as a gchar*. It returns a gboolean; only if this is true, the listeners will be informed that the preference has changed.

This may be NULL. If it is, see "target", below.

Referenced by handle_preference_init_string(), and handle_preference_update_string().

Where to write the incoming string.

This must be NULL if the handler is non-NULL. If the incoming string is NULL, no change will be made.

Definition at line 288 of file prefs.c.

Referenced by handle_preference_init_string(), and handle_preference_update_string().


The documentation for this struct was generated from the following file:

Generated on Sat Aug 23 22:04:25 2008 for metacity by  doxygen 1.5.5