![]() |
![]() |
![]() |
Shell Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
struct ShellWindowTrackerClass; ShellWindowTracker * shell_window_tracker_get_default (void
); ShellApp * shell_window_tracker_get_window_app (ShellWindowTracker *tracker
,MetaWindow *metawin
); ShellApp * shell_window_tracker_get_app_from_pid (ShellWindowTracker *tracker
,int pid
); gboolean shell_window_tracker_is_window_interesting (MetaWindow *window
); GSList * shell_window_tracker_get_startup_sequences (ShellWindowTracker *tracker
); const char * shell_startup_sequence_get_id (ShellStartupSequence *sequence
); ShellApp * shell_startup_sequence_get_app (ShellStartupSequence *sequence
); const char * shell_startup_sequence_get_name (ShellStartupSequence *sequence
); gboolean shell_startup_sequence_get_completed (ShellStartupSequence *sequence
); int shell_startup_sequence_get_workspace (ShellStartupSequence *sequence
); ClutterActor * shell_startup_sequence_create_icon (ShellStartupSequence *sequence
,guint size
); ShellWindowTracker; ShellStartupSequence;
Maintains a mapping from windows to applications (.desktop file ids). It currently implements this with some heuristics on the WM_CLASS X11 property (and some static override regexps); in the future, we want to have it also track through startup-notification.
ShellWindowTracker * shell_window_tracker_get_default (void
);
Returns : |
The global ShellWindowTracker instance. [transfer none] |
ShellApp * shell_window_tracker_get_window_app (ShellWindowTracker *tracker
,MetaWindow *metawin
);
|
An app monitor instance |
|
A MetaWindow |
Returns : |
Application associated with window. [transfer full] |
ShellApp * shell_window_tracker_get_app_from_pid (ShellWindowTracker *tracker
,int pid
);
Look up the application corresponding to a process.
|
A ShellAppSystem |
|
A Unix process identifier |
Returns : |
A ShellApp, or NULL if none. [transfer none]
|
gboolean shell_window_tracker_is_window_interesting
(MetaWindow *window
);
The ShellWindowTracker associates certain kinds of windows with applications; however, others we don't want to appear in places where we want to give a list of windows for an application, such as the alt-tab dialog.
An example of a window we don't want to show is the root desktop window. We skip all override-redirect types, and also exclude other window types like tooltip explicitly, though generally most of these should be override-redirect.
Returns : |
TRUE iff a window is "interesting" |
GSList * shell_window_tracker_get_startup_sequences
(ShellWindowTracker *tracker
);
Returns : |
Currently active startup sequences. [transfer none][element-type ShellStartupSequence] |
const char * shell_startup_sequence_get_id (ShellStartupSequence *sequence
);
ShellApp * shell_startup_sequence_get_app (ShellStartupSequence *sequence
);
|
A ShellStartupSequence |
Returns : |
The application being launched, or NULL if unknown. [transfer none]
|
const char * shell_startup_sequence_get_name (ShellStartupSequence *sequence
);
gboolean shell_startup_sequence_get_completed
(ShellStartupSequence *sequence
);
int shell_startup_sequence_get_workspace
(ShellStartupSequence *sequence
);
ClutterActor * shell_startup_sequence_create_icon (ShellStartupSequence *sequence
,guint size
);
|
Size in pixels of icon |
Returns : |
A new ClutterTexture containing an icon for the sequence. [transfer none] |
"startup-sequence-changed"
signalvoid user_function (ShellWindowTracker *shellwindowtracker,
ShellStartupSequence *arg1,
gpointer user_data) : Run Last
"tracked-windows-changed"
signalvoid user_function (ShellWindowTracker *shellwindowtracker,
gpointer user_data) : Run Last