[gdm/wip/wayland-rebase: 6/9] daemon: rename slave_bus_proxy to slave_proxy



commit 82ad23a63d70ac24b2653f105ee36eafe087e570
Author: Ray Strode <rstrode redhat com>
Date:   Tue Sep 17 18:48:32 2013 -0400

    daemon: rename slave_bus_proxy to slave_proxy
    
    The _bus_ middle part of the name was only there to prevent ambiguity
    with the, then named "gdm-slave-proxy", but now named, gdm-slave-job class.

 daemon/gdm-display.c |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index f037655..bb5ca76 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -73,7 +73,7 @@ struct GdmDisplayPrivate
 
         GdmSlaveJob          *slave_job;
         char                 *slave_bus_name;
-        GdmDBusSlave         *slave_bus_proxy;
+        GdmDBusSlave         *slave_proxy;
         int                   slave_name_id;
         GDBusConnection      *connection;
         GdmDisplayAccessFile *user_access_file;
@@ -296,8 +296,8 @@ gdm_display_real_set_slave_bus_name_finish (GObject      *source_object,
 {
         GdmDisplay *display = user_data;
 
-        display->priv->slave_bus_proxy = GDM_DBUS_SLAVE (gdm_dbus_slave_proxy_new_finish (res, NULL));
-        g_object_bind_property (G_OBJECT (display->priv->slave_bus_proxy),
+        display->priv->slave_proxy = GDM_DBUS_SLAVE (gdm_dbus_slave_proxy_new_finish (res, NULL));
+        g_object_bind_property (G_OBJECT (display->priv->slave_proxy),
                                 "session-id",
                                 G_OBJECT (display),
                                 "session-id",
@@ -324,7 +324,7 @@ gdm_display_real_set_slave_bus_name (GdmDisplay *display,
                                                                        g_object_ref (display),
                                                                        NULL);
 
-        g_clear_object (&display->priv->slave_bus_proxy);
+        g_clear_object (&display->priv->slave_proxy);
         gdm_dbus_slave_proxy_new (display->priv->connection,
                                   G_DBUS_PROXY_FLAGS_NONE,
                                   name,
@@ -677,7 +677,6 @@ gdm_display_prepare (GdmDisplay *display)
         return ret;
 }
 
-
 static gboolean
 gdm_display_real_manage (GdmDisplay *display)
 {
@@ -1333,7 +1332,7 @@ gdm_display_open_session_sync (GdmDisplay    *display,
         char *address;
         int ret;
 
-        if (display->priv->slave_bus_proxy == NULL) {
+        if (display->priv->slave_proxy == NULL) {
                 g_set_error (error,
                              G_DBUS_ERROR,
                              G_DBUS_ERROR_ACCESS_DENIED,
@@ -1342,7 +1341,7 @@ gdm_display_open_session_sync (GdmDisplay    *display,
         }
 
         address = NULL;
-        ret = gdm_dbus_slave_call_open_session_sync (display->priv->slave_bus_proxy,
+        ret = gdm_dbus_slave_call_open_session_sync (display->priv->slave_proxy,
                                                      (int) pid_of_caller,
                                                      (int) uid_of_caller,
                                                      &address,
@@ -1367,7 +1366,7 @@ gdm_display_open_reauthentication_channel_sync (GdmDisplay    *display,
         char *address;
         int ret;
 
-        if (display->priv->slave_bus_proxy == NULL) {
+        if (display->priv->slave_proxy == NULL) {
                 g_set_error (error,
                              G_DBUS_ERROR,
                              G_DBUS_ERROR_ACCESS_DENIED,
@@ -1376,7 +1375,7 @@ gdm_display_open_reauthentication_channel_sync (GdmDisplay    *display,
         }
 
         address = NULL;
-        ret = gdm_dbus_slave_call_open_reauthentication_channel_sync (display->priv->slave_bus_proxy,
+        ret = gdm_dbus_slave_call_open_reauthentication_channel_sync (display->priv->slave_proxy,
                                                                       username,
                                                                       pid_of_caller,
                                                                       uid_of_caller,


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