Top | ![]() |
![]() |
![]() |
![]() |
InfGtkAclSheetViewInfGtkAclSheetView — A widget showing a InfAclSheet |
GtkWidget * | inf_gtk_acl_sheet_view_new () |
void | inf_gtk_acl_sheet_view_set_sheet () |
const InfAclSheet * | inf_gtk_acl_sheet_view_get_sheet () |
void | inf_gtk_acl_sheet_view_set_editable () |
gboolean | inf_gtk_acl_sheet_view_get_editable () |
void | inf_gtk_acl_sheet_view_set_show_default () |
gboolean | inf_gtk_acl_sheet_view_get_show_default () |
void | inf_gtk_acl_sheet_view_set_permission_mask () |
const InfAclMask * | inf_gtk_acl_sheet_view_get_permission_mask () |
gboolean | editable | Read / Write / Construct |
InfAclMask * | permission-mask | Read / Write |
InfAclSheet * | sheet | Read / Write / Construct |
gboolean | show-default | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkGrid ╰── InfGtkAclSheetView
InfGtkAclSheetView implements AtkImplementorIface, GtkBuildable and GtkOrientable.
InfGtkAclSheetView is a widget that can show a InfAclSheet in the user interface. Optionally, it also allows the user to edit the sheet.
GtkWidget *
inf_gtk_acl_sheet_view_new (void
);
Creates a new InfGtkAclSheetView. To show a sheet in the view, call
inf_gtk_acl_sheet_view_set_sheet()
.
[constructor]
void inf_gtk_acl_sheet_view_set_sheet (InfGtkAclSheetView *view
,const InfAclSheet *sheet
);
Sets the sheet
to be displayed by view
.
const InfAclSheet *
inf_gtk_acl_sheet_view_get_sheet (InfGtkAclSheetView *view
);
Returns the sheet that is currently being displayed by view
, or NULL
if
there is no sheet displayed.
void inf_gtk_acl_sheet_view_set_editable (InfGtkAclSheetView *view
,gboolean editable
);
Sets whether the sheet being displayed by view
can be edited by the user
or not.
gboolean
inf_gtk_acl_sheet_view_get_editable (InfGtkAclSheetView *view
);
Returns whether the sheet being displayed by view
can be edited by the
user or not.
void inf_gtk_acl_sheet_view_set_show_default (InfGtkAclSheetView *view
,gboolean show
);
Specifies whether the "default" column is shown, and whether it is allowed to change certain permissions to the default value or not. The ACL sheet for the default account of a directory's root node is not allowed to have default permissions. In this case this function should be called to hide the default column from the user interface.
gboolean
inf_gtk_acl_sheet_view_get_show_default
(InfGtkAclSheetView *view
);
Returns whether the "default" column is shown.
void inf_gtk_acl_sheet_view_set_permission_mask (InfGtkAclSheetView *view
,const InfAclMask *mask
);
Sets which permissions of the sheet to show. Only the permissions that
are enabled in mask
ar being shown. By default all permissions are shown.
const InfAclMask *
inf_gtk_acl_sheet_view_get_permission_mask
(InfGtkAclSheetView *view
);
Returns a InfAclMask specifies which permissions are currently being
shown by view
.
struct InfGtkAclSheetView;
InfGtkAclSheetView is an opaque data type. You should only access it via the public API functions.
struct InfGtkAclSheetViewClass { void (*sheet_changed)(InfGtkAclSheetView* view); };
This structure contains the default signal handlers for the InfGtkAclSheetView class.
“editable”
property “editable” gboolean
Whether the sheet can be edited by the user or not.
Owner: InfGtkAclSheetView
Flags: Read / Write / Construct
Default value: FALSE
“permission-mask”
property“permission-mask” InfAclMask *
Specifies which permissions to show in the sheet view.
Owner: InfGtkAclSheetView
Flags: Read / Write
“sheet”
property“sheet” InfAclSheet *
The ACL sheet the widget is displaying.
Owner: InfGtkAclSheetView
Flags: Read / Write / Construct
“sheet-changed”
signalvoid user_function (InfGtkAclSheetView *view, gpointer user_data)
This signal is emitted when the InfAclSheet displayed by view
was
changed by the user.
view |
The InfGtkAclSheetView that emitted the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last