Bamf.Tab

g Bamf.Tab Bamf.Tab Bamf.View Bamf.View Bamf.View->Bamf.Tab 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)

close ()

get_desktop_name ()

get_is_foreground_tab ()

get_location ()

get_xid ()

raise_ ()

request_preview (callback, *user_data)

Virtual Methods

Inherited:

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

do_get_desktop_name ()

do_get_is_foreground_tab ()

do_get_location ()

do_get_xid ()

Properties

Inherited:

Bamf.View (6)

Name

Type

Flags

Short Description

desktop-id

str

r

The Desktop ID associated with the application hosted in the remote Tab

is-foreground-tab

bool

r

Whether the tab is the foreground tab in it’s toplevel container

location

str

r

The Current location of the remote Tab

xid

int

r

XID for the toplevel window containing the remote Tab

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

Bamf.View

r

Class Details

class Bamf.Tab(**kwargs)
Bases:

Bamf.View

Abstract:

No

Structure:

Bamf.TabClass

close()
Returns:

True if success, False otherwise.

Return type:

bool

Closes the selected self tab.

get_desktop_name()
Returns:

The tab desktop id or None if not set or available. Do not free the returned value, it belongs to self.

Return type:

str

Returns the desktop file for the tab.

get_is_foreground_tab()
Returns:

True if the tab is the active one on parent window XID, False otherwise.

Return type:

bool

get_location()
Return type:

str

get_xid()
Returns:

The tab parent window XID id or 0 if not set or available.

Return type:

int

The desktop file for the tab.

raise_()
Returns:

True if success, False otherwise.

Return type:

bool

Selects the self tab in the parent window.

request_preview(callback, *user_data)
Parameters:
do_get_desktop_name() virtual
Returns:

The tab desktop id or None if not set or available. Do not free the returned value, it belongs to self.

Return type:

str

Returns the desktop file for the tab.

do_get_is_foreground_tab() virtual
Returns:

True if the tab is the active one on parent window XID, False otherwise.

Return type:

bool

do_get_location() virtual
Return type:

str

do_get_xid() virtual
Returns:

The tab parent window XID id or 0 if not set or available.

Return type:

int

The desktop file for the tab.

Property Details

Bamf.Tab.props.desktop_id
Name:

desktop-id

Type:

str

Default Value:

None

Flags:

READABLE

The Desktop ID associated with the application hosted in the remote Tab

Bamf.Tab.props.is_foreground_tab
Name:

is-foreground-tab

Type:

bool

Default Value:

False

Flags:

READABLE

Whether the tab is the foreground tab in it’s toplevel container

Bamf.Tab.props.location
Name:

location

Type:

str

Default Value:

None

Flags:

READABLE

The Current location of the remote Tab

Bamf.Tab.props.xid
Name:

xid

Type:

int

Default Value:

0

Flags:

READABLE

XID for the toplevel window containing the remote Tab