Class: Wnck::Tasklist

Inherits:
Gtk::Container
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(handle) ⇒ Gtk::Widget

Creates a new Wnck::Tasklist. The #WnckTasklist will list #WnckWindow of the Wnck::Screen it is on.

Parameters:

Instance Method Details

#button_relief=(relief) ⇒ nil

Sets the relief type of the buttons in tasklist to relief. The main use of this function is proper integration of Wnck::Tasklist in panels with non-system backgrounds.

Parameters:

  • relief (Gtk::ReliefStyle)

    a relief type.

Returns:

  • (nil)

#get_size_hint_list(n_elements) ⇒ Integer

Since a Wnck::Tasklist does not have a fixed size (#WnckWindow 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 tasklist. The size hints mechanism is a solution for this. See panel_applet_set_size_hints() for more information. returned by this function. This number should always be pair. appropriate size for tasklist.

Parameters:

  • n_elements (Integer)

    return location for the number of elements in the array

Returns:

  • (Integer)

    a list of size hints that can be used to allocate an

#grouping=(grouping) ⇒ nil

Sets the grouping policy for tasklist to grouping.

Parameters:

Returns:

  • (nil)

#grouping_limit=(limit) ⇒ nil

Sets the maximum size of buttons in tasklist before tasklist tries to group Wnck::Window in the same #WnckApplication in only one button. This limit is valid only when the grouping policy of tasklist is %WNCK_TASKLIST_AUTO_GROUP.

Parameters:

  • limit (Integer)

    a size in pixels.

Returns:

  • (nil)

#handleWnck::Handle

Returns handle.

Returns:

#handle=(handle) ⇒ Wnck::Handle

Parameters:

Returns:

#include_all_workspaces=(include_all_workspaces) ⇒ nil

Sets tasklist to display Wnck::Window from all #WnckWorkspace or not, according to include_all_workspaces.

Note that if the active Wnck::Workspace has a viewport and if include_all_workspaces is false, then only the Wnck::Window visible in the viewport are displayed in tasklist. 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::Workspace with viewport, it is not possible to show all Wnck::Window from a #WnckWorkspace (even those that are not visible in the viewport) in tasklist without showing all Wnck::Window from all #WnckWorkspace. Wnck::Workspace in tasklist.

Parameters:

  • include_all_workspaces (Boolean)

    whether to display Wnck::Window from all

Returns:

  • (nil)

#middle_click_close=(middle_click_close) ⇒ nil

Sets tasklist to close windows with mouse middle click on button, according to middle_click_close. button.

Parameters:

  • middle_click_close (Boolean)

    whether to close windows with middle click on

Returns:

  • (nil)

#orientation=(orient) ⇒ nil

Set the orientation of the tasklist to match orient. This function can be used to integrate a Wnck::Tasklist in vertical panels.

Parameters:

  • orient (Gtk::Orientation)

    a GtkOrientation.

Returns:

  • (nil)

#scroll_enabledBoolean

Gets the scroll behavior of the tasklist.

Returns:

  • (Boolean)

#scroll_enabled=(scroll_enabled) ⇒ nil

Sets the scroll behavior of the tasklist. When set to true, a scroll event over the tasklist will change the current window accordingly.

Parameters:

  • scroll_enabled (Boolean)

    a boolean.

Returns:

  • (nil)

#set_icon_loader(load_icon_func, data, free_data_func) ⇒ nil

Sets a function to be used for loading icons.

Parameters:

  • load_icon_func (Wnck::LoadIconFunction)

    icon loader function

  • data (GObject)

    data for icon loader function

  • free_data_func (GLib::DestroyNotify)

    function to free the data

Returns:

  • (nil)

#switch_workspace_on_unminimize=(switch_workspace_on_unminimize) ⇒ nil

Sets tasklist to activate or not the Wnck::Workspace a #WnckWindow is on when unminimizing it, according to switch_workspace_on_unminimize.

FIXME: does it still work? Wnck::Window is on when unminimizing it.

Parameters:

  • switch_workspace_on_unminimize (Boolean)

    whether to activate the Wnck::Workspace a

Returns:

  • (nil)