InfGtk.AclSheetView

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Grid Gtk.Grid Gtk.Container->Gtk.Grid InfGtk.AclSheetView InfGtk.AclSheetView Gtk.Grid->InfGtk.AclSheetView Gtk.Orientable->Gtk.Grid Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Grid (21), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

get_editable ()

get_permission_mask ()

get_sheet ()

get_show_default ()

set_editable (editable)

set_permission_mask (mask)

set_sheet (sheet)

set_show_default (show)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

do_sheet_changed ()

Properties

Inherited:

Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

editable

bool

r/w/c

Whether the sheet can be edited by the user or not

permission-mask

Infinity.AclMask

r/w

Specifies which permissions to show in the sheet view

sheet

Infinity.AclSheet

r/w/c

The ACL sheet the widget is displaying

show-default

bool

r/w

Whether to show the “default” column

Child Properties

Inherited:

Gtk.Grid (4)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

sheet-changed

This signal is emitted when the Infinity.AclSheet displayed by view was changed by the user.

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Grid

r

Class Details

class InfGtk.AclSheetView(**kwargs)
Bases:

Gtk.Grid

Abstract:

No

Structure:

InfGtk.AclSheetViewClass

InfGtk.AclSheetView is an opaque data type. You should only access it via the public API functions.

classmethod new()
Returns:

A new InfGtk.AclSheetView.

Return type:

Gtk.Widget

Creates a new InfGtk.AclSheetView. To show a sheet in the view, call InfGtk.AclSheetView.set_sheet().

get_editable()
Returns:

True when the sheet can be edited or False otherwise.

Return type:

bool

Returns whether the sheet being displayed by self can be edited by the user or not.

get_permission_mask()
Returns:

A Infinity.AclMask owned by self. It must not be freed.

Return type:

Infinity.AclMask

Returns a Infinity.AclMask specifies which permissions are currently being shown by self.

get_sheet()
Returns:

A Infinity.AclSheet owned by self, or None.

Return type:

Infinity.AclSheet or None

Returns the sheet that is currently being displayed by self, or None if there is no sheet displayed.

get_show_default()
Returns:

True if the “default” column is shown or False otherwise.

Return type:

bool

Returns whether the “default” column is shown.

set_editable(editable)
Parameters:

editable (bool) – Whether to make the sheet editable or not.

Sets whether the sheet being displayed by self can be edited by the user or not.

set_permission_mask(mask)
Parameters:

mask (Infinity.AclMask) – A Infinity.AclMask with the permissions to show.

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.

set_sheet(sheet)
Parameters:

sheet (Infinity.AclSheet or None) – The Infinity.AclSheet to show, or None.

Sets the sheet to be displayed by self.

set_show_default(show)
Parameters:

show (bool) – Whether to show the default column.

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.

do_sheet_changed() virtual

Signal Details

InfGtk.AclSheetView.signals.sheet_changed(acl_sheet_view)
Signal Name:

sheet-changed

Flags:

RUN_LAST

Parameters:

acl_sheet_view (InfGtk.AclSheetView) – The object which received the signal

This signal is emitted when the Infinity.AclSheet displayed by view was changed by the user.

Property Details

InfGtk.AclSheetView.props.editable
Name:

editable

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT

Whether the sheet can be edited by the user or not

InfGtk.AclSheetView.props.permission_mask
Name:

permission-mask

Type:

Infinity.AclMask

Default Value:

None

Flags:

READABLE, WRITABLE

Specifies which permissions to show in the sheet view

InfGtk.AclSheetView.props.sheet
Name:

sheet

Type:

Infinity.AclSheet

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The ACL sheet the widget is displaying

InfGtk.AclSheetView.props.show_default
Name:

show-default

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE

Whether to show the “default” column