diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-03-28 17:56:57 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-03-28 17:56:57 +0000 |
commit | 87b70130c9353c51a849a9afb01100d2100bdbef (patch) | |
tree | 329cd20e063ef5b82d87ff4750936caec4529b55 /libnautilus-private/nautilus-preferences.h | |
parent | 79a454c795ab688cf6e77360103677191f44aefe (diff) | |
download | nautilus-87b70130c9353c51a849a9afb01100d2100bdbef.tar.gz |
Cleanup NautilusPreferences a bit in preparation for api revamp
to support implicitly registered preferences.
Diffstat (limited to 'libnautilus-private/nautilus-preferences.h')
-rw-r--r-- | libnautilus-private/nautilus-preferences.h | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/libnautilus-private/nautilus-preferences.h b/libnautilus-private/nautilus-preferences.h index 1fa560e20..cc0a0e485 100644 --- a/libnautilus-private/nautilus-preferences.h +++ b/libnautilus-private/nautilus-preferences.h @@ -42,11 +42,13 @@ typedef struct NautilusPreferencesDetails NautilusPreferencesDetails; struct NautilusPreferences { - GtkObject object; - NautilusPreferencesDetails *details; + GtkObject object; + NautilusPreferencesDetails *details; }; /* + * NautilusPreferencesType: + * * The types of supported preferences. */ typedef enum @@ -91,38 +93,38 @@ typedef struct GtkType nautilus_preferences_get_type (void); GtkObject * nautilus_preferences_new (const char *domain); void nautilus_preferences_register_from_info (NautilusPreferences *preferences, - const NautilusPreferencesInfo *pref_info); +const NautilusPreferencesInfo *pref_info); void nautilus_preferences_register_from_values (NautilusPreferences *preferences, - char *name, - char *description, - NautilusPreferencesType type, - gconstpointer default_value, - gpointer data); -const NautilusPreferencesInfo *nautilus_preferences_get_pref_info (NautilusPreferences *preferences, - const char *name); +char *name, +char *description, +NautilusPreferencesType type, +gconstpointer default_value, +gpointer data); +const NautilusPreferencesInfo *nautilus_preferences_get_info (NautilusPreferences *preferences, +const char *name); gboolean nautilus_preferences_add_callback (NautilusPreferences *preferences, - const char *name, - NautilusPreferencesCallback callback, - gpointer user_data); +const char *name, +NautilusPreferencesCallback callback, +gpointer user_data); gboolean nautilus_preferences_remove_callback (NautilusPreferences *preferences, - const char *name, - NautilusPreferencesCallback callback, - gpointer user_data); +const char *name, +NautilusPreferencesCallback callback, +gpointer user_data); void nautilus_preferences_set_boolean (NautilusPreferences *preferences, - const char *name, - gboolean value); +const char *name, +gboolean value); gboolean nautilus_preferences_get_boolean (NautilusPreferences *preferences, - const char *name); +const char *name); void nautilus_preferences_set_enum (NautilusPreferences *preferences, - const char *name, - int value); +const char *name, +int value); int nautilus_preferences_get_enum (NautilusPreferences *preferences, - const char *name); +const char *name); void nautilus_preferences_set_string (NautilusPreferences *preferences, - const char *name, - const char *value); +const char *name, +const char *value); char * nautilus_preferences_get_string (NautilusPreferences *preferences, - const char *name); +const char *name); NautilusPreferences * nautilus_preferences_get_global_preferences (void); BEGIN_GNOME_DECLS |