~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtkmountoperation.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-07 11:08:47 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107110847-f5av7e1ttudh7ra6
Tags: 2.17.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.MountOperation</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkmisc.html" title="gtk.Misc"><link rel="next" href="class-gtknotebook.html" title="gtk.Notebook"></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.MountOperation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkmisc.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtknotebook.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkmountoperation"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.MountOperation</h2><p>gtk.MountOperation — Functions for working with GIO (new in PyGTK 2.14)</p></div><div class="refsect1" lang="en"><a name="id3591004"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.MountOperation</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-giomountoperation">gio.MountOperation</PYGTKDOCLINK></span></span>):
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.MountOperation</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkmisc.html" title="gtk.Misc"><link rel="next" href="class-gtknotebook.html" title="gtk.Notebook"></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.MountOperation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkmisc.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtknotebook.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.MountOperation"><a name="class-gtkmountoperation"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.MountOperation</h2><p>gtk.MountOperation — Functions for working with GIO (new in PyGTK 2.14)</p></div><div class="refsect1" title="Synopsis"><a name="id3900900"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.MountOperation</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-giomountoperation">gio.MountOperation</PYGTKDOCLINK></span></span>):
2
2
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkmountoperation.html#method-gtkmountoperation--get-parent" title="gtk.MountOperation.get_parent">get_parent</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkmountoperation.html#method-gtkmountoperation--get-screen" title="gtk.MountOperation.get_screen">get_screen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkmountoperation.html#method-gtkmountoperation--is-showing" title="gtk.MountOperation.is_showing">is_showing</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkmountoperation.html#method-gtkmountoperation--set-parent" title="gtk.MountOperation.set_parent">set_parent</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkmountoperation.html#method-gtkmountoperation--set-screen" title="gtk.MountOperation.set_screen">set_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
3
3
<span class="bold"><strong>Functions</strong></span>
4
4
 
5
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkmountoperation.html#function-gtk--show-uri" title="gtk.show_uri">gtk.show_uri</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>timestamp</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3591215"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
5
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkmountoperation.html#function-gtk--show-uri" title="gtk.show_uri">gtk.show_uri</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>timestamp</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3901111"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
6
6
  +-- <PYGTKDOCLINK HREF="class-giomountoperation">gio.MountOperation</PYGTKDOCLINK>
7
7
    +-- <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation">gtk.MountOperation</a>
8
 
</pre></div><div class="refsect1" lang="en"><a name="properties-gtkmountoperation"></a><h2>gtk.MountOperation Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"is-showing"</td><td valign="top">Read</td><td valign="top">Are we showing a dialog. Default value: <code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"parent"</td><td valign="top">Read/Write</td><td valign="top">The parent window.</td></tr><tr valign="top"><td valign="top">"screen"</td><td valign="top">Read/Write</td><td valign="top">The screen where this window will be displayed.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3591364"></a><h2>Description</h2><p>
 
8
</pre></div><div class="refsect1" title="gtk.MountOperation Properties"><a name="properties-gtkmountoperation"></a><h2>gtk.MountOperation Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"is-showing"</td><td valign="top">Read</td><td valign="top">Are we showing a dialog. Default value: <code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"parent"</td><td valign="top">Read/Write</td><td valign="top">The parent window.</td></tr><tr valign="top"><td valign="top">"screen"</td><td valign="top">Read/Write</td><td valign="top">The screen where this window will be displayed.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="id3901260"></a><h2>Description</h2><p>
9
9
                The functions and objects described here make working with GTK+ and GIO more convenient.
10
10
                <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>
11
11
                is needed when mounting volumes and
14
14
                mentioning in this context is 
15
15
                <a class="link" href="class-gdkapplaunchcontext.html" title="gtk.gdk.AppLaunchContext"><code class="classname">gtk.gdk.AppLaunchContext</code></a>,
16
16
                which provides visual feedback when lauching applications.
17
 
            </p></div><div class="refsect1" lang="en"><a name="constructor-gtkmountoperation"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.MountOperation</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span><span class="initializer">=None</span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>parent</code></strong> :</span></p></td><td>transient parent of the window, or
 
17
            </p></div><div class="refsect1" title="Constructor"><a name="constructor-gtkmountoperation"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.MountOperation</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span><span class="initializer">=None</span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>parent</code></strong> :</span></p></td><td>transient parent of the window, or
18
18
        <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new
19
19
        <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>.
20
 
        </td></tr></tbody></table><div class="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>
 
20
        </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>
21
21
        Creates a new <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>.
22
 
    </p></div><div class="refsect1" lang="en"><a name="id3591518"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkmountoperation--get-parent"></a><h3>gtk.MountOperation.get_parent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_parent</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new
 
22
    </p></div><div class="refsect1" title="Methods"><a name="id3901414"></a><h2>Methods</h2><div class="refsect2" title="gtk.MountOperation.get_parent"><a name="method-gtkmountoperation--get-parent"></a><h3>gtk.MountOperation.get_parent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_parent</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new
23
23
                    <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>.
24
 
                    </td></tr></tbody></table><div class="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>
 
24
                    </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>
25
25
                The <code class="methodname">get_parent</code>() method gets the transient
26
26
                parent used by the
27
27
                <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>.
28
 
            </p></div><div class="refsect2" lang="en"><a name="method-gtkmountoperation--get-screen"></a><h3>gtk.MountOperation.get_screen</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_screen</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the screen on which windows of op are shown.
29
 
                    </td></tr></tbody></table><div class="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>
 
28
            </p></div><div class="refsect2" title="gtk.MountOperation.get_screen"><a name="method-gtkmountoperation--get-screen"></a><h3>gtk.MountOperation.get_screen</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_screen</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the screen on which windows of op are shown.
 
29
                    </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>
30
30
                The <code class="methodname">get_screen</code>() method gets the screen
31
31
                on which windows of the
32
32
                <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>
33
33
                will be shown.
34
 
            </p></div><div class="refsect2" lang="en"><a name="method-gtkmountoperation--is-showing"></a><h3>gtk.MountOperation.is_showing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">is_showing</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if op is currently displaying a window.
35
 
                    </td></tr></tbody></table><div class="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>
 
34
            </p></div><div class="refsect2" title="gtk.MountOperation.is_showing"><a name="method-gtkmountoperation--is-showing"></a><h3>gtk.MountOperation.is_showing</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">is_showing</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if op is currently displaying a window.
 
35
                    </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>
36
36
                The <code class="methodname">is_showing</code>() method returns whetherthe
37
37
                <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>
38
38
                is currently displaying a window.
39
 
            </p></div><div class="refsect2" lang="en"><a name="method-gtkmountoperation--set-parent"></a><h3>gtk.MountOperation.set_parent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_parent</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>parent</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>parent</code></strong> :</span></p></td><td>transient parent of the window,
40
 
                        or <code class="literal">None</code>.</td></tr></tbody></table><div class="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>
 
39
            </p></div><div class="refsect2" title="gtk.MountOperation.set_parent"><a name="method-gtkmountoperation--set-parent"></a><h3>gtk.MountOperation.set_parent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_parent</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>parent</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>parent</code></strong> :</span></p></td><td>transient parent of the window,
 
40
                        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>
41
41
                The <code class="methodname">set_parent</code>() method sets the
42
42
                transient parent for windows shown by the
43
43
                <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>.
44
 
            </p></div><div class="refsect2" lang="en"><a name="method-gtkmountoperation--set-screen"></a><h3>gtk.MountOperation.set_screen</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_screen</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>screen</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>screen</code></strong> :</span></p></td><td>a
 
44
            </p></div><div class="refsect2" title="gtk.MountOperation.set_screen"><a name="method-gtkmountoperation--set-screen"></a><h3>gtk.MountOperation.set_screen</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_screen</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>screen</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>screen</code></strong> :</span></p></td><td>a
45
45
                        <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a>.
46
 
                        </td></tr></tbody></table><div class="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>
 
46
                        </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>
47
47
                The <code class="methodname">set_screen</code>() method gets the screen
48
48
                on which windows of the
49
49
                <a class="link" href="class-gtkmountoperation.html" title="gtk.MountOperation"><code class="classname">gtk.MountOperation</code></a>
50
50
                will be shown.
51
 
            </p></div></div><div class="refsect1" lang="en"><a name="id3591963"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--show-uri"></a><h3>gtk.show_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">show_uri</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>screen</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>uri</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>timestamp</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>screen</code></strong> :</span></p></td><td>A
 
51
            </p></div></div><div class="refsect1" title="Functions"><a name="id3901859"></a><h2>Functions</h2><div class="refsect2" title="gtk.show_uri"><a name="function-gtk--show-uri"></a><h3>gtk.show_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">show_uri</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>screen</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>uri</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>timestamp</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>screen</code></strong> :</span></p></td><td>A
52
52
                            <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a>
53
53
                            to show the uri on or <code class="literal">None</code> for the default screen.
54
54
                        </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>uri</code></strong> :</span></p></td><td>the uri to show.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>timestamp</code></strong> :</span></p></td><td>a timestamp to prevent focus stealing.
55
 
                        </td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.14 and above.</p></div><p>
 
55
                        </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 function is available in PyGTK 2.14 and above.</p></div><p>
56
56
                The <code class="methodname">show_uri</code>() function is a convenience
57
57
                function for launching the default application to show the uri.
58
58
                The uri must be of a form understood by GIO. Typical examples are: