[gnome-shell] shell-js: Adapt to new gjs interface



commit 11d997c42bb265d29aec84b88ea9ecdd51a2dfe9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue May 7 14:35:27 2013 -0400

    shell-js: Adapt to new gjs interface

 src/shell-js.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/shell-js.c b/src/shell-js.c
index 8267fdc..149dcd0 100644
--- a/src/shell-js.c
+++ b/src/shell-js.c
@@ -54,14 +54,11 @@ shell_js_add_extension_importer (const char  *target_object_script,
                          0,
                          &target_object))
     {
-      char *message;
-      gjs_log_exception(context,
-                        &message);
+      gjs_log_exception(context);
       g_set_error(error,
                   G_IO_ERROR,
                   G_IO_ERROR_FAILED,
-                  "%s", message ? message : "(unknown)");
-      g_free(message);
+                  "Unable to import %s", target_object_script);
       goto out;
     }
 


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