[gtk+/gtk-3-10] Suppress cursor theme unsupported warning when there's no theme.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] Suppress cursor theme unsupported warning when there's no theme.
- Date: Thu, 10 Oct 2013 22:41:21 +0000 (UTC)
commit 010f30ecf2e5324b6734bdeabb8e230e17096ff2
Author: John Ralls <jralls ceridwen us>
Date: Thu Oct 10 15:35:41 2013 -0700
Suppress cursor theme unsupported warning when there's no theme.
gtk/gtksettings.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 627d8e6..484a5c1 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -2699,7 +2699,8 @@ settings_update_cursor_theme (GtkSettings *settings)
"gtk-cursor-theme-name", &theme,
"gtk-cursor-theme-size", &size,
NULL);
-
+ if (theme == NULL)
+ return;
#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (display))
gdk_x11_display_set_cursor_theme (display, theme, size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]