summaryrefslogtreecommitdiff
path: root/polkitgtkmate/example.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-09-12 12:43:11 +0200
committerinfirit <[email protected]>2015-09-12 12:43:11 +0200
commitd07ecaa09c1890216b0056d506d1ce1ffed8f545 (patch)
tree81ab4297e326064f200637b9c8896f4405428935 /polkitgtkmate/example.c
parent0b6390e6af0b9f4f06f52988739c5741a8b3d82f (diff)
downloadmate-polkit-d07ecaa09c1890216b0056d506d1ce1ffed8f545.tar.bz2
mate-polkit-d07ecaa09c1890216b0056d506d1ce1ffed8f545.tar.xz
Replace deprecated polkit_unix_process_new
And replace it with polkit_unix_process_new_for_owner.
Diffstat (limited to 'polkitgtkmate/example.c')
-rw-r--r--polkitgtkmate/example.c2
1 files changed, 1 insertions, 1 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);