aboutsummaryrefslogtreecommitdiffstats
path: root/src/xsettings.c
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>2011-07-12 09:47:56 -0700
committerPaul Eggert <[email protected]>2011-07-12 09:47:56 -0700
commit490011a6cc38e11c81697c8f5e7353dcd3d81187 (patch)
treefc74a240412afc0a8934264b53410e58340b41b7 /src/xsettings.c
parent270768cd6e5c704b0e1377b09d0f1691a5a11116 (diff)
* xsettings.c (store_monospaced_changed): Define only if used.
Diffstat (limited to 'src/xsettings.c')
-rw-r--r--src/xsettings.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xsettings.c b/src/xsettings.c
index 06718df5a3..dadbe68b4c 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -83,7 +83,7 @@ dpyinfo_valid (struct x_display_info *dpyinfo)
/* Store a monospace font change event if the monospaced font changed. */
-#ifdef HAVE_XFT
+#if defined HAVE_XFT && (defined HAVE_GSETTINGS || defined HAVE_GCONF)
static void
store_monospaced_changed (const char *newfont)
{
@@ -99,9 +99,11 @@ store_monospaced_changed (const char *newfont)
XCAR (first_dpyinfo->name_list_element));
}
}
+#endif
/* Store a font name change event if the font name changed. */
+#ifdef HAVE_XFT
static void
store_font_name_changed (const char *newfont)
{
@@ -252,7 +254,7 @@ something_changed_gsettingsCB (GSettings *settings,
g_variant_unref (val);
}
}
-#endif /* HAVE_XFT */
+#endif /* HAVE_XFT */
}
#endif /* HAVE_GSETTINGS */
@@ -441,14 +443,14 @@ parse_settings (unsigned char *prop,
bytes_parsed += 4; /* Skip serial for this value */
if (bytes_parsed > bytes) return BadLength;
- want_this =
+ want_this =
#ifdef HAVE_XFT
(nlen > 6 && strncmp (name, "Xft/", 4) == 0)
|| strcmp (XSETTINGS_FONT_NAME, name) == 0
||
#endif
strcmp (XSETTINGS_TOOL_BAR_STYLE, name) == 0;
-
+
switch (type)
{
case 0: /* Integer */