[gdm/display-configuration] Revert name proxy_hal to proxy, use proxy_ck in disconnect_from_ck()
- From: Halton Huo <haltonhuo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm/display-configuration] Revert name proxy_hal to proxy, use proxy_ck in disconnect_from_ck()
- Date: Thu, 28 Jan 2010 06:06:59 +0000 (UTC)
commit 6cc56ebae4a199c222a4c5f0d10c3025f58a9307
Author: Halton Huo <halton huo sun com>
Date: Thu Jan 28 13:55:02 2010 +0800
Revert name proxy_hal to proxy, use proxy_ck in disconnect_from_ck()
daemon/gdm-local-display-factory.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 6512f9b..27370fd 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -69,7 +69,7 @@
struct GdmLocalDisplayFactoryPrivate
{
DBusGConnection *connection;
- DBusGProxy *proxy_hal;
+ DBusGProxy *proxy;
DBusGProxy *proxy_ck;
GHashTable *displays;
GHashTable *displays_by_session;
@@ -1024,11 +1024,11 @@ register_factory (GdmLocalDisplayFactory *factory)
static gboolean
connect_to_hal (GdmLocalDisplayFactory *factory)
{
- factory->priv->proxy_hal = dbus_g_proxy_new_for_name (factory->priv->connection,
- HAL_DBUS_NAME,
- HAL_DBUS_MANAGER_PATH,
- HAL_DBUS_MANAGER_INTERFACE);
- if (factory->priv->proxy_hal == NULL) {
+ factory->priv->proxy = dbus_g_proxy_new_for_name (factory->priv->connection,
+ HAL_DBUS_NAME,
+ HAL_DBUS_MANAGER_PATH,
+ HAL_DBUS_MANAGER_INTERFACE);
+ if (factory->priv->proxy == NULL) {
g_warning ("Couldn't create proxy for HAL Manager");
return FALSE;
}
@@ -1039,8 +1039,8 @@ connect_to_hal (GdmLocalDisplayFactory *factory)
static void
disconnect_from_hal (GdmLocalDisplayFactory *factory)
{
- if (factory->priv->proxy_hal == NULL) {
- g_object_unref (factory->priv->proxy_hal);
+ if (factory->priv->proxy == NULL) {
+ g_object_unref (factory->priv->proxy);
}
}
@@ -1080,8 +1080,8 @@ connect_to_ck (GdmLocalDisplayFactory *factory)
static void
disconnect_from_ck (GdmLocalDisplayFactory *factory)
{
- if (factory->priv->proxy_hal == NULL) {
- g_object_unref (factory->priv->proxy_hal);
+ if (factory->priv->proxy_ck == NULL) {
+ g_object_unref (factory->priv->proxy_ck);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]