fix up proper naming of some methods on the PolKitPolicyFileEntry class
authorDavid Zeuthen <davidz@redhat.com>
Wed, 25 Jul 2007 22:02:54 +0000 (18:02 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Wed, 25 Jul 2007 22:02:54 +0000 (18:02 -0400)
polkit/polkit-policy-file-entry.c
polkit/polkit-policy-file-entry.h
tools/polkit-list-actions.c

index 1e10f96..ec26291 100644 (file)
@@ -119,7 +119,7 @@ _polkit_policy_file_entry_set_descriptions (PolKitPolicyFileEntry *policy_file_e
 }
 
 /**
- * polkit_policy_file_get_group_description:
+ * polkit_policy_file_entry_get_group_description:
  * @policy_file_entry: the object
  * 
  * Get the description of the group that this policy entry describes.
@@ -131,19 +131,19 @@ _polkit_policy_file_entry_set_descriptions (PolKitPolicyFileEntry *policy_file_e
  * Returns: string or #NULL if descriptions are not loaded - caller shall not free this string
  **/
 const char *
-polkit_policy_file_get_group_description (PolKitPolicyFileEntry *policy_file_entry)
+polkit_policy_file_entry_get_group_description (PolKitPolicyFileEntry *policy_file_entry)
 {
         g_return_val_if_fail (policy_file_entry != NULL, NULL);
         return policy_file_entry->group_description;
 }
 
 /**
- * polkit_policy_file_get_action_description:
+ * polkit_policy_file_entry_get_action_description:
  * @policy_file_entry: the object
  * 
  * Get the description of the action that this policy entry describes. This
  * is intended to be used in policy editors, for example "Mount internal
- * volumes". Contrast with polkit_policy_file_get_action_message(). The
+ * volumes". Contrast with polkit_policy_file_entry_get_action_message(). The
  * textual string will be returned in the current locale.
  *
  * Note, if polkit_context_set_load_descriptions() on the
@@ -153,20 +153,20 @@ polkit_policy_file_get_group_description (PolKitPolicyFileEntry *policy_file_ent
  * Returns: string or #NULL if descriptions are not loaded - caller shall not free this string
  **/
 const char *
-polkit_policy_file_get_action_description (PolKitPolicyFileEntry *policy_file_entry)
+polkit_policy_file_entry_get_action_description (PolKitPolicyFileEntry *policy_file_entry)
 {
         g_return_val_if_fail (policy_file_entry != NULL, NULL);
         return policy_file_entry->policy_description;
 }
 
 /**
- * polkit_policy_file_get_action_message:
+ * polkit_policy_file_entry_get_action_message:
  * @policy_file_entry: the object
  * 
  * Get the message describing the action that this policy entry
  * describes. This is to be used in dialogs, for example "System
  * Policy prevents mounting this volume". Contrast with
- * polkit_policy_file_get_action_description(). The textual string
+ * polkit_policy_file_entry_get_action_description(). The textual string
  * will be returned in the current locale.
  *
  * Note, if polkit_context_set_load_descriptions() on the
@@ -176,7 +176,7 @@ polkit_policy_file_get_action_description (PolKitPolicyFileEntry *policy_file_en
  * Returns: string or #NULL if descriptions are not loaded - caller shall not free this string
  **/
 const char *
-polkit_policy_file_get_action_message (PolKitPolicyFileEntry *policy_file_entry)
+polkit_policy_file_entry_get_action_message (PolKitPolicyFileEntry *policy_file_entry)
 {
         g_return_val_if_fail (policy_file_entry != NULL, NULL);
         return policy_file_entry->policy_message;
index 0956507..7eac213 100644 (file)
@@ -44,9 +44,9 @@ const char            *polkit_policy_file_entry_get_id       (PolKitPolicyFileEn
 const char            *polkit_policy_file_entry_get_group_id (PolKitPolicyFileEntry *policy_file_entry);
 PolKitPolicyDefault   *polkit_policy_file_entry_get_default  (PolKitPolicyFileEntry *policy_file_entry);
 
-const char            *polkit_policy_file_get_group_description (PolKitPolicyFileEntry *policy_file_entry);
-const char            *polkit_policy_file_get_action_description (PolKitPolicyFileEntry *policy_file_entry);
-const char            *polkit_policy_file_get_action_message (PolKitPolicyFileEntry *policy_file_entry);
+const char            *polkit_policy_file_entry_get_group_description (PolKitPolicyFileEntry *policy_file_entry);
+const char            *polkit_policy_file_entry_get_action_description (PolKitPolicyFileEntry *policy_file_entry);
+const char            *polkit_policy_file_entry_get_action_message (PolKitPolicyFileEntry *policy_file_entry);
 
 
 #endif /* POLKIT_POLICY_FILE_ENTRY_H */
index aab23a0..4a674c0 100644 (file)
@@ -78,9 +78,9 @@ _print_entry (PolKitPolicyCache *policy_cache,
                 "default_active    = %s\n"
                 "\n", 
                 group_id, 
-                polkit_policy_file_get_group_description (pfe),
+                polkit_policy_file_entry_get_group_description (pfe),
                 action_id,
-                polkit_policy_file_get_action_description (pfe),
+                polkit_policy_file_entry_get_action_description (pfe),
                 polkit_result_to_string_representation (default_inactive),
                 polkit_result_to_string_representation (default_active));
 }