summaryrefslogtreecommitdiff
path: root/src/linux/up-input.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-04-19 17:05:59 +0100
committerRichard Hughes <richard@hughsie.com>2010-04-19 17:05:59 +0100
commit3dee7b22f80ff4d087e0314d103e5a8798ebe064 (patch)
tree187bd806cc94b408bc5847c26e3fee1b54e3167b /src/linux/up-input.c
parent5f1e64709b62517e4a925e952d255ab16d818df0 (diff)
downloadupower-3dee7b22f80ff4d087e0314d103e5a8798ebe064.tar.gz
Provide UpDaemon with C setters rather than relying on GObject properties
Diffstat (limited to 'src/linux/up-input.c')
-rw-r--r--src/linux/up-input.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/linux/up-input.c b/src/linux/up-input.c
index 2cd6ec8..1f88c79 100644
--- a/src/linux/up-input.c
+++ b/src/linux/up-input.c
@@ -152,9 +152,7 @@ up_input_event_io (GIOChannel *channel, GIOCondition condition, gpointer data)
/* are we set */
ret = test_bit (input->priv->event.code, bitmask);
- g_object_set (input->priv->daemon,
- "lid-is-closed", ret,
- NULL);
+ up_daemon_set_lid_is_closed (input->priv->daemon, ret);
}
out:
return TRUE;
@@ -258,9 +256,7 @@ up_input_coldplug (UpInput *input, UpDaemon *daemon, GUdevDevice *d)
/* set if we are closed */
egg_debug ("using %s for lid event", native_path);
- g_object_set (input->priv->daemon,
- "lid-is-closed", test_bit (SW_LID, bitmask),
- NULL);
+ up_daemon_set_lid_is_closed (input->priv->daemon, test_bit (SW_LID, bitmask));
out:
g_free (path);
g_free (contents);