Add GSettings support (GConf is going away).
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 30 Jun 2011 14:00:26 +0000 (16:00 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 30 Jun 2011 14:00:26 +0000 (16:00 +0200)
commit9851bfc58dcf38d05e469112790c514c3fd6fbf7
tree1931ced33d357c5100d1ce73a3e0a07e28eb7b98
parent656e1aab13d416dc06ca1138997e6396317321bc
Add GSettings support (GConf is going away).

* configure.in (gsettings): New option and check for GSettings.

* src/Makefile.in (SETTINGS_CFLAGS, SETTINGS_LIBS): Renamed from
GCONF_CFLAGS/LIBS.

* src/xsettings.c: Include glib.h if HAVE_GSETTINGS.
Let HAVE_GSETTINGS override HAVE_GCONF.
(store_monospaced_changed): New function.
(EMACS_SETTINGS): A new type derived from GObject to handle
GSettings notifications.
(emacs_settings_constructor, emacs_settings_get_property)
(emacs_settings_set_property, emacs_settings_class_init):
New functions.
(gsettings_client, gsettings_obj): New variables.
(GSETTINGS_SCHEMA): New define.
(something_changedCB): Call store_monospaced_changed.
(init_gsettings): New function.
(xsettings_initialize): Call init_gsettings.
(syms_of_xsettings): Initialize gsettings_client, gsettings_obj
to NULL.
ChangeLog
configure.in
src/ChangeLog
src/Makefile.in
src/xsettings.c