diff options
author | David Zeuthen <davidz@redhat.com> | 2011-03-03 13:13:11 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-03-03 13:18:05 -0500 |
commit | 02cebdb060e76e6d176f05ef24968e6d17225edb (patch) | |
tree | ad0bf3810442b299a21e5014364ab6733ead4475 /src/polkitbackend/polkitbackendactionlookup.h | |
parent | 76792accc8c846059b551dfba91ec3cd24d45d71 (diff) |
Deprecated PolkitBackendActionLookup
Instead, pass the untranslated message as polkit.message and set the
gettext domain on polkit.gettext_domain. For printf()-style messages,
occurences of the form $(name_of_key) in the translated version of
polkit.message are expanded with the value of the property
name_of_key. See the pkexec(1) mechanism for an example of how to use
this.
Additionally, the property polkit.icon_name can be set to the
icon. Note that not all authentication agents use this - in
particular, gnome-shell does not.
It is no longer possible to set the details to be shown in the
authentication dialog. It was never a good idea to hide information
there anyway. Instead, the mechanism should format a meaningful
message.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'src/polkitbackend/polkitbackendactionlookup.h')
-rw-r--r-- | src/polkitbackend/polkitbackendactionlookup.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/polkitbackend/polkitbackendactionlookup.h b/src/polkitbackend/polkitbackendactionlookup.h index 1fbae16..254507b 100644 --- a/src/polkitbackend/polkitbackendactionlookup.h +++ b/src/polkitbackend/polkitbackendactionlookup.h @@ -88,6 +88,7 @@ struct _PolkitBackendActionLookupIface PolkitActionDescription *action_description); }; +#ifdef _POLKIT_BACKEND_ACTION_LOOKUP_NO_DEPRECATED_WARNING GType polkit_backend_action_lookup_get_type (void) G_GNUC_CONST; gchar *polkit_backend_action_lookup_get_message (PolkitBackendActionLookup *lookup, const gchar *action_id, @@ -101,6 +102,21 @@ PolkitDetails *polkit_backend_action_lookup_get_details (PolkitBackendActionLo const gchar *action_id, PolkitDetails *details, PolkitActionDescription *action_description); +#else +GType polkit_backend_action_lookup_get_type (void) G_GNUC_CONST G_GNUC_DEPRECATED_FOR (use_PolkitDetails_instead); +gchar *polkit_backend_action_lookup_get_message (PolkitBackendActionLookup *lookup, + const gchar *action_id, + PolkitDetails *details, + PolkitActionDescription *action_description) G_GNUC_DEPRECATED_FOR (use_PolkitDetails_instead); +gchar *polkit_backend_action_lookup_get_icon_name (PolkitBackendActionLookup *lookup, + const gchar *action_id, + PolkitDetails *details, + PolkitActionDescription *action_description) G_GNUC_DEPRECATED_FOR (use_PolkitDetails_instead); +PolkitDetails *polkit_backend_action_lookup_get_details (PolkitBackendActionLookup *lookup, + const gchar *action_id, + PolkitDetails *details, + PolkitActionDescription *action_description) G_GNUC_DEPRECATED_FOR (use_PolkitDetails_instead); +#endif G_END_DECLS |