[gtk+/gtk-3-16] settings: Wayland-only systems also use fontconfig
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] settings: Wayland-only systems also use fontconfig
- Date: Mon, 11 May 2015 18:25:07 +0000 (UTC)
commit db4b1e62fe8aa247668f82c1abfa167312b936fa
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon May 4 13:28:14 2015 +0100
settings: Wayland-only systems also use fontconfig
We're relying on the X11 backend being compiled in, but that may not be
the case.
https://bugzilla.gnome.org/show_bug.cgi?id=748782
gtk/gtksettings.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index a23730f..2356715 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -3030,7 +3030,7 @@ settings_update_font_options (GtkSettings *settings)
static gboolean
settings_update_fontconfig (GtkSettings *settings)
{
-#ifdef GDK_WINDOWING_X11
+#if defined(GDK_WINDOWING_X11) || defined(GDK_WINDOWING_WAYLAND)
static guint last_update_timestamp;
static gboolean last_update_needed;
@@ -3064,7 +3064,7 @@ settings_update_fontconfig (GtkSettings *settings)
return last_update_needed;
#else
return FALSE;
-#endif /* GDK_WINDOWING_X11 */
+#endif /* GDK_WINDOWING_X11 || GDK_WINDOWING_WAYLAND */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]