Wnck.Tasklist¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co/en |
handle |
Style Properties¶
- Inherited:
Name |
Type |
Default |
Flags |
Short Description |
---|---|---|---|---|
|
|
r |
The time one loop takes when fading, in seconds. Default: 3.0 |
|
|
|
r |
The number of fading loops. 0 means the button will only fade to the final color. Default: 5 |
|
|
|
r |
The final opacity that will be reached. Default: 0.8 |
|
|
r |
Compatibility mode for pixbuf engine themes that cannot react to color changes. If enabled, a rectangle with the correct color will be drawn on top of the button. Default: |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the task is entered. |
|
Emitted when the task is entered. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Wnck.Tasklist(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Wnck.Tasklist
struct contains only private fields and should not be directly accessed.- classmethod new()¶
- Returns:
a newly created
Wnck.Tasklist
.- Return type:
Creates a new
Wnck.Tasklist
. TheWnck.Tasklist
will listWnck.Window
of theWnck.Screen
it is on.
- classmethod new_with_handle(handle)¶
- Parameters:
handle (
Wnck.Handle
) – aWnck.Handle
- Returns:
a newly created
Wnck.Tasklist
.- Return type:
Creates a new
Wnck.Tasklist
. TheWnck.Tasklist
will listWnck.Window
of theWnck.Screen
it is on.
- get_scroll_enabled()¶
- Return type:
Gets the scroll behavior of the self.
New in version 3.24.0.
- get_size_hint_list(n_elements)¶
- Parameters:
n_elements (
int
) – return location for the number of elements in the array returned by this function. This number should always be pair.- Returns:
a list of size hints that can be used to allocate an appropriate size for self.
- Return type:
Since a
Wnck.Tasklist
does not have a fixed size (Wnck.Window
can be grouped when needed, for example), the standard size request mechanism in GTK+ is not enough to announce what sizes can be used by self. The size hints mechanism is a solution for this. See panel_applet_set_size_hints() for more information.Deprecated since version 3.42: Use minimum and natural size instead.
- set_button_relief(relief)¶
- Parameters:
relief (
Gtk.ReliefStyle
) – a relief type.
Sets the relief type of the buttons in self to relief. The main use of this function is proper integration of
Wnck.Tasklist
in panels with non-system backgrounds.New in version 2.12.
- set_grouping(grouping)¶
- Parameters:
grouping (
Wnck.TasklistGroupingType
) – a grouping policy.
Sets the grouping policy for self to grouping.
- set_grouping_limit(limit)¶
- Parameters:
limit (
int
) – a size in pixels.
Sets the maximum size of buttons in self before self tries to group
Wnck.Window
in the sameWnck.Application
in only one button. This limit is valid only when the grouping policy of self isWnck.TasklistGroupingType.AUTO_GROUP
.
- set_include_all_workspaces(include_all_workspaces)¶
- Parameters:
include_all_workspaces (
bool
) – whether to displayWnck.Window
from allWnck.Workspace
in self.
Sets self to display
Wnck.Window
from allWnck.Workspace
or not, according to include_all_workspaces.Note that if the active
Wnck.Workspace
has a viewport and if include_all_workspaces isFalse
, then only theWnck.Window
visible in the viewport are displayed in self. The rationale for this is that the viewport is generally used to implement workspace-like behavior. A side-effect of this is that, when using multipleWnck.Workspace
with viewport, it is not possible to show allWnck.Window
from aWnck.Workspace
(even those that are not visible in the viewport) in self without showing allWnck.Window
from allWnck.Workspace
.
- set_middle_click_close(middle_click_close)¶
- Parameters:
middle_click_close (
bool
) – whether to close windows with middle click on button.
Sets self to close windows with mouse middle click on button, according to middle_click_close.
New in version 3.4.6.
- set_orientation(orient)¶
- Parameters:
orient (
Gtk.Orientation
) – aGtk.Orientation
.
Set the orientation of the self to match orient. This function can be used to integrate a
Wnck.Tasklist
in vertical panels.New in version 3.4.6.
- set_scroll_enabled(scroll_enabled)¶
- Parameters:
scroll_enabled (
bool
) – a boolean.
Sets the scroll behavior of the self. When set to
True
, a scroll event over the tasklist will change the current window accordingly.New in version 3.24.0.
- set_switch_workspace_on_unminimize(switch_workspace_on_unminimize)¶
- Parameters:
switch_workspace_on_unminimize (
bool
) – whether to activate theWnck.Workspace
aWnck.Window
is on when unminimizing it.
Sets self to activate or not the
Wnck.Workspace
aWnck.Window
is on when unminimizing it, according to switch_workspace_on_unminimize.FIXME: does it still work?
Signal Details¶
- Wnck.Tasklist.signals.task_enter_notify(tasklist, windows)¶
- Signal Name:
task-enter-notify
- Flags:
- Parameters:
tasklist (
Wnck.Tasklist
) – The object which received the signalwindows (
object
orNone
) – theGLib.List
with all theWnck.Window
belonging to the task.
Emitted when the task is entered.
- Wnck.Tasklist.signals.task_leave_notify(tasklist, windows)¶
- Signal Name:
task-leave-notify
- Flags:
- Parameters:
tasklist (
Wnck.Tasklist
) – The object which received the signalwindows (
object
orNone
) – theGLib.List
with all theWnck.Window
belonging to the task.
Emitted when the task is entered.
Property Details¶
- Wnck.Tasklist.props.handle¶
- Name:
handle
- Type:
- Default Value:
- Flags:
handle