Wnck.ClassGroup

g GObject.Object GObject.Object Wnck.ClassGroup Wnck.ClassGroup GObject.Object->Wnck.ClassGroup

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get (id)

get_icon ()

get_id ()

get_mini_icon ()

get_name ()

get_res_class ()

get_windows ()

Virtual Methods

Inherited:

GObject.Object (7)

do_icon_changed ()

do_name_changed ()

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

icon-changed

Emitted when the icon of class_group changes.

name-changed

Emitted when the name of class_group changes.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Wnck.ClassGroup(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Wnck.ClassGroupClass

The Wnck.ClassGroup struct contains only private fields and should not be directly accessed.

classmethod get(id)
Parameters:

id (str) – identifier name of the sought resource class.

Returns:

the Wnck.ClassGroup corresponding to id, or None if there is no Wnck.ClassGroup with the specified id. The returned Wnck.ClassGroup is owned by libwnck and must not be referenced or unreferenced.

Return type:

Wnck.ClassGroup

Gets the Wnck.ClassGroup corresponding to id.

New in version 2.2.

get_icon()
Returns:

the icon for self. The caller should reference the returned GdkPixbuf.Pixbuf if it needs to keep the icon around.

Return type:

GdkPixbuf.Pixbuf

Gets the icon to be used for self. Since there is no way to properly find the icon, a suboptimal heuristic is used to find it. The icon is the first icon found by looking at all the Wnck.Application for each Wnck.Window in self, then at all the Wnck.Window in self. If no icon was found, a fallback icon is used.

New in version 2.2.

get_id()
Returns:

the identifier name of self, or an empty string if the group has no identifier name.

Return type:

str

Gets the identifier name for self. This is the resource class for self.

New in version 3.2.

get_mini_icon()
Returns:

the mini-icon for self. The caller should reference the returned GdkPixbuf.Pixbuf if it needs to keep the mini-icon around.

Return type:

GdkPixbuf.Pixbuf

Gets the mini-icon to be used for self. Since there is no way to properly find the mini-icon, the same suboptimal heuristic as the one for Wnck.ClassGroup.get_icon() is used to find it.

New in version 2.2.

get_name()
Returns:

an human-readable name for self.

Return type:

str

Gets an human-readable name for self. Since there is no way to properly find this name, a suboptimal heuristic is used to find it. The name is the name of all Wnck.Application for each Wnck.Window in self if they all have the same name. If all Wnck.Application don’t have the same name, the name is the name of all Wnck.Window in self if they all have the same name. If all Wnck.Window don’t have the same name, the resource class name is used.

New in version 2.2.

get_res_class()
Returns:

the resource class name of self, or an empty string if the group has no resource class name.

Return type:

str

Gets the resource class name for self.

New in version 2.2.

Deprecated since version 3.2: Use Wnck.ClassGroup.get_id() instead.

get_windows()
Returns:

the list of Wnck.Window grouped in self, or None if the group contains no window. The list should not be modified nor freed, as it is owned by self.

Return type:

[Wnck.Window]

Gets the list of Wnck.Window that are grouped in self.

New in version 2.2.

do_icon_changed() virtual
do_name_changed() virtual

Signal Details

Wnck.ClassGroup.signals.icon_changed(class_group)
Signal Name:

icon-changed

Flags:

RUN_LAST

Parameters:

class_group (Wnck.ClassGroup) – The object which received the signal

Emitted when the icon of class_group changes.

Wnck.ClassGroup.signals.name_changed(class_group)
Signal Name:

name-changed

Flags:

RUN_LAST

Parameters:

class_group (Wnck.ClassGroup) – The object which received the signal

Emitted when the name of class_group changes.