mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* xsettings.c (store_monospaced_changed): Define only if used.
This commit is contained in:
parent
270768cd6e
commit
490011a6cc
2 changed files with 9 additions and 4 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
Fix recently-introduced minor problems.
|
||||
* term.c (init_tty): Remove unused local.
|
||||
* xsettings.c (store_monospaced_changed): Define this function only
|
||||
if (defined HAVE_GSETTINGS || define defined HAVE_GCONF), as it's
|
||||
not used otherwise.
|
||||
|
||||
2011-07-12 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue