aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2013-09-16 20:17:35 +0200
committerJan Djärv2013-09-16 20:17:35 +0200
commit3f386383dc0459fb857c0831aeecb9072f7085d7 (patch)
tree892b17cd2a40f4b86bb2a7e9b07cee83f1a895ce
parent6434e34375dde73a575c5f88970b2793a7cb7fe6 (diff)
downloademacs-3f386383dc0459fb857c0831aeecb9072f7085d7.tar.gz
emacs-3f386383dc0459fb857c0831aeecb9072f7085d7.zip
* xsettings.c (init_gconf, init_gsettings): Check for Glib 2.36.0
before calling g_type_init.
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xsettings.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8b9c1ca904d..ceae9e1a63e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12013-09-16 Jan Djärv <jan.h.d@swipnet.se> 12013-09-16 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * xsettings.c (init_gconf, init_gsettings): Check for Glib 2.36.0
4 before calling g_type_init.
5
3 * font.c (syms_of_font): Move call to syms_of_(ns|mac)font ... 6 * font.c (syms_of_font): Move call to syms_of_(ns|mac)font ...
4 7
5 * nsterm.m (syms_of_nsterm): ... to here. 8 * nsterm.m (syms_of_nsterm): ... to here.
diff --git a/src/xsettings.c b/src/xsettings.c
index b9813e2b369..a64e09c92e7 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -804,8 +804,10 @@ init_gsettings (void)
804 int schema_found = 0; 804 int schema_found = 0;
805 805
806#ifdef HAVE_G_TYPE_INIT 806#ifdef HAVE_G_TYPE_INIT
807#if ! GLIB_CHECK_VERSION (2, 36, 0)
807 g_type_init (); 808 g_type_init ();
808#endif 809#endif
810#endif
809 811
810 schemas = g_settings_list_schemas (); 812 schemas = g_settings_list_schemas ();
811 if (schemas == NULL) return; 813 if (schemas == NULL) return;
@@ -861,8 +863,10 @@ init_gconf (void)
861 char *s; 863 char *s;
862 864
863#ifdef HAVE_G_TYPE_INIT 865#ifdef HAVE_G_TYPE_INIT
866#if ! GLIB_CHECK_VERSION (2, 36, 0)
864 g_type_init (); 867 g_type_init ();
865#endif 868#endif
869#endif
866 870
867 gconf_client = gconf_client_get_default (); 871 gconf_client = gconf_client_get_default ();
868 gconf_client_set_error_handling (gconf_client, GCONF_CLIENT_HANDLE_NONE); 872 gconf_client_set_error_handling (gconf_client, GCONF_CLIENT_HANDLE_NONE);