diff options
| author | Jan D | 2010-11-14 12:46:00 +0100 |
|---|---|---|
| committer | Jan D | 2010-11-14 12:46:00 +0100 |
| commit | 1e60039597ddc46b2a70bcc924585d80a16ba1e5 (patch) | |
| tree | fb157b652f1baabca192c0cc14f787f97779c5a6 /src | |
| parent | 545aad4c002373a625fc12bd2a515d90ae9ba712 (diff) | |
| download | emacs-1e60039597ddc46b2a70bcc924585d80a16ba1e5.tar.gz emacs-1e60039597ddc46b2a70bcc924585d80a16ba1e5.zip | |
Fix link error on Fedora 14: newer GConf don't use g_type_*.
* configure.in (HAVE_GCONF): Check for g_type_init if GConf is found.
* src/config.in (HAVE_G_TYPE_INIT): New symbol.
* src/xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.in | 6 | ||||
| -rw-r--r-- | src/xsettings.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/config.in b/src/config.in index 90098719511..f7c5bbc7daf 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -292,6 +292,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 292 | /* Define to 1 if GTK can handle more than one display. */ | 292 | /* Define to 1 if GTK can handle more than one display. */ |
| 293 | #undef HAVE_GTK_MULTIDISPLAY | 293 | #undef HAVE_GTK_MULTIDISPLAY |
| 294 | 294 | ||
| 295 | /* Define to 1 if you have the `g_type_init' function. */ | ||
| 296 | #undef HAVE_G_TYPE_INIT | ||
| 297 | |||
| 295 | /* Define to 1 if netdb.h declares h_errno. */ | 298 | /* Define to 1 if netdb.h declares h_errno. */ |
| 296 | #undef HAVE_H_ERRNO | 299 | #undef HAVE_H_ERRNO |
| 297 | 300 | ||
| @@ -334,9 +337,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 334 | /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ | 337 | /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ |
| 335 | #undef HAVE_LANGINFO_CODESET | 338 | #undef HAVE_LANGINFO_CODESET |
| 336 | 339 | ||
| 337 | /* Define to 1 if the directory /usr/lib64 exists. */ | ||
| 338 | #undef HAVE_LIB64_DIR | ||
| 339 | |||
| 340 | /* Define to 1 if you have the `com_err' library (-lcom_err). */ | 340 | /* Define to 1 if you have the `com_err' library (-lcom_err). */ |
| 341 | #undef HAVE_LIBCOM_ERR | 341 | #undef HAVE_LIBCOM_ERR |
| 342 | 342 | ||
diff --git a/src/xsettings.c b/src/xsettings.c index 945007db2f0..de37063c741 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -563,7 +563,9 @@ init_gconf () | |||
| 563 | int i; | 563 | int i; |
| 564 | char *s; | 564 | char *s; |
| 565 | 565 | ||
| 566 | #ifdef HAVE_G_TYPE_INIT | ||
| 566 | g_type_init (); | 567 | g_type_init (); |
| 568 | #endif | ||
| 567 | gconf_client = gconf_client_get_default (); | 569 | gconf_client = gconf_client_get_default (); |
| 568 | s = gconf_client_get_string (gconf_client, SYSTEM_MONO_FONT, NULL); | 570 | s = gconf_client_get_string (gconf_client, SYSTEM_MONO_FONT, NULL); |
| 569 | if (s) | 571 | if (s) |