MalcontentUi.RestrictApplicationsSelector¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Gtk.Box (4), Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
The user’s current app filter, used to set up the selector. |
||
r/w/en |
Search terms to filter the displayed list of apps by. |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted whenever an application in the list is blocked or unblocked. |
Fields¶
- Inherited:
Class Details¶
- class MalcontentUi.RestrictApplicationsSelector(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The ‘Restrict Applications’ selector is a list box which shows the available applications on the system alongside a column of toggle switches, which allows the given user to be prevented from running each application.
The selector takes an
MalcontentUi.RestrictApplicationsSelector
:app-filter
as input to set up the UI, and returns its output as set of modifications to a givenMalcontent.AppFilterBuilder
usingMalcontentUi.RestrictApplicationsSelector.build_app_filter
().Search terms may be applied using
MalcontentUi.RestrictApplicationsSelector
:search
. These will filter the list of displayed apps so that only ones matching the search terms (by name, using UTF-8 normalisation and casefolding) will be displayed.New in version 0.5.0.
- classmethod new(app_filter)¶
- Parameters:
app_filter (
Malcontent.AppFilter
) – app filter to configure the selector from initially- Returns:
a new restricted applications selector
- Return type:
Create a new
MalcontentUi.RestrictApplicationsSelector
widget.New in version 0.5.0.
- build_app_filter(builder)¶
- Parameters:
builder (
Malcontent.AppFilterBuilder
) – an existingMalcontent.AppFilterBuilder
to modify
Get the app filter settings currently configured in the selector, by modifying the given builder.
New in version 0.5.0.
- get_app_filter()¶
- Returns:
the initial app filter used to populate the selector
- Return type:
Get the value of
MalcontentUi.RestrictApplicationsSelector
:app-filter
. If the property was originally set toNone
, this will be the empty app filter.New in version 0.5.0.
- get_search()¶
-
Get the value of
MalcontentUi.RestrictApplicationsSelector
:search
.New in version 0.12.0.
- set_app_filter(app_filter)¶
- Parameters:
app_filter (
Malcontent.AppFilter
orNone
) – the app filter to configure the selector from, orNone
to use an empty app filter
Set the value of
MalcontentUi.RestrictApplicationsSelector
:app-filter
.This will overwrite any user changes to the selector, so they should be saved first using
MalcontentUi.RestrictApplicationsSelector.build_app_filter
() if desired.New in version 0.5.0.
Signal Details¶
- MalcontentUi.RestrictApplicationsSelector.signals.changed(restrict_applications_selector)¶
- Signal Name:
changed
- Flags:
- Parameters:
restrict_applications_selector (
MalcontentUi.RestrictApplicationsSelector
) – The object which received the signal
Emitted whenever an application in the list is blocked or unblocked.
New in version 0.5.0.
Property Details¶
- MalcontentUi.RestrictApplicationsSelector.props.app_filter¶
- Name:
app-filter
- Type:
- Default Value:
- Flags:
The user’s current app filter, used to set up the selector. As app filters are immutable, it is not updated as the selector is changed. Use
MalcontentUi.RestrictApplicationsSelector.build_app_filter
() to build the new app filter.New in version 0.5.0.