Top | ![]() |
![]() |
![]() |
![]() |
InfGtkPermissionsDialogInfGtkPermissionsDialog — A dialog to view and modify the ACL of a directory node |
InfBrowser * | browser | Read / Write / Construct Only |
InfBrowserIter * | browser-iter | Read / Write / Construct Only |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkDialog ╰── InfGtkPermissionsDialog
InfGtkPermissionsDialog is a dialog widget which allows to view and modify the ACL of a node in a infinote directory. It shows a list of all available users and allows the permissions for each of them to be changed, using a InfGtkAclSheetView widget.
If the "can-query-acl" permission is not granted for the local user, the dialog only shows the permissions for the default user and the local user. The dialog also comes with a status text to inform the user why certain functionality is not available.
The dialog class reacts to changes to the ACL in real time, and also if the node that is being monitored is removed.
InfGtkPermissionsDialog * inf_gtk_permissions_dialog_new (GtkWindow *parent
,GtkDialogFlags dialog_flags
,InfBrowser *browser
,const InfBrowserIter *iter
);
Creates a new InfGtkPermissionsDialog, showing the ACL for the node
iter
points to inside browser
. If browser
is NULL
, iter
must be NULL
,
too. In that case no permissions are shown, and the node to be shown can
be set later with inf_gtk_permissions_dialog_set_node()
.
[constructor]
parent |
Parent GtkWindow of the dialog. |
|
dialog_flags |
Flags for the dialog, see GtkDialogFlags. |
|
browser |
The InfBrowser containing the node to show
permissions for, or |
[allow-none] |
iter |
An iterator pointing to the node to show permissions
for, or |
[allow-none] |
A new InfGtkPermissionsDialog. Free with
gtk_widget_destroy()
when no longer needed.
[transfer full]
void inf_gtk_permissions_dialog_set_node (InfGtkPermissionsDialog *dialog
,InfBrowser *browser
,const InfBrowserIter *iter
);
Changes the node the dialog shows permissions for. To unset the node, both
browser
and iter
should be NULL
.
dialog |
||
browser |
The InfBrowser containing the node to show
permissions for, or |
[allow-none] |
iter |
An iterator pointing to the node to show permissions
for, or |
[allow-none] |
struct InfGtkPermissionsDialog;
InfGtkPermissionsDialog is an opaque data type. You should only access it via the public API functions.
“browser”
property“browser” InfBrowser *
The browser with the node for which to show the permissions.
Owner: InfGtkPermissionsDialog
Flags: Read / Write / Construct Only
“browser-iter”
property“browser-iter” InfBrowserIter *
An iterator pointing to the node inside the browser for which to show the permissions.
Owner: InfGtkPermissionsDialog
Flags: Read / Write / Construct Only