From 3be92767b85acabf1f30e010cca425d322b89de2 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 24 Jul 2013 19:59:05 +0200 Subject: Code improvements and deprecation fixes --- src/gpm-control.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gpm-control.c') diff --git a/src/gpm-control.c b/src/gpm-control.c index d7ba36c..cb84814 100644 --- a/src/gpm-control.c +++ b/src/gpm-control.c @@ -95,7 +95,7 @@ gpm_control_error_quark (void) static gboolean gpm_control_systemd_shutdown (void) { GError *error = NULL; - DBusGProxy *proxy; + GDBusProxy *proxy; egg_debug ("Requesting systemd to shutdown"); proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, @@ -217,8 +217,7 @@ gpm_control_suspend (GpmControl *control, GError **error) #endif /* WITH_KEYRING */ GError *dbus_error = NULL; - DBusGProxy *proxy; - GVariant *res; + GDBusProxy *proxy; screensaver = gpm_screensaver_new (); @@ -329,7 +328,7 @@ gpm_control_hibernate (GpmControl *control, GError **error) #endif /* WITH_KEYRING */ GError *dbus_error = NULL; - DBusGProxy *proxy; + GDBusProxy *proxy; screensaver = gpm_screensaver_new (); -- cgit v1.2.1