diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-24 19:59:05 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-24 19:59:05 +0200 |
commit | 3be92767b85acabf1f30e010cca425d322b89de2 (patch) | |
tree | a2b95e572dad332a349cc9b17c1c7f2dac33499c /src/gpm-button.c | |
parent | 147f55213c2592b118d16bb813041768769cf61b (diff) | |
download | mate-power-manager-3be92767b85acabf1f30e010cca425d322b89de2.tar.bz2 mate-power-manager-3be92767b85acabf1f30e010cca425d322b89de2.tar.xz |
Code improvements and deprecation fixesmate-power-manager-1.6.2
Diffstat (limited to 'src/gpm-button.c')
-rw-r--r-- | src/gpm-button.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpm-button.c b/src/gpm-button.c index 3c70ca1..1e38173 100644 --- a/src/gpm-button.c +++ b/src/gpm-button.c @@ -255,13 +255,13 @@ gpm_button_class_init (GpmButtonClass *klass) gboolean gpm_button_is_lid_closed (GpmButton *button) { - g_return_val_if_fail (GPM_IS_BUTTON (button), FALSE); - GDBusProxy *proxy; GVariant *res, *inner; gboolean lid; GError *error = NULL; + g_return_val_if_fail (GPM_IS_BUTTON (button), FALSE); + if (LOGIND_RUNNING()) { proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, |