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 | ||
| r/w/en | tooltips-enabled | 
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.Taskliststruct 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. The- Wnck.Tasklistwill list- Wnck.Windowof the- Wnck.Screenit is on.
 - classmethod new_with_handle(handle)¶
- Parameters:
- handle ( - Wnck.Handle) – a- Wnck.Handle
- Returns:
- a newly created - Wnck.Tasklist.
- Return type:
 - Creates a new - Wnck.Tasklist. The- Wnck.Tasklistwill list- Wnck.Windowof the- Wnck.Screenit 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.Tasklistdoes not have a fixed size (- Wnck.Windowcan 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. 
 - get_tooltips_enabled()¶
- Return type:
 - Returns whether tooltips are enabled on the tasklist. - New in version 43.1. 
 - 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.Tasklistin 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.Windowin the same- Wnck.Applicationin only one button. This limit is valid only when the grouping policy of self is- Wnck.TasklistGroupingType.AUTO_GROUP.
 - set_include_all_workspaces(include_all_workspaces)¶
- Parameters:
- include_all_workspaces ( - bool) – whether to display- Wnck.Windowfrom all- Wnck.Workspacein self.
 - Sets self to display - Wnck.Windowfrom all- Wnck.Workspaceor not, according to include_all_workspaces.- Note that if the active - Wnck.Workspacehas a viewport and if include_all_workspaces is- False, then only the- Wnck.Windowvisible 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 multiple- Wnck.Workspacewith viewport, it is not possible to show all- Wnck.Windowfrom a- Wnck.Workspace(even those that are not visible in the viewport) in self without showing all- Wnck.Windowfrom all- Wnck.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) – a- Gtk.Orientation.
 - Set the orientation of the self to match orient. This function can be used to integrate a - Wnck.Tasklistin 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 the- Wnck.Workspacea- Wnck.Windowis on when unminimizing it.
 - Sets self to activate or not the - Wnck.Workspacea- Wnck.Windowis 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 signal
- windows ( - objector- None) – the- GLib.Listwith all the- Wnck.Windowbelonging 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 signal
- windows ( - objector- None) – the- GLib.Listwith all the- Wnck.Windowbelonging to the task.
 
 - Emitted when the task is entered. 
Property Details¶
- Wnck.Tasklist.props.handle¶
- Name:
- handle
- Type:
- Default Value:
- Flags:
 - handle