aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-config-listener.c
Commit message (Collapse)AuthorAgeFilesLines
* use GCONF_CLIENT_PRELOAD_RECURSIVE when adding watched directories toRodrigo Moya2003-06-131-1/+1
| | | | | | | | | 2003-06-12 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.c (add_key): use GCONF_CLIENT_PRELOAD_RECURSIVE when adding watched directories to avoid GConfd round-trips. svn path=/trunk/; revision=21431
* define in terms of privincludedir.Dan Winship2003-02-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (eutilincludedir, etc): define in terms of privincludedir. * ename/Makefile.am (libenameincludedir): Likewise * e-account.c: Fix warnings * e-account-list.c: Likewise * e-config-listener.c: Likewise * e-gui-utils.c: Likewise. * e-lang-utils.c: Likewise * e-msgport.c: Likewise * e-passwords.c: Likewise * e-categories-config.c (e_categories_config_open_dialog_for_entry): Use g_object_get/_set rather than gtk_ * e-url.c (e_uri_new): Use g_ascii_strdown instead of deprecated g_strdown. svn path=/trunk/; revision=19771
* New.Dan Winship2003-01-071-1/+24
| | | | | | | | | * e-config-listener.c (e_config_listener_remove_value): New. * e-passwords.c (e_passwords_get_password): Don't look at the passwords hash until calling e_passwords_init(). svn path=/trunk/; revision=19253
* new function.Rodrigo Moya2002-12-111-0/+21
| | | | | | | | 2002-12-10 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.[ch] (e_config_listener_remove_dir): new function. svn path=/trunk/; revision=19086
* (e_config_listener_get_string_with_default):Ettore Perazzoli2002-11-141-5/+5
| | | | | | | Make sure we don't use a string value from a GConfValue that got freed. svn path=/trunk/; revision=18743
* (add_key): g_strdup() the value in the caseEttore Perazzoli2002-11-121-1/+1
| | | | | | of a string value. svn path=/trunk/; revision=18708
* init err to NULL so if there isn't an error we aren't left with anChris Toshok2002-11-061-4/+4
| | | | | | | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * e-config-listener.c (e_config_listener_set_boolean): init err to NULL so if there isn't an error we aren't left with an unitialized GError. Fixes crash. (e_config_listener_set_float): same. (e_config_listener_set_long): same. (e_config_listener_set_string): same. svn path=/trunk/; revision=18593
* new simpler functions, without a default value.Rodrigo Moya2002-11-041-0/+24
| | | | | | | | | | | 2002-11-03 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.[ch] (e_config_listener_get_boolean, e_config_listener_get_float, e_config_listener_get_long, e_config_listener_get_string): new simpler functions, without a default value. svn path=/trunk/; revision=18516
* Removed unused variable. (e_config_listener_get_long_with_default):Ettore Perazzoli2002-11-041-3/+0
| | | | | | | | | | | * e-config-listener.c (e_config_listener_get_float_with_default): Removed unused variable. (e_config_listener_get_long_with_default): Likewise. (e_config_listener_get_string_with_default): Likewise. * Makefile.am: Compile e-config-listener.[ch]. svn path=/trunk/; revision=18507
* ported to GConf and GObject.Rodrigo Moya2002-11-021-173/+162
| | | | | | | | 2002-11-02 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.[ch]: ported to GConf and GObject. svn path=/trunk/; revision=18500
* Fixes #32764Rodrigo Moya2002-10-251-27/+34
| | | | | | | | | | | | | | | | | | | | 2002-10-24 Rodrigo Moya <rodrigo@ximian.com> Fixes #32764 * e-config-listener.c (add_key): store the value returned by bonobo_event_source_client_add_listener, so that we can remove it later, when freeing the key structure. (free_key_hash): remove listener. (e_config_listener_set_boolean): (e_config_listener_set_float): (e_config_listener_set_long): (e_config_listener_set_string): only set the cache values if there's no exception. (e_config_listener_destroy): remove all keys before unrefing the db component. svn path=/trunk/; revision=18429
* Fix some non-ANSI switch statementsDan Winship2002-09-231-0/+2
| | | | | | | | * e-config-listener.c: Fix some non-ANSI switch statements * e-path.c: #include <sys/types.h> for OS X svn path=/trunk/; revision=18156
* update the local copy (if we've got one) so that we don't return values ifRodrigo Moya2002-09-051-0/+26
| | | | | | | | | | | | 2002-09-05 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.c (e_config_listener_set_boolean, e_config_listener_set_float, e_config_listener_set_long, e_config_listener_set_string): update the local copy (if we've got one) so that we don't return values if asked before getting the change notification. svn path=/trunk/; revision=17985
* new functions. (property_change_cb, add_key): added support for FLOATRodrigo Moya2002-08-271-2/+92
| | | | | | | | | | | | 2002-08-27 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.c[ch] (e_config_listener_get_float_with_default, e_config_listener_set_boolean, e_config_listener_set_float): new functions. (property_change_cb, add_key): added support for FLOAT values. (e_config_listener_set_string): free strings before returning. svn path=/trunk/; revision=17873
* call g_strdup in the correct place, or we'll return the internal copy.Rodrigo Moya2002-08-271-2/+2
| | | | | | | | | 2002-08-26 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.c (e_config_listener_get_string_with_default): call g_strdup in the correct place, or we'll return the internal copy. svn path=/trunk/; revision=17860
* only set the key if the value is different from what we've already readRodrigo Moya2002-08-261-0/+11
| | | | | | | | | | | 2002-08-26 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.c (e_config_listener_set_long): only set the key if the value is different from what we've already read from the database, to avoid extra change notifications. (e_config_listener_set_string): likewise. svn path=/trunk/; revision=17858
* added "key_changed" signal to class. (property_change_cb): emitRodrigo Moya2002-08-231-30/+133
| | | | | | | | | | | 2002-08-22 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.[ch]: added "key_changed" signal to class. (property_change_cb): emit "key_changed" signal. (e_config_listener_set_long): new function. (e_config_listener_get_long_with_default): new function. svn path=/trunk/; revision=17847
* new class for config database access and monitoring.Rodrigo Moya2002-08-201-0/+313
2002-08-16 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.[ch]: new class for config database access and monitoring. * Makefile.am: added new files. svn path=/trunk/; revision=17816