summaryrefslogtreecommitdiff
path: root/examples/simple-view.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug 578877 – Update FSF addressTobias Mueller2009-04-211-2/+2
|
* g_free and friends handles NULL just fine. Closes bug #371087 reported byKjartan Maraas2008-01-101-2/+1
| | | | | | | | | | | | | | | | | | | | | 2008-01-10 Kjartan Maraas <kmaraas@gnome.org> * backends/evoldap-backend.c: (parse_server_info), (destroy_source): * backends/markup-tree.c: (markup_entry_set_value): * backends/xml-dir.c: (create_fs_dir): * backends/xml-entry.c: (entry_destroy), (entry_set_schema_name), (entry_set_mod_user): * examples/simple-view.c: (main): * gconf/gconf-schema.c: (gconf_schema_free), (gconf_schema_copy): * gconf/gconf-sources.c: (gconf_sources_query_value): * gconf/gconf-value.c: (set_string), (gconf_value_free), (gconf_entry_unref), (gconf_entry_set_schema_name): * gconf/gconf.c: (gconf_engine_get_string): g_free and friends handles NULL just fine. Closes bug #371087 reported by Morten Welinder. svn path=/trunk/; revision=2510
* Bump versionKjartan Maraas2008-01-101-1/+1
| | | | | | | | | | | | | | | | 2008-01-10 Kjartan Maraas <kmaraas@gnome.org> * configure.in: Bump version * backends/xml-dir.c: * examples/basic-gconf-app.schemas: * examples/simple-controller.c: * examples/simple-view.c: * gconf/gconf-changeset.c: * gconf/gconf.c: Mark some functions and variables static. Closes bug #142295. svn path=/trunk/; revision=2509
* make the internal functions staticHavoc Pennington2002-04-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-26 Havoc Pennington <hp@pobox.com> * gconf/gconf-changeset.c: make the internal functions static * gconf/gconf-internals.c (byte_type): make static (get_hostname): remove * gconf/gconfd.c (add_client): set the maximum connection buffer to a reasonable-size value in order to handle locked-up clients. * backends/xml-entry.c (node_set_schema_value): opacity fixes * gconf/gconftool.c (list_pairs_in_dir): opacity fixes * gconf/gconf.c: opacity fixes (gconf_engine_get_for_address): remove the g_warning about using this function; the change notification is a bit broken but maybe it's still useful. * gconf/gconf-sources.c: opacity fixes * gconf/gconf-database.c: namespace fixes * gconf/gconf-internals.h: namespace some things * gconf/gconf-internals.c: opacity fixes (fill_corba_schema_from_gconf_schema): make static (corba_schema_from_gconf_schema): make static * gconf/gconf-schema.c: do groundwork to make GConfSchema opaque, and fix some lack of spaces before parens * gconf/gconf-value.c: do groundwork to make GConfEntry mostly opaque (implement with GConfRealEntry)
* Use g_ascii_strcasecmp instead of g_strcasecmp. Replace g_main_* withDave Camp2002-02-151-4/+4
| | | | | | | | | | | | | 2002-02-14 Dave Camp <dave@ximian.com> * gconf/gconf.c: (gconf_string_to_enum): Use g_ascii_strcasecmp instead of g_strcasecmp. * gconf/gconfd.c: (gconf_main), (gconf_main_quit): Replace g_main_* with g_main_loop_*. * examples/simple-controller.c: (main): Use g_signal_connect instead of gtk_signal_connect. * examples/simple-view.c: (key_changed_callback): Use gtk_label_set_text instead of gtk_label_set.
* Got rid of extra unneeded -I directives.Darin Adler2001-08-261-2/+1
| | | | | | | | | | | | | | | | * backends/Makefile.am: * examples/Makefile.am: * gconf-editor/Makefile.am: * tests/Makefile.am: * wrappers/guile/Makefile.am: Got rid of extra unneeded -I directives. * examples/basic-gconf-app.c: * examples/simple-controller.c: * examples/simple-view.c: Changed includes to use the normal <gconf/*> format, because that is both better for examples, and works fine when building gconf too, without any special -I trickery.
* Update some docsHavoc Pennington2000-09-171-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-09-16 Havoc Pennington <hp@pobox.com> * doc/gconf/tmpl/gconf-value.sgml: Update some docs * wrappers/gtk/gconf-client.c (notify_listeners_callback): Update to reflect new callback signature for GConfClientNotifyFunc * gconf/gconf-sources.c (gconf_sources_set_value): Make it an error to if we try to write a value for a non-writable source. This is new; it used to silently fail. * gconf/gconf-database.c (gconf_database_notify_listeners): Add is_writable here * gconf/GConf.idl: Add writable flag to notification * gconf/gconf.h: Update GConfNotifyFunc to have fewer args, and a GConfEntry is just passed in (since I was going to have to add an is_writable arg, and passing in a GConfEntry gives us future extensibility against this sort of thing) BREAKS USER CODE, many apologies. * wrappers/gtk/gconf-client.c (gconf_client_get_entry): Update to reflect GConfEngine changes * gconf/gconf.c (gconf_engine_all_entries): Get the writability stuff (gconf_engine_get_full): rename to gconf_value_get_entry and return an entry; drop the is_default argument. * gconf/gconf-sources.c (gconf_sources_query_value): Implement finding out if a value is writable (gconf_sources_all_entries): Implement setting is_writable flag on the entries * gconf/gconf-value.c (gconf_entry_new_nocopy): Default to the entry being writable * gconf/gconf-database.c: Change to match IDL changes * gconf/GConf.idl (lookup_with_locale): Add out param for writability (all_entries): Add out param for writability * gconf/gconf-value.h: Add is_writable field to GConfEntry (gconf_entry_get_is_writable): Add this * wrappers/gtk/gconf-client.c (gconf_client_key_is_writable): Add the matching stub here * gconf/gconf.c (gconf_engine_key_is_writable): Go ahead and add this function so we can implement it later, but it always returns TRUE at the moment. * gconf/gconf-changeset.c (gconf_change_set_set_user_data, gconf_change_set_get_user_data): Add user data for language bindings * gconf/gconf.c (gconf_engine_set_user_data, gconf_engine_get_user_data): Add user data for language bindings
* s/gconf_meta_info_schema/gconf_meta_info_get_schema/g;Havoc Pennington2000-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-09-13 Havoc Pennington <hp@redhat.com> * More renaming: s/gconf_meta_info_schema/gconf_meta_info_get_schema/g; s/gconf_meta_info_mod_user/gconf_meta_info_get_mod_user/g; s/gconf_meta_info_mod_time/gconf_meta_info_mod_time/g; s/gconf_entry_key/gconf_entry_get_key/g; s/gconf_entry_value/gconf_entry_get_value/g; s/gconf_entry_schema_name/gconf_entry_get_schema_name/g; s/gconf_entry_is_default/gconf_entry_get_is_default/g; s/gconf_value_string/gconf_value_get_string/g; s/gconf_value_int/gconf_value_get_int/g; s/gconf_value_float/gconf_value_get_float/g; s/gconf_value_list_type/gconf_value_get_list_type/g; s/gconf_value_list/gconf_value_get_list/g; s/gconf_value_car/gconf_value_get_car/g; s/gconf_value_cdr/gconf_value_get_cdr/g; s/gconf_value_bool/gconf_value_get_bool/g; s/gconf_value_schema/gconf_value_get_schema/g; s/gconf_schema_type/gconf_schema_get_type/g; s/gconf_schema_list_type/gconf_schema_get_list_type/g; s/gconf_schema_car_type/gconf_schema_get_car_type/g; s/gconf_schema_cdr_type/gconf_schema_get_cdr_type/g; s/gconf_schema_locale/gconf_schema_get_locale/g; s/gconf_schema_short_desc/gconf_schema_get_short_desc/g; s/gconf_schema_long_desc/gconf_schema_get_long_desc/g; s/gconf_schema_owner/gconf_schema_get_owner/g; s/gconf_schema_default_value/gconf_schema_get_default_value/g;
* 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
* exit on error.Havoc Pennington2000-03-081-2/+3
| | | | | | | | | | 2000-03-08 Havoc Pennington <hp@redhat.com> * gconf/gconf.c (gconf_init): exit on error. * examples/simple-controller.c (main): fix gconf_init() error * examples/simple-view.c (main): fix gconf_init() error
* Add the examplesHavoc Pennington2000-03-061-1/+2
| | | | | | | | | | | 2000-03-06 Havoc Pennington <hp@redhat.com> * doc/intro-article.sgml: Add the examples * examples/simple-view.c: Change include to work before we install. * examples/simple-controller.c: ditto
* intro article updatesHavoc Pennington2000-03-011-4/+12
|
* Add new examples Two simple new examplesHavoc Pennington2000-02-271-0/+90
2000-02-26 Havoc Pennington <hp@pobox.com> * examples/Makefile.am: Add new examples * examples/simple-view.c, examples/simple-controller.c: Two simple new examples