[gnome-session] gsm: Do not even care about error message in gsm_shell_init()



commit 559ae7984759a8e2b696f8e84383aa9195112812
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Feb 2 04:09:36 2011 +0100

    gsm: Do not even care about error message in gsm_shell_init()
    
    The newly added debug messages should be enough, and we know the shell
    won't be running yet at that time (unless a new object is created after
    startup, but that's not the case right now).

 gnome-session/gsm-shell.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/gnome-session/gsm-shell.c b/gnome-session/gsm-shell.c
index c1346b6..d9ef1e8 100644
--- a/gnome-session/gsm-shell.c
+++ b/gnome-session/gsm-shell.c
@@ -323,17 +323,9 @@ gsm_shell_on_name_owner_changed (DBusGProxy    *bus_proxy,
 static void
 gsm_shell_init (GsmShell *shell)
 {
-        GError *error;
-
         shell->priv = GSM_SHELL_GET_PRIVATE (shell);
 
-        error = NULL;
-
-        if (!gsm_shell_ensure_connection (shell, &error)) {
-                g_debug ("GsmShell: Could not connect to the shell: %s",
-                         error->message);
-                g_error_free (error);
-        }
+        gsm_shell_ensure_connection (shell, NULL);
 }
 
 static void



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