Bamf.Application

g Bamf.Application Bamf.Application Bamf.View Bamf.View Bamf.View->Bamf.Application GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Bamf.View GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

Bamf.View (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_application_menu ()

get_application_type ()

get_desktop_file ()

get_focusable_child ()

get_show_menu_stubs ()

get_supported_mime_types ()

get_window_for_xid (xid)

get_windows ()

get_xids ()

Virtual Methods

Inherited:

Bamf.View (23), GObject.Object (7)

Properties

Inherited:

Bamf.View (6)

Signals

Inherited:

Bamf.View (11), GObject.Object (1)

Name

Short Description

desktop-file-updated

window-added

window-removed

Fields

Inherited:

Bamf.View (11), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Bamf.View

r

Class Details

class Bamf.Application(**kwargs)
Bases:

Bamf.View

Abstract:

No

Structure:

Bamf.ApplicationClass

get_application_menu()
Returns:

True if found, False otherwise.

name:

the bus name

object_path:

the object path

Return type:

(bool, name: str, object_path: str)

Used to fetch the bus name and the object path of the remote application menu.

Deprecated since version 0.5.0.

get_application_type()
Return type:

str

get_desktop_file()
Returns:

A string representing the path to the desktop file.

Return type:

str

Used to fetch the path to the .desktop file associated with the passed application. If none exists, the result is None.

get_focusable_child()
Returns:

The focusable child for this application.

Return type:

Bamf.View

get_show_menu_stubs()
Returns:

Whether the stubs should be shown.

Return type:

bool

Used to discover whether the application wants menu stubs shown.

get_supported_mime_types()
Returns:

A string array containing the supported mime-types.

Return type:

[str]

get_window_for_xid(xid)
Parameters:

xid (int) – an X11 Window ID

Returns:

a Bamf.Window for the passed xid or None if not found.

Return type:

Bamf.Window

Used to fetch the application contains a Window with given xid.

New in version 0.5.2.

get_windows()
Returns:

A list of Bamf.Window's.

Return type:

[Bamf.Window]

Used to fetch all Bamf.Window's associated with the passed Bamf.Application.

get_xids()
Returns:

An array of xids.

Return type:

[int]

Used to fetch all Bamf.Window's xids associated with the passed Bamf.Application.

Signal Details

Bamf.Application.signals.desktop_file_updated(application, object)
Signal Name:

desktop-file-updated

Flags:

Parameters:
Bamf.Application.signals.window_added(application, object)
Signal Name:

window-added

Flags:

Parameters:
Bamf.Application.signals.window_removed(application, object)
Signal Name:

window-removed

Flags:

Parameters: