Fix bad include.
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 30 Jun 2011 15:07:40 +0000 (17:07 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 30 Jun 2011 15:07:40 +0000 (17:07 +0200)
* xsettings.c: Include glib-object.h, gio/gio.h if HAVE_GSETTINGS.

src/ChangeLog
src/xsettings.c

index bd00b0f..dc51a26 100644 (file)
@@ -1,6 +1,6 @@
 2011-06-30  Jan Djärv  <jan.h.d@swipnet.se>
 
-       * xsettings.c: Include glib.h if HAVE_GSETTINGS.
+       * xsettings.c: Include glib-object.h, gio/gio.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
index 09a5d31..5df05e3 100644 (file)
@@ -34,9 +34,9 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <X11/Xproto.h>
 
-#define HAVE_GSETTINGS
 #ifdef HAVE_GSETTINGS
-#include <glib.h>
+#include <glib-object.h>
+#include <gio/gio.h>
 #else
 #ifdef HAVE_GCONF
 #include <gconf/gconf-client.h>