Wnck.ClassGroup¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the icon of class_group changes. |
|
Emitted when the name of class_group changes. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Wnck.ClassGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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, orNone
if there is noWnck.ClassGroup
with the specified id. The returnedWnck.ClassGroup
is owned by libwnck and must not be referenced or unreferenced.- Return type:
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:
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 eachWnck.Window
in self, then at all theWnck.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:
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:
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:
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 eachWnck.Window
in self if they all have the same name. If allWnck.Application
don’t have the same name, the name is the name of allWnck.Window
in self if they all have the same name. If allWnck.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:
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, orNone
if the group contains no window. The list should not be modified nor freed, as it is owned by self.- Return type:
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:
- 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:
- Parameters:
class_group (
Wnck.ClassGroup
) – The object which received the signal
Emitted when the name of class_group changes.