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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new 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.RcStyle</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-gtkrange.html" title="gtk.Range"><link rel="next" href="class-gtkrecentaction.html" title="gtk.RecentAction"></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.RcStyle</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkrange.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkrecentaction.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkrcstyle"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RcStyle</h2><p>gtk.RcStyle — an object holding resource styles</p></div><div class="refsect1" lang="en"><a name="id3619838"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RcStyle</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.RcStyle</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-gtkrange.html" title="gtk.Range"><link rel="next" href="class-gtkrecentaction.html" title="gtk.RecentAction"></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.RcStyle</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkrange.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkrecentaction.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkrcstyle"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RcStyle</h2><p>gtk.RcStyle — an object holding resource styles</p></div><div class="refsect1" lang="en"><a name="id3820643"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RcStyle</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
2
2
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#method-gtkrcstyle--copy" title="gtk.RcStyle.copy">copy</a></span>(<span class="methodparam"></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-gtkrcstyle.html#function-gtk--rc-add-default-file" title="gtk.rc_add_default_file">gtk.rc_add_default_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-set-default-files" title="gtk.rc_set_default_files">gtk.rc_set_default_files</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filenames</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-default-files" title="gtk.rc_get_default_files">gtk.rc_get_default_files</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-style-by-paths" title="gtk.rc_get_style_by_paths">gtk.rc_get_style_by_paths</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>class_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reparse-all-for-settings" title="gtk.rc_reparse_all_for_settings">gtk.rc_reparse_all_for_settings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>force_load</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reset-styles" title="gtk.rc_reset_styles">gtk.rc_reset_styles</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse" title="gtk.rc_parse">gtk.rc_parse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse-string" title="gtk.rc_parse_string">gtk.rc_parse_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rc_string</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reparse-all" title="gtk.rc_reparse_all">gtk.rc_reparse_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-find-module-in-path" title="gtk.rc_find_module_in_path">gtk.rc_find_module_in_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>module_file</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-theme-dir" title="gtk.rc_get_theme_dir">gtk.rc_get_theme_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-module-dir" title="gtk.rc_get_module_dir">gtk.rc_get_module_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-path" title="gtk.rc_get_im_module_path">gtk.rc_get_im_module_path</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-file" title="gtk.rc_get_im_module_file">gtk.rc_get_im_module_file</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3620280"></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-gtkrcstyle.html#function-gtk--rc-add-default-file" title="gtk.rc_add_default_file">gtk.rc_add_default_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-set-default-files" title="gtk.rc_set_default_files">gtk.rc_set_default_files</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filenames</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-default-files" title="gtk.rc_get_default_files">gtk.rc_get_default_files</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-style-by-paths" title="gtk.rc_get_style_by_paths">gtk.rc_get_style_by_paths</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>class_path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>type</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reparse-all-for-settings" title="gtk.rc_reparse_all_for_settings">gtk.rc_reparse_all_for_settings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>force_load</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reset-styles" title="gtk.rc_reset_styles">gtk.rc_reset_styles</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse" title="gtk.rc_parse">gtk.rc_parse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse-string" title="gtk.rc_parse_string">gtk.rc_parse_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rc_string</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-reparse-all" title="gtk.rc_reparse_all">gtk.rc_reparse_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-find-module-in-path" title="gtk.rc_find_module_in_path">gtk.rc_find_module_in_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>module_file</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-theme-dir" title="gtk.rc_get_theme_dir">gtk.rc_get_theme_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-module-dir" title="gtk.rc_get_module_dir">gtk.rc_get_module_dir</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-path" title="gtk.rc_get_im_module_path">gtk.rc_get_im_module_path</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrcstyle.html#function-gtk--rc-get-im-module-file" title="gtk.rc_get_im_module_file">gtk.rc_get_im_module_file</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3821085"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
6
6
  +-- <a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle">gtk.RcStyle</a>
7
7
</pre></div><div class="refsect1" lang="en"><a name="attributes-gtkrcstyle"></a><h2>Attributes</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Available in PyGTK 2.16 and above.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Some of the following attributes are arrays
8
8
      of <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a> or
17
17
                of <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>s
18
18
                to be used for the text colors in each widget state.</td></tr><tr valign="top"><td valign="top">"base"</td><td valign="top">Read</td><td valign="top">An array
19
19
                of <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>s
20
 
                to be used for the base colors in each widget state.</td></tr><tr valign="top"><td valign="top">"xthickness"</td><td valign="top">Read-Write</td><td valign="top">The thickness of lines drawn vertically.</td></tr><tr valign="top"><td valign="top">"ythickness"</td><td valign="top">Read-Write</td><td valign="top">The thickness of lines drawn horizontally.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkrcstyle"></a><h2>gtk.RcStyle Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" lang="en"><a name="id3620608"></a><h2>Description</h2><p><code class="literal">PyGTK</code> via <code class="literal">GTK+</code> provides
 
20
                to be used for the base colors in each widget state.</td></tr><tr valign="top"><td valign="top">"xthickness"</td><td valign="top">Read-Write</td><td valign="top">The thickness of lines drawn vertically.</td></tr><tr valign="top"><td valign="top">"ythickness"</td><td valign="top">Read-Write</td><td valign="top">The thickness of lines drawn horizontally.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkrcstyle"></a><h2>gtk.RcStyle Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" lang="en"><a name="id3821413"></a><h2>Description</h2><p><code class="literal">PyGTK</code> via <code class="literal">GTK+</code> provides
21
21
resource file mechanism for configuring various aspects of the operation of
22
22
a program at runtime.</p><p>An application can cause <code class="literal">GTK+</code> to parse a
23
23
specific RC file by calling the <a class="link" href="class-gtkrcstyle.html#function-gtk--rc-parse" title="gtk.rc_parse"><code class="function">gtk.rc_parse</code>()</a>
191
191
file, <code class="literal">theme</code> is the default for bindings read from theme
192
192
RC files, <code class="literal">application</code> should be used for bindings an
193
193
application sets up, and <code class="literal">gtk</code> is used for bindings that
194
 
<code class="literal">GTK+</code> creates internally.</p></div><div class="refsect1" lang="en"><a name="id3622057"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkrcstyle--copy"></a><h3>gtk.RcStyle.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</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 <a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a> that is
 
194
<code class="literal">GTK+</code> creates internally.</p></div><div class="refsect1" lang="en"><a name="id3822862"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkrcstyle--copy"></a><h3>gtk.RcStyle.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</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 <a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a> that is
195
195
a copy of the rcstyle</td></tr></tbody></table><p>The copy() method returns a new <a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a> that is
196
196
a copy of the RC style. This method will correctly copy an RC style that is
197
 
a member of a class derived from <a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a>.</p></div></div><div class="refsect1" lang="en"><a name="id3622142"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--rc-add-default-file"></a><h3>gtk.rc_add_default_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.rc_add_default_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></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>filename</code></strong> :</span></p></td><td>the name of a file containing resource
 
197
a member of a class derived from <a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a>.</p></div></div><div class="refsect1" lang="en"><a name="id3822948"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--rc-add-default-file"></a><h3>gtk.rc_add_default_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.rc_add_default_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></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>filename</code></strong> :</span></p></td><td>the name of a file containing resource
198
198
data</td></tr></tbody></table><p>The <code class="function">gtk.rc_add_default_file</code>() function adds
199
199
the file specified by <em class="parameter"><code>filename</code></em> to the list of files
200
200
to be parsed for resource data.</p></div><div class="refsect2" lang="en"><a name="function-gtk--rc-set-default-files"></a><h3>gtk.rc_set_default_files</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.rc_set_default_files</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filenames</code></strong></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>filenames</code></strong> :</span></p></td><td>a list of filenames</td></tr></tbody></table><p>The <code class="function">gtk.rc_set_default_files</code>() function