summaryrefslogtreecommitdiff
path: root/tests/testpersistence.c
Commit message (Collapse)AuthorAgeFilesLines
* remove the -G_MAXFLOAT test, since it didn't work and probably shouldn'tHavoc Pennington2002-03-221-1/+6
| | | | | | | | | | | 2002-03-20 Havoc Pennington <hp@pobox.com> * tests/testpersistence.c: remove the -G_MAXFLOAT test, since it didn't work and probably shouldn't * gconf/gconf-internals.c (gconf_double_to_string): use g_ascii_dtostr() (gconf_string_to_double): use g_ascii_strtod()
* fix obnoxious typo (s/mi/this_mi/), also needed to fix bug reported byHavoc Pennington2002-03-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-10 Havoc Pennington <hp@pobox.com> * gconf/gconf-sources.c (gconf_sources_query_metainfo): fix obnoxious typo (s/mi/this_mi/), also needed to fix bug reported by Kristian. * backends/xml-backend.c (query_metainfo): make key relative prior to looking up metainfo. Fixes bug where schema defaults would mysteriously get lost in some cases, reported by Kristian Rietveld. 2002-03-07 Havoc Pennington <hp@pobox.com> * backends/xml-test.c: test program for XML backend code * configure.in: add a "minimum" debug mode and compile with it by default. * gconf/gconftool.c (main): call setlocale() * tests/runtests.sh: run tests in various locales * gconf/gconf-value.h: add more padding to GConfEntry * gconf/gconf-internals.c (gconf_CORBA_Object_equal): (gconf_CORBA_Object_hash): remove stupid inlining of these functions
* warning cleans. (impl_ConfigDatabase3_add_listener_with_properties): initMichael Meeks2002-01-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-28 Michael Meeks <michael@ximian.com> * gconf/gconf-database.c: warning cleans. (impl_ConfigDatabase3_add_listener_with_properties): init name. (gconf_database_add_listener): right args for format. * gconf/gconf-client.c: warning cleans. * gconf/gconf-internals.c (gconf_orb_release): return shutdown status. * gconf/gconf.c (gconf_detach_config_server): privatize again, and split out ORB shutdown into (gconf_debug_shutdown): here. 2002-01-25 Michael Meeks <michael@ximian.com> * gconf/gconf.c (try_to_contact_server): release the server reference, if it's to a duff object. (gconf_get_config_listener): strip local 'listener', since we have a static module global for that. (gconf_detach_config_server): release the listener. (gconf_get_config_listener): release the poa & manager references. * tests/testgconf.c (main): add gconf_detach_config_server * gconf/gconf-internals.c (gconf_orb_get): remove bonobo activation worries, kill bogus fiddling with the default context. (gconf_orb_release): impl. * gconf/gconf.c (gconf_detach_config_server): publicise & destroy engines_by_cb. (database_rec_release): impl. (gconf_engine_set_database): use g_hash_table_new_full (gconf_engine_detach): just remove from the hash. (try_to_contact_server): release the server reference, if it's to a duff object.
* change to not start gconfd immediately, so we can avoid starting it ifHavoc Pennington2001-12-111-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | 2001-12-11 Havoc Pennington <hp@redhat.com> * gconf/gconf.c (gconf_engine_get_default): change to not start gconfd immediately, so we can avoid starting it if we're just going to shut it down, and just generally do things lazily. (gconf_shutdown_daemon): ignore NO_SERVER error code * backends/xml-dir.c (dir_get_value): always get schema name, not just if value is unset * gconf/gconfd.c (main): don't free logname since there are atexit handlers for now * gconf/gconf-sources.c (gconf_sources_query_value): don't look for a default value for the schema. Useless and adds a bit of inefficiency. * gconf/gconfd.c (main): set log handler for GLib (log_handler): mask extra flags out of log level * gconf/gconf-sources.c (gconf_sources_query_value): Fix this so Gergo's bug doesn't happen; hope no other semantic gets broken. * tests/testschemas.c: do some unbreaking, and put in a test that exposes Gergo's bug (failure to read schema name if a key is set) * tests/*: put in a big comment saying don't use these as example code since they are ugly-ass and broken.
* Merge from stable.Havoc Pennington2001-10-121-0/+1
| | | | | | | | | | | | | | | | | | 2001-10-12 Havoc Pennington <hp@redhat.com> Merge from stable. * tests/testschemas.c (check_schema_storage): add some UTF-8 * tests/testpersistence.c: UTF-8 test * tests/testgconf.c: add a UTF-8 test * gconf/gconf.c: UTF-8 checks, and some indentation * gconf/gconf-schema.c: UTF-8 checks * gconf/gconf-value.c: add some UTF-8 robustness
* commit of BerkeleyDB backend changes to bring source into compliance withColm Smyth2000-10-061-52/+57
| | | | | * commit of BerkeleyDB backend * changes to bring source into compliance with ISO C
* TODO updates, indentation, comment fixesHavoc Pennington2000-09-101-2/+2
|
* Move gconf-backend.h here, I don't see why it was in the public headersHavoc Pennington2000-09-091-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-09-09 Havoc Pennington <hp@pobox.com> * gconf/Makefile.am (libgconf_1_la_SOURCES): Move gconf-backend.h here, I don't see why it was in the public headers Throughout, rename a bunch of stuff: #!/usr/bin/perl -pi.bak s/gconf_notify_add/gconf_engine_notify_add/g; s/gconf_notify_remove/gconf_engine_notify_remove/g; s/gconf_get_without_default/gconf_engine_get_without_default/g; s/gconf_get_full/gconf_engine_get_full/g; s/gconf_get_with_locale/gconf_engine_get_with_locale/g; s/gconf_get_default_from_schema/gconf_engine_get_default_from_schema/g; s/gconf_unset/gconf_engine_unset/g; s/gconf_associate_schema/gconf_engine_associate_schema/g; s/gconf_all_entries/gconf_engine_all_entries/g; s/gconf_all_dirs/gconf_engine_all_dirs/g; s/gconf_suggest_sync/gconf_engine_suggest_sync/g; s/gconf_dir_exists/gconf_engine_dir_exists/g; s/gconf_get_float/gconf_engine_get_float/g; s/gconf_get_int/gconf_engine_get_int/g; s/gconf_get_bool/gconf_engine_get_bool/g; s/gconf_get_schema/gconf_engine_get_schema/g; s/gconf_get_list/gconf_engine_get_list/g; s/gconf_get_pair/gconf_engine_get_pair/g; s/gconf_set_float/gconf_engine_set_float/g; s/gconf_set_int/gconf_engine_set_int/g; s/gconf_set_string/gconf_engine_set_string/g; s/gconf_set_bool/gconf_engine_set_bool/g; s/gconf_set_schema/gconf_engine_set_schema/g; s/gconf_set_list/gconf_engine_set_list/g; s/gconf_set_pair/gconf_engine_set_pair/g; s/gconf_commit_change_set/gconf_engine_commit_change_set/g; s/gconf_create_reverse_change_set/gconf_engine_reverse_change_set/g; s/gconf_create_change_set_from_currentv/gconf_engine_change_set_from_currentv/g; s/gconf_create_change_set_from_current/gconf_engine_change_set_from_current/g; s/gconf_schema_destroy/gconf_schema_free/g; s/gconf_value_destroy/gconf_value_free/g; s/gconf_listeners_destroy/gconf_listeners_free/g; s/gconf_entry_destroy/gconf_entry_free/g; s/gconf_client_create_change_set_from_current/gconf_client_change_set_from_current/g; s/gconf_client_create_change_set_from_currentv/gconf_client_change_set_from_currentv/g; s/gconf_client_create_reverse_change_set/gconf_client_reverse_change_set/g; ## These require some care, since they can be the prefix for unrelated stuff. s/gconf_get /gconf_engine_get /g; s/gconf_set /gconf_engine_set /g; s/gconf_get\(/gconf_engine_get (/g; s/gconf_set\(/gconf_engine_set (/g;
* Massive rename from GConfError to GErrorHavoc Pennington2000-08-311-47/+47
| | | | | | | | | | 2000-08-31 Havoc Pennington <hp@redhat.com> * Massive rename from GConfError to GError * gconf/gconf-error.h, gconf/gconf-error.c: Remove redundant-with-GError stuff; add GCONF_ERROR domain macro
* Bump library versions, bump to 0.6Havoc Pennington2000-07-121-1/+1
| | | | | | | | | | | | | | | | | | 2000-07-12 Havoc Pennington <hp@pobox.com> * configure.in: Bump library versions, bump to 0.6 * gconf/gconf.c (gconf_engine_get_local): Rename from gconf_engine_new_local (gconf_engine_get_default): rename from gconf_engine_new (gconf_engine_get_for_address): rename from gconf_engine_new_from_address * wrappers/gtk/gconf-client.c (gconf_client_get_default): rename from gconf_client_new. Always sink the client, so we are strictly refcounted, no floating state (for future GObject compatibility) (gconf_client_get_for_engine): rename from gconf_client_new_with_engine
* use new double conversion (gconf_value_to_string): use new conversionHavoc Pennington2000-01-211-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2000-01-21 Havoc Pennington <hp@pobox.com> * gconf/gconf-value.c (gconf_value_new_from_string): use new double conversion (gconf_value_to_string): use new conversion * gconf/gconf-internals.c (gconf_double_to_string) (gconf_string_to_double): new functions to go from string to double, we had precision problems with this and maybe still do, these functions encapsulate it. For now copied code from gnumeric/src/xml-io.c * gconf/gconftool.c (main): improve gconfd-is-running error message * gconf/gconf.c (gconf_synchronous_sync): internal-only API for the synchronous sync * gconf/gconfd.c (gconfd_synchronous_sync): implement a way to force _immediate_ sync for testing purposes
* add new testHavoc Pennington2000-01-211-0/+896
2000-01-21 Havoc Pennington <hp@pobox.com> * tests/Makefile.am (testpersistence_SOURCES): add new test * tests/testpersistence.c: New test, clears the cache after every set, to see if the get() function can properly load stuff off of disk. Right now we fail this test. Blah.