aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-09-05 16:54:36 -0400
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-09-05 16:54:36 -0400
commite9fcecdeba5c70c2035d47ac20c6fb433b2471af (patch)
treec7c51aa0f74177fe31f1e5be133e1f626ed373e9
parentAdd timedated implementation (diff)
downloadopenrc-settingsd-e9fcecdeba5c70c2035d47ac20c6fb433b2471af.tar.gz
openrc-settingsd-e9fcecdeba5c70c2035d47ac20c6fb433b2471af.tar.bz2
openrc-settingsd-e9fcecdeba5c70c2035d47ac20c6fb433b2471af.zip
Forgot to set data->invocation
-rw-r--r--src/timedated.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timedated.c b/src/timedated.c
index bb16cf0..6247679 100644
--- a/src/timedated.c
+++ b/src/timedated.c
@@ -555,6 +555,7 @@ on_handle_set_local_rtc (OpenrcSettingsdTimedatedTimedate1 *timedate1,
else {
struct invoked_set_local_rtc *data;
data = g_new0 (struct invoked_set_local_rtc, 1);
+ data->invocation = invocation;
data->local_rtc = _local_rtc;
data->fix_system = fix_system;
check_polkit_async (g_dbus_method_invocation_get_sender (invocation), "org.freedesktop.timedate1.set-local-rtc", user_interaction, on_handle_set_local_rtc_authorized_cb, data);
@@ -617,6 +618,7 @@ on_handle_set_ntp (OpenrcSettingsdTimedatedTimedate1 *timedate1,
else {
struct invoked_set_ntp *data;
data = g_new0 (struct invoked_set_ntp, 1);
+ data->invocation = invocation;
data->use_ntp = _use_ntp;
check_polkit_async (g_dbus_method_invocation_get_sender (invocation), "org.freedesktop.timedate1.set-ntp", user_interaction, on_handle_set_ntp_authorized_cb, data);
}