[gnome-settings-daemon/gnome-3-8] cursor: set error if we don't have the necessary X support



commit 2ea471a789784badff32f50df8a35e2ffd660158
Author: Emilio Pozuelo Monfort <pochu27 gmail com>
Date:   Wed Mar 27 16:16:08 2013 +0100

    cursor: set error if we don't have the necessary X support
    
    Otherwise we crash in impl_activate()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696707

 plugins/cursor/gsd-cursor-manager.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/cursor/gsd-cursor-manager.c b/plugins/cursor/gsd-cursor-manager.c
index 16b8336..f97a098 100644
--- a/plugins/cursor/gsd-cursor-manager.c
+++ b/plugins/cursor/gsd-cursor-manager.c
@@ -284,12 +284,14 @@ gsd_cursor_manager_start (GsdCursorManager  *manager,
         gnome_settings_profile_start (NULL);
 
         if (supports_cursor_xfixes () == FALSE) {
-                g_debug ("XFixes cursor extension not available, will not hide the cursor");
+                g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+                             "XFixes cursor extension not available");
                 return FALSE;
         }
 
         if (supports_xinput_devices () == FALSE) {
-                g_debug ("XInput support not available, will not hide the cursor");
+                g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+                             "XInput support not available");
                 return FALSE;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]