Top |
guint32 | thunar_group_get_id () |
const gchar * | thunar_group_get_name () |
GList * | thunar_user_get_groups () |
const gchar * | thunar_user_get_name () |
const gchar * | thunar_user_get_real_name () |
gboolean | thunar_user_is_me () |
ThunarUserManager * | thunar_user_manager_get_default () |
ThunarGroup * | thunar_user_manager_get_group_by_id () |
ThunarUser * | thunar_user_manager_get_user_by_id () |
GList * | thunar_user_manager_get_all_groups () |
guint32
thunar_group_get_id (ThunarGroup *group
);
Returns the unique id of the given group
.
const gchar *
thunar_group_get_name (ThunarGroup *group
);
Returns the name of the group
. If the system is
unable to determine the name of group
, it'll
return the group id as string.
GList *
thunar_user_get_groups (ThunarUser *user
);
Returns all ThunarGroups that user
belongs to. The returned list and the ThunarGroups
contained within the list are owned by user
and must not be
freed or altered by the caller.
Note that if user
has a primary group, this group will
also be contained in the returned list.
const gchar *
thunar_user_get_name (ThunarUser *user
);
Returns the name of user
. If the system is
unable to determine the account name of user
,
it'll return the user id as string.
const gchar *
thunar_user_get_real_name (ThunarUser *user
);
Returns the real name of user
or NULL
if the
real name for user
is not known to the underlying
system.
gboolean
thunar_user_is_me (ThunarUser *user
);
Checks whether the owner of the current process is
described by user
.
ThunarUserManager *
thunar_user_manager_get_default (void
);
Returns the default ThunarUserManager instance, which is shared
by all modules using the user module. Call g_object_unref()
on the
returned object when you are done with it.
ThunarGroup * thunar_user_manager_get_group_by_id (ThunarUserManager *manager
,guint32 id
);
Looks up the ThunarGroup corresponding to id
in manager
. Returns
NULL
if manager
is unable to determine the ThunarGroup for id
,
else a pointer to the corresponding ThunarGroup. The caller is
responsible for freeing the returned object using g_object_unref()
.
ThunarUser * thunar_user_manager_get_user_by_id (ThunarUserManager *manager
,guint32 id
);
Looks up the ThunarUser corresponding to id
in manager
. Returns
NULL
if manager
is unable to determine the ThunarUser for id
,
else a pointer to the corresponding ThunarUser. The caller is
responsible for freeing the returned object using g_object_unref()
.
GList *
thunar_user_manager_get_all_groups (ThunarUserManager *manager
);
Returns the list of all ThunarGroups in the system
that are known to the manager
.
The caller is responsible to free the returned list using:
1 |
g_list_free_full (list, g_object_unref); |