[gtk+] settings: Wayland-only systems also use fontconfig
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] settings: Wayland-only systems also use fontconfig
- Date: Tue, 5 May 2015 10:25:04 +0000 (UTC)
commit 487332c458b8e6d24f00afbdf05c2ae2f615af74
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]