+#define SOEXT ("." G_MODULE_SUFFIX)
+#endif
+
+#include "gtk/gtkimcontextinfo.h"
+#include "gtk/gtkversion.h"
+
+#define GDK_DISABLE_DEPRECATION_WARNINGS
+
+#include "gtk/deprecated/gtkrc.h"
+
+static void
+escape_string (GString *contents, const char *str)
+{
+ while (TRUE)
+ {
+ char c = *str++;
+
+ switch (c)
+ {
+ case '\0':
+ goto done;
+ case '\n':
+ g_string_append (contents, "\\n");
+ break;
+ case '\"':
+ g_string_append (contents, "\\\"");
+ break;
+#ifdef G_OS_WIN32
+ /* Replace backslashes in path with forward slashes, so that
+ * it reads in without problems.
+ */
+ case '\\':
+ g_string_append (contents, "/");
+ break;