[gnome-settings-daemon] wacom: Don't crash when gnome_rr_screen_new_async() fails



commit 73eb93291ee714cb2578f791fba2d45130880223
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 5 13:40:56 2013 -0300

    wacom: Don't crash when gnome_rr_screen_new_async() fails
    
    We were trying to print the error, but it was never actually set.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707566

 plugins/wacom/gsd-wacom-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 39489de..817a155 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -1775,7 +1775,7 @@ on_rr_screen_acquired (GObject      *object,
         GsdWacomManager *manager = user_data;
         GError *error = NULL;
 
-        manager->priv->rr_screen = gnome_rr_screen_new_finish (result, NULL);
+        manager->priv->rr_screen = gnome_rr_screen_new_finish (result, &error);
         if (manager->priv->rr_screen == NULL) {
                 g_warning ("Failed to create GnomeRRScreen: %s", error->message);
                 g_error_free (error);


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