/usr/share/gtk-doc/html/pygtk/class-gdkapplaunchcontext.html is in python-gtk2-doc 2.24.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk.AppLaunchContext</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gdk-class-reference.html" title="The gtk.gdk Class Reference"><link rel="prev" href="gdk-class-reference.html" title="The gtk.gdk Class Reference"><link rel="next" href="class-gdkatom.html" title="gtk.gdk.Atom"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.gdk.AppLaunchContext</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="gdk-class-reference.html">Prev</a> </td><th width="60%" align="center">The gtk.gdk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gdkatom.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.gdk.AppLaunchContext"><a name="class-gdkapplaunchcontext"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.AppLaunchContext</h2><p>gtk.gdk.AppLaunchContext — Startup notification for applications.</p></div><div class="refsect1" title="Synopsis"><a name="id3291012"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.AppLaunchContext</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gioapplaunchcontext">gio.AppLaunchContext</PYGTKDOCLINK></span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkapplaunchcontext.html#method-gdkapplaunchcontext--set-desktop" title="gtk.gdk.AppLaunchContext.set_desktop">set_desktop</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>desktop</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkapplaunchcontext.html#method-gdkapplaunchcontext--set-display" title="gtk.gdk.AppLaunchContext.set_display">set_display</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>display</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkapplaunchcontext.html#method-gdkapplaunchcontext--set-icon" title="gtk.gdk.AppLaunchContext.set_icon">set_icon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkapplaunchcontext.html#method-gdkapplaunchcontext--set-icon-name" title="gtk.gdk.AppLaunchContext.set_icon_name">set_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><PYGTKDOCLINK HREF="method-gdkapplaunchcontext--set-screen">set_screen</PYGTKDOCLINK></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkapplaunchcontext.html#method-gdkapplaunchcontext--set-timestamp" title="gtk.gdk.AppLaunchContext.set_timestamp">set_timestamp</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>timestamp</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3290851"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gioapplaunchcontext">gio.AppLaunchContext</PYGTKDOCLINK>
+-- <a class="link" href="class-gdkapplaunchcontext.html" title="gtk.gdk.AppLaunchContext">gtk.gdk.AppLaunchContext</a>
</pre></div><div class="refsect1" title="Description"><a name="id3290833"></a><h2>Description</h2><p>
The <a class="link" href="class-gdkapplaunchcontext.html" title="gtk.gdk.AppLaunchContext"><code class="classname">gtk.gdk.AppLaunchContext</code></a>
is an implementation of <PYGTKDOCLINK HREF="class-gioapplaunchcontext">gio.AppLaunchContext</PYGTKDOCLINK>
that handles launching an application in a graphical context. It provides startup notification
and allows to launch applications on a specific screen or workspace.
</p></div><div class="refsect1" title="Methods"><a name="id3290808"></a><h2>Methods</h2><div class="refsect2" title="gtk.gdk.AppLaunchContext.set_display"><a name="method-gdkapplaunchcontext--set-display"></a><h3>gtk.gdk.AppLaunchContext.set_display</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_display</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td><td>a
<a class="link" href="class-gdkdisplay.html" title="gtk.gdk.Display"><code class="classname">gtk.gdk.Display</code></a>.
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
The <code class="methodname">set_display</code>() method sets the display
on which applications will be launched when using this context. See also
<code class="methodname"><PYGTKDOCLINK HREF="method-gdkapplaunchcontext--set-screen">set_screen</PYGTKDOCLINK></code>.
</p></div><div class="refsect2" title="gtk.gdk.AppLaunchContext.set_desktop"><a name="method-gdkapplaunchcontext--set-desktop"></a><h3>gtk.gdk.AppLaunchContext.set_desktop</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_desktop</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>desktop</code></em> :</span></p></td><td>the number of a workspace, or -1
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
The <code class="methodname">set_desktop</code>() method sets the workspace
on which applications will be launched when using this context when
running under a window manager that supports multiple workspaces, as
described in the Extended Window Manager Hints.
</p><p>
When the workspace is not specified or desktop is set to -1, it is
up to the window manager to pick one, typically it will be the current workspace.
</p></div><div class="refsect2" title="gtk.gdk.AppLaunchContext.set_icon"><a name="method-gdkapplaunchcontext--set-icon"></a><h3>gtk.gdk.AppLaunchContext.set_icon</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_icon</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td><td>a
<PYGTKDOCLINK HREF="class-gioicon"><code class="classname">gio.Icon</code></PYGTKDOCLINK>,
or <code class="literal">None</code>.
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
The <code class="methodname">set_icon</code>() method sets the icon for
applications that are launched with this context. See also
<code class="methodname"><a class="link" href="class-gdkapplaunchcontext.html#method-gdkapplaunchcontext--set-icon-name" title="gtk.gdk.AppLaunchContext.set_icon_name">set_icon_name</a></code>.
</p></div><div class="refsect2" title="gtk.gdk.AppLaunchContext.set_icon_name"><a name="method-gdkapplaunchcontext--set-icon-name"></a><h3>gtk.gdk.AppLaunchContext.set_icon_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_icon_name</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon_name</code></em> :</span></p></td><td>an icon name, or <code class="literal">None</code>.
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
The <code class="methodname">set_icon_name</code>() method sets the icon
for applications that are launched with this context. The icon_name
will be interpreted in the same way as the Icon field in desktop files. See also
<code class="methodname"><a class="link" href="class-gdkapplaunchcontext.html#method-gdkapplaunchcontext--set-icon" title="gtk.gdk.AppLaunchContext.set_icon">set_icon</a></code>.
</p><p>
If both icon and icon_name are set, the icon_name takes priority.
If neither icon or icon_name is set, the icon is taken from either the
file that is passed to launched application or from the
<PYGTKDOCLINK HREF="class-gioappinfo"><code class="classname">gio.AppInfo</code></PYGTKDOCLINK>
for the launched application itself.
</p></div><div class="refsect2" title="gtk.gdk.AppLaunchContext.set_timestamp"><a name="method-gdkapplaunchcontext--set-timestamp"></a><h3>gtk.gdk.AppLaunchContext.set_timestamp</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_timestamp</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td><td>a timestamp
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
The <code class="methodname">set_timestamp</code>() method sets the timestamp of
context. The timestamp should ideally be taken from the event that triggered the launch.
</p><p>
Window managers can use this information to avoid moving the focus
to the newly launched application when the user is busy typing in
another window. This is also known as 'focus stealing prevention'.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="gdk-class-reference.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gdk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gdkatom.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The gtk.gdk Class Reference </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.gdk.Atom</td></tr></table></div></body></html>
|