[gtk+] GtkSettings: fix compile warnings on != X11
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSettings: fix compile warnings on != X11
- Date: Tue, 27 Sep 2011 12:21:57 +0000 (UTC)
commit 27cbbc4a7d8e8f010b5b83f7563b6cc36926c8cb
Author: Michael Natterer <mitch lanedo com>
Date: Tue Sep 27 14:21:09 2011 +0200
GtkSettings: fix compile warnings on != X11
gtk/gtksettings.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 89e0118..495b685 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -2516,11 +2516,11 @@ settings_update_modules (GtkSettings *settings)
static void
settings_update_cursor_theme (GtkSettings *settings)
{
+#ifdef GDK_WINDOWING_X11
GdkDisplay *display = gdk_screen_get_display (settings->priv->screen);
gchar *theme = NULL;
gint size = 0;
-#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (display))
{
g_object_get (settings,
@@ -2644,6 +2644,8 @@ settings_update_fontconfig (GtkSettings *settings)
}
return last_update_needed;
+#else
+ return FALSE;
#endif /* GDK_WINDOWING_X11 */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]