Dazzle.Application

g Dazzle.Application Dazzle.Application GObject.GInterface GObject.GInterface Gio.ActionGroup Gio.ActionGroup GObject.GInterface->Gio.ActionGroup Gio.ActionMap Gio.ActionMap GObject.GInterface->Gio.ActionMap GObject.Object GObject.Object Gio.Application Gio.Application GObject.Object->Gio.Application Gio.ActionGroup->Gio.Application Gio.ActionMap->Gio.Application Gtk.Application Gtk.Application Gio.Application->Gtk.Application Gtk.Application->Dazzle.Application

Subclasses:

None

Methods

Inherited:

Gtk.Application (21), Gio.Application (37), GObject.Object (37), Gio.ActionGroup (14), Gio.ActionMap (5)

Structs:

GObject.ObjectClass (5)

class

new (application_id, flags)

add_resources (resource_path)

get_menu_by_id (menu_id)

get_menu_manager ()

get_shortcut_manager ()

get_theme_manager ()

remove_resources (resource_path)

Virtual Methods

Inherited:

Gtk.Application (2), Gio.Application (15), GObject.Object (7), Gio.ActionGroup (14), Gio.ActionMap (3)

do_add_resources (resource_path)

do_remove_resources (resource_path)

Properties

Inherited:

Gtk.Application (5), Gio.Application (8)

Name

Type

Flags

Short Description

menu-manager

Dazzle.MenuManager

r

shortcut-manager

Dazzle.ShortcutManager

r

theme-manager

Dazzle.ThemeManager

r

Signals

Inherited:

Gtk.Application (3), Gio.Application (7), GObject.Object (1), Gio.ActionGroup (4)

Fields

Inherited:

Gtk.Application (3), Gio.Application (7), GObject.Object (1), Gio.ActionGroup (4)

Name

Type

Access

Description

parent_instance

Gtk.Application

r

Class Details

class Dazzle.Application(**kwargs)
Bases:

Gtk.Application

Abstract:

No

Structure:

Dazzle.ApplicationClass

classmethod new(application_id, flags)
Parameters:
Return type:

Dazzle.Application

add_resources(resource_path)
Parameters:

resource_path (str) – the location of the resources.

This adds resource_path to the list of “automatic resources”.

If resource_path starts with “resource://”, then the corresponding Gio.Resources path will be searched for resources. Otherwise, resource_path should be a path to a location on disk.

The Dazzle.Application will locate resources such as CSS themes, icons, and keyboard shortcuts using resource_path.

get_menu_by_id(menu_id)
Parameters:

menu_id (str) – the id of the menu to locate

Returns:

A Gio.Menu

Return type:

Gio.Menu

Similar to Gtk.Application.get_menu_by_id() but takes into account menu merging which could have occurred upon loading plugins.

get_menu_manager()
Returns:

A Dazzle.MenuManager

Return type:

Dazzle.MenuManager

Gets the menu manager for the application.

get_shortcut_manager()
Returns:

A Dazzle.ShortcutManager

Return type:

Dazzle.ShortcutManager

Gets the Dazzle.ShortcutManager for the application.

get_theme_manager()
Returns:

A Dazzle.ThemeManager

Return type:

Dazzle.ThemeManager

Get the theme manager for the application.

remove_resources(resource_path)
Parameters:

resource_path (str) – the location of the resources.

This attempts to undo as many side-effects as possible from a call to Dazzle.Application.add_resources().

do_add_resources(resource_path) virtual
Parameters:

resource_path (str) – the location of the resources.

This adds resource_path to the list of “automatic resources”.

If resource_path starts with “resource://”, then the corresponding Gio.Resources path will be searched for resources. Otherwise, resource_path should be a path to a location on disk.

The Dazzle.Application will locate resources such as CSS themes, icons, and keyboard shortcuts using resource_path.

do_remove_resources(resource_path) virtual
Parameters:

resource_path (str) – the location of the resources.

This attempts to undo as many side-effects as possible from a call to Dazzle.Application.add_resources().

Property Details

Dazzle.Application.props.menu_manager
Name:

menu-manager

Type:

Dazzle.MenuManager

Default Value:

None

Flags:

READABLE

Dazzle.Application.props.shortcut_manager
Name:

shortcut-manager

Type:

Dazzle.ShortcutManager

Default Value:

None

Flags:

READABLE

Dazzle.Application.props.theme_manager
Name:

theme-manager

Type:

Dazzle.ThemeManager

Default Value:

None

Flags:

READABLE