HudWindowSource

HudWindowSource — a HudSource for the menubars of windows

Synopsis

                    HudWindowSource;
HudWindowSource *   hud_window_source_new               (void);

Object Hierarchy

  GObject
   +----HudWindowSource

Implemented Interfaces

HudWindowSource implements HudSource.

Description

HudWindowSource is a HudSource that allows searching for items in the menubars of application windows.

The source tracks which is the active window of the application, using BAMF. hud_source_search() calls will be redirected to an appropriate source corresponding to the active window. When the active window changes, the HudSource::changed signal will be emitted.

GMenuModel and Dbusmenu-style menus are both understood. They are implemented via HudMenuModelCollector and HudDbusmenuCollector, respectively.

HudWindowSource takes care to avoid various bits of desktop chrome from becoming considered as the active window. This is done via a built-in blacklist. It is also possible, for testing purposes, to use the INDICATOR_APPMENU_DEBUG_APPS environment variable to specify a list of desktop file names corresponding to applications to ignore windows from (for example, the terminal).

Details

HudWindowSource

typedef struct _HudWindowSource HudWindowSource;

This is an opaque structure type.


hud_window_source_new ()

HudWindowSource *   hud_window_source_new               (void);

Creates a HudWindowSource.

Returns :

a new HudWindowSource