aboutsummaryrefslogtreecommitdiffstats
path: root/src/xsettings.c
diff options
context:
space:
mode:
authorPo Lu2022-05-17 18:18:32 +0800
committerPo Lu2022-05-17 18:18:32 +0800
commit38dfe9d2f7aea4ecfe06ec54fef6f5b5fe1f72e4 (patch)
tree2a0375ad63a0ba178fcf4d8b0511490e32af65ed /src/xsettings.c
parent1a6a4614ceb9d868ccef023973eb7d28aae85b97 (diff)
downloademacs-38dfe9d2f7aea4ecfe06ec54fef6f5b5fe1f72e4.tar.gz
emacs-38dfe9d2f7aea4ecfe06ec54fef6f5b5fe1f72e4.zip
Fix unused function warning on X
* src/xsettings.c (xg_settings_key_valid_p): Surround with HAVE_PGTK and HAVE_GSETTINGS.
Diffstat (limited to 'src/xsettings.c')
-rw-r--r--src/xsettings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xsettings.c b/src/xsettings.c
index 45341d8ebd5..c29a844e0a8 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -230,6 +230,8 @@ static cairo_font_options_t *font_options;
230 230
231static GSettings *gsettings_client; 231static GSettings *gsettings_client;
232 232
233#if defined HAVE_PGTK && defined HAVE_GSETTINGS
234
233static bool 235static bool
234xg_settings_key_valid_p (GSettings *settings, const char *key) 236xg_settings_key_valid_p (GSettings *settings, const char *key)
235{ 237{
@@ -253,6 +255,8 @@ xg_settings_key_valid_p (GSettings *settings, const char *key)
253#endif 255#endif
254} 256}
255 257
258#endif
259
256#ifdef HAVE_PGTK 260#ifdef HAVE_PGTK
257/* Store an event for re-rendering of the fonts. */ 261/* Store an event for re-rendering of the fonts. */
258static void 262static void