summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--polkitgtkmate/example.c2
-rw-r--r--polkitgtkmate/polkitlockbutton.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/polkitgtkmate/example.c b/polkitgtkmate/example.c
index ac36fe1..da1d2e4 100644
--- a/polkitgtkmate/example.c
+++ b/polkitgtkmate/example.c
@@ -147,7 +147,7 @@ int main(int argc, char* argv[])
system_bus_name_subject = polkit_system_bus_name_new(g_dbus_connection_get_unique_name(bus));
- unix_process_subject = polkit_unix_process_new(getpid());
+ unix_process_subject = polkit_unix_process_new_for_owner(getpid(), 0, -1);
error = NULL;
authority = polkit_authority_get_sync(NULL /* GCancellable* */, &error);
diff --git a/polkitgtkmate/polkitlockbutton.c b/polkitgtkmate/polkitlockbutton.c
index 757c34c..e1ad610 100644
--- a/polkitgtkmate/polkitlockbutton.c
+++ b/polkitgtkmate/polkitlockbutton.c
@@ -418,7 +418,7 @@ polkit_lock_button_constructed (GObject *object)
if (button->priv->subject == NULL)
{
- button->priv->subject = polkit_unix_process_new (getpid ());
+ button->priv->subject = polkit_unix_process_new_for_owner (getpid (), 0, -1);
}
/* synchronously check on construction - TODO: we could implement GAsyncInitable