[gdm/wip/slave-connection: 3/29] daemon: drop CLOSED signal



commit 68dfc540faf6c5bd354dae9918f22b1b3ffd44f5
Author: Ray Strode <rstrode redhat com>
Date:   Fri Jul 6 18:57:50 2012 -0400

    daemon: drop CLOSED signal
    
    It was only used by now-removed code.

 daemon/gdm-session-private.h |    1 -
 daemon/gdm-session.c         |   18 ------------------
 daemon/gdm-session.h         |    1 -
 daemon/gdm-simple-slave.c    |   11 -----------
 4 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/daemon/gdm-session-private.h b/daemon/gdm-session-private.h
index fb1f972..7785371 100644
--- a/daemon/gdm-session-private.h
+++ b/daemon/gdm-session-private.h
@@ -71,7 +71,6 @@ void             _gdm_session_session_exited               (GdmSession   *sessio
                                                             int           exit_code);
 void             _gdm_session_session_died                 (GdmSession   *session,
                                                             int           signal_number);
-void             _gdm_session_closed                       (GdmSession   *session);
 
 /* user settings read from ~/.dmrc / system defaults */
 void             _gdm_session_default_language_name_changed     (GdmSession   *session,
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 5ba9fd1..b91ec63 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -41,7 +41,6 @@ enum {
         AUTHORIZATION_FAILED,
         ACCREDITED,
         ACCREDITATION_FAILED,
-        CLOSED,
         INFO,
         PROBLEM,
         INFO_QUERY,
@@ -506,16 +505,6 @@ gdm_session_class_init (gpointer g_iface)
                               G_TYPE_NONE,
                               1,
                               G_TYPE_INT);
-        signals [CLOSED] =
-                g_signal_new ("closed",
-                              iface_type,
-                              G_SIGNAL_RUN_FIRST,
-                              G_STRUCT_OFFSET (GdmSessionIface, closed),
-                              NULL,
-                              NULL,
-                              g_cclosure_marshal_VOID__VOID,
-                              G_TYPE_NONE,
-                              0);
         signals [SELECTED_USER_CHANGED] =
                 g_signal_new ("selected-user-changed",
                               iface_type,
@@ -752,13 +741,6 @@ _gdm_session_conversation_stopped (GdmSession   *session,
 }
 
 void
-_gdm_session_closed (GdmSession   *session)
-{
-        g_return_if_fail (GDM_IS_SESSION (session));
-        g_signal_emit (session, signals [CLOSED], 0);
-}
-
-void
 _gdm_session_default_language_name_changed (GdmSession   *session,
                                             const char   *language_name)
 {
diff --git a/daemon/gdm-session.h b/daemon/gdm-session.h
index 17accb2..479d8e3 100644
--- a/daemon/gdm-session.h
+++ b/daemon/gdm-session.h
@@ -146,7 +146,6 @@ struct _GdmSessionIface
                                               const char   *service_name);
         void (* conversation_stopped)        (GdmSession   *session,
                                               const char   *service_name);
-        void (* closed)                      (GdmSession   *session);
         void (* selected_user_changed)       (GdmSession   *session,
                                               const char   *text);
 
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index bf48246..e218c66 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -872,12 +872,6 @@ create_new_session (GdmSimpleSlave *slave)
                           "session-died",
                           G_CALLBACK (on_session_died),
                           slave);
-#if 0
-        g_signal_connect (slave->priv->session,
-                          "closed",
-                          G_CALLBACK (on_session_closed),
-                          slave);
-#endif
         g_signal_connect (slave->priv->session,
                           "selected-user-changed",
                           G_CALLBACK (on_session_selected_user_changed),
@@ -969,11 +963,6 @@ destroy_session (GdmSimpleSlave *slave)
         g_signal_handlers_disconnect_by_func (slave->priv->session,
                                               G_CALLBACK (on_session_died),
                                               slave);
-#if 0
-        g_signal_handlers_disconnect_by_func (slave->priv->session,
-                                              G_CALLBACK (on_session_closed),
-                                              slave);
-#endif
         g_signal_handlers_disconnect_by_func (slave->priv->session,
                                               G_CALLBACK (on_session_selected_user_changed),
                                               slave);



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