This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gtkinfobar.html is in python-gtk2-doc 2.24.0-4ubuntu1.

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
52
53
54
55
56
57
58
59
60
61
62
63
64
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.InfoBar</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="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkimmulticontext.html" title="gtk.IMMulticontext"><link rel="next" href="class-gtkinputdialog.html" title="gtk.InputDialog"></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.InfoBar</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkimmulticontext.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkinputdialog.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.InfoBar"><a name="class-gtkinfobar"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.InfoBar</h2><p>gtk.InfoBar — report important messages to the user (new in PyGTK 2.22)</p></div><div class="refsect1" title="Synopsis"><a name="id3763274"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.InfoBar</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkhbox.html" title="gtk.HBox">gtk.HBox</a></span></span>):
<code class="constructorsynopsis">    <span class="methodname"><PYGTKDOCLINK HREF="constructor-gtkinfobar">gtk.InfoBar</PYGTKDOCLINK></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--get-action-area" title="gtk.InfoBar.get_action_area">get_action_area</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--get-content-area" title="gtk.InfoBar.get_content_area">get_content_area</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--add-action-widget" title="gtk.InfoBar.add_action_widget">add_action_widget</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--add-button" title="gtk.InfoBar.add_button">add_button</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>button_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--add-buttons" title="gtk.InfoBar.add_buttons">add_buttons</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>first_button_text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--set-response-sensitive" title="gtk.InfoBar.set_response_sensitive">set_response_sensitive</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--set-default-response" title="gtk.InfoBar.set_default_response">set_default_response</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--response" title="gtk.InfoBar.response">response</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--set-message-type" title="gtk.InfoBar.set_message_type">set_message_type</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>message_type</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkinfobar.html#method-gtkinfobar--get-message-type" title="gtk.InfoBar.get_message_type">get_message_type</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3763619"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">GObject</PYGTKDOCLINK>
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
        +-- <a class="link" href="class-gtkbox.html" title="gtk.Box">gtk.Box</a>
          +-- <a class="link" href="class-gtkhbox.html" title="gtk.HBox">gtk.HBox</a>
            +-- <a class="link" href="class-gtkinfobar.html" title="gtk.InfoBar">gtk.InfoBar</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3763676"></a><h2>Implemented Interfaces</h2><p>
      <a class="link" href="class-gtkinfobar.html" title="gtk.InfoBar"><code class="classname">gtk.InfoBar</code></a>
      implements
      <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
      <a class="link" href="class-atkimplementor.html" title="atk.Implementor"><code class="classname">atk.ImplementorIFace</code></a>
    </p></div><div class="refsect1" title="gtk.InfoBar Properties"><a name="properties-gtkinfobar"></a><h2>gtk.InfoBar Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><p><a class="link" href="class-gtkbox.html#properties-gtkbox" title="gtk.Box Properties">gtk.Box Properties</a></p><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="4in"></colgroup><tbody><tr valign="top"><td valign="top">"message-type"</td><td valign="top">Read-Write-Construct</td><td valign="top">The type of the message.
              The type is used to determine the colors to use in the info bar. The following
              symbolic color names can by used to customize these colors: "info_fg_color",
              "info_bg_color", "warning_fg_color", "warning_bg_color", "question_fg_color",
              "question_bg_color", "error_fg_color", "error_bg_color". "other_fg_color", "other_bg_color".
              If the type is gtk.MESSAGE_OTHER, no info bar is painted but the colors are still set.
              Default value: gtk.MESSAGE_INFO
              This property is available in GTK+ 2.18 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.InfoBar Style Properties"><a name="style-properties-gtkinfobar"></a><h2>gtk.InfoBar Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><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="4in"></colgroup><tbody><tr valign="top"><td valign="top">"action-area-border"</td><td valign="top">Read</td><td valign="top">Width of the border around the action area of the info bar.
              Allowed values: &gt;= 0
              Default value: 5
              This property is available in GTK+ 2.18 and above.</td></tr><tr valign="top"><td valign="top">"button-spacing"</td><td valign="top">Read</td><td valign="top">Spacing between buttons in the action area of the info bar.
              Allowed values: &gt;=0
              Default value: 6
              This property is available in GTK+ 2.18 and above.</td></tr><tr valign="top"><td valign="top">"content-area-border"</td><td valign="top">Read</td><td valign="top">The width of the border around the content content area of the info bar.
              Allowed values: &gt;=0
              Default value: 8
              This property is available in GTK+ 2.18 and above.</td></tr><tr valign="top"><td valign="top">"content-area-spacing"</td><td valign="top">Read</td><td valign="top">The default spacing used between elements of the content area of the info bar.
              Allowed values: &gt;=0
              Default value: 16
              This property is available in GTK+ 2.18 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.InfoBar Signal Prototypes"><a name="signal-prototypes-gtkinfobar"></a><h2>gtk.InfoBar Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtkinfobar.html#signal-gtkinfobar--close" title='The "close" gtk.InfoBar Signal'>close</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>infobar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtkinfobar.html#signal-gtkinfobar--response" title='The "response" gtk.InfoBar Signal'>response</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>infobar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>response_id</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="id3764155"></a><h2>Description</h2><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.22 and above.</p></div><p><a class="link" href="class-gtkinfobar.html" title="gtk.InfoBar"><code class="classname">gtk.InfoBar</code></a>
    is a widget that can be used to show messages to the user without showing a dialog.
    It is often temporarily shown at the top or bottom of a document. In contrast to
    <a class="link" href="class-gtkdialog.html" title="gtk.Dialog"><code class="classname">gtk.Dialog</code></a>, which has
    a horizontal action area at the bottom,
    <a class="link" href="class-gtkinfobar.html" title="gtk.InfoBar"><code class="classname">gtk.InfoBar</code></a> has a vertical
    action area at the side.</p></div><div class="refsect1" title="Constructor"><a name="id3764199"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname"><PYGTKDOCLINK HREF="constructor-gtkinfobar">gtk.InfoBar</PYGTKDOCLINK></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-gtkinfobar.html" title="gtk.InfoBar"><code class="classname">gtk.InfoBar</code></a> object</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 constructor is available in PyGTK 2.22 and above.</p></div><p>Creates a new <a class="link" href="class-gtkinfobar.html" title="gtk.InfoBar"><code class="classname">gtk.InfoBar</code></a> object.</p></div><div class="refsect1" title="Methods"><a name="id3764275"></a><h2>Methods</h2><div class="refsect2" title="gtk.InfoBar.get_action_area"><a name="method-gtkinfobar--get-action-area"></a><h3>gtk.InfoBar.get_action_area</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_action_area</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 action area</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.22 and above.</p></div><p>The <code class="methodname">get_action_area</code>() method returns the action area of the infobar.</p></div><div class="refsect2" title="gtk.InfoBar.get_content_area"><a name="method-gtkinfobar--get-content-area"></a><h3>gtk.InfoBar.get_content_area</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_content_area</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 content area</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.22 and above.</p></div><p>The <code class="methodname">get_content_area</code>() method returns the content area of the infobar.</p></div><div class="refsect2" title="gtk.InfoBar.add_action_widget"><a name="method-gtkinfobar--add-action-widget"></a><h3>gtk.InfoBar.add_action_widget</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add_action_widget</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>child</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</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>child</code></strong> :</span></p></td><td>an activatable widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>response_id</code></strong> :</span></p></td><td>response ID for <em class="parameter"><code>child</code></em></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.22 and above.</p></div><p>Add an activatable widget to the action area of a
<a class="link" href="class-gtkinfobar.html" title="gtk.InfoBar"><code class="classname">gtk.InfoBar</code></a>,
connecting a signal handler that will emit the
<a class="link" href="class-gtkinfobar.html" title="gtk.InfoBar"><code class="classname">gtk.InfoBar</code></a>::response
signal on the message area when the widget is activated. The widget
is appended to the end of the message areas action area.</p></div><div class="refsect2" title="gtk.InfoBar.add_button"><a name="method-gtkinfobar--add-button"></a><h3>gtk.InfoBar.add_button</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add_button</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>button_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</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>button_text</code></strong> :</span></p></td><td>text of button, or stock ID</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>response_id</code></strong> :</span></p></td><td>response ID for the button</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the button widget that was added</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.22 and above.</p></div><p>Adds a button with the given text (or a stock button, if button_text
is a stock ID) and sets things up so that clicking the button will emit
the "response" signal with the given response_id. The button is appended
to the end of the info bars's action area. The button widget is
returned, but usually you don't need it.</p></div><div class="refsect2" title="gtk.InfoBar.add_buttons"><a name="method-gtkinfobar--add-buttons"></a><h3>gtk.InfoBar.add_buttons</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add_buttons</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>first_button_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>first_response_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>...</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>first_button_text</code></strong> :</span></p></td><td>button text or stock ID</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>first_response_id</code></strong> :</span></p></td><td>response ID for the button</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.22 and above.</p></div><p>Adds more buttons, same as calling
<a class="link" href="class-gtkinfobar.html#method-gtkinfobar--add-button" title="gtk.InfoBar.add_button"><code class="methodname">add_button</code></a>()
repeatedly. Each button must have both text and response ID.</p></div><div class="refsect2" title="gtk.InfoBar.set_response_sensitive"><a name="method-gtkinfobar--set-response-sensitive"></a><h3>gtk.InfoBar.set_response_sensitive</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_response_sensitive</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</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>response_id</code></strong> :</span></p></td><td>a response ID</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>setting</code></strong> :</span></p></td><td>TRUE for sensitive</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.22 and above.</p></div><p>Calls <a class="link" href="class-gtkwidget.html#method-gtkwidget--set-sensitive" title="gtk.Widget.set_sensitive"><code class="methodname">gtk.Widget.set_sensitive</code>()</a>
for each widget in the info bars's action area with the given response_id.
A convenient way to sensitize/desensitize dialog buttons.</p></div><div class="refsect2" title="gtk.InfoBar.set_default_response"><a name="method-gtkinfobar--set-default-response"></a><h3>gtk.InfoBar.set_default_response</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_default_response</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</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>response_id</code></strong> :</span></p></td><td>a response ID</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.22 and above.</p></div><p>The <code class="methodname">set_default_response</code>() method
sets the last widget in the info bar's action area with
the given response_id as the default widget for the dialog.
Pressing "Enter" normally activates the default widget.
      </p><p> Note that this function currently requires the infobar to
be added to a widget hierarchy.</p></div><div class="refsect2" title="gtk.InfoBar.response"><a name="method-gtkinfobar--response"></a><h3>gtk.InfoBar.response</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">response</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>response_id</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>response_id</code></strong> :</span></p></td><td>a response ID</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.22 and above.</p></div><p>Emits the 'response' signal with the given <em class="parameter"><code>response_id</code></em>.</p></div><div class="refsect2" title="gtk.InfoBar.set_message_type"><a name="method-gtkinfobar--set-message-type"></a><h3>gtk.InfoBar.set_message_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_message_type</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>message_type</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>message_type</code></strong> :</span></p></td><td>a <code class="literal">GtkMessageType</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.22 and above.</p></div><p>The <code class="methodname">set_message_type</code>() method sets
the message type of the message area. GTK+ uses this type to determine what
color to use when drawing the message area.</p></div><div class="refsect2" title="gtk.InfoBar.get_message_type"><a name="method-gtkinfobar--get-message-type"></a><h3>gtk.InfoBar.get_message_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_message_type</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 message type of the message area.</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.22 and above.</p></div><p>The <code class="methodname">get_message_type</code>() method returns
      the message type of the message area.</p></div></div><div class="refsect1" title="Signals"><a name="id3765244"></a><h2>Signals</h2><div class="refsect2" title='The "close" gtk.InfoBar Signal'><a name="signal-gtkinfobar--close"></a><h3>The "close" gtk.InfoBar Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>infobar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</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"><em class="parameter"><code>infobar</code></em> :</span></p></td><td>the infobar that received the signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK> method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</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 signal is available in GTK+ 2.18 and above.</p></div><p>The "close" signal keybinding signal which gets emitted when the user
      uses a keybinding to dismiss the info bar. The default binding for this signal
      is the Escape key.</p></div><div class="refsect2" title='The "response" gtk.InfoBar Signal'><a name="signal-gtkinfobar--response"></a><h3>The "response" gtk.InfoBar Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>infobar</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>response_id</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</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"><em class="parameter"><code>infobar</code></em> :</span></p></td><td>the infobar that received the signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>response_id</code></em> :</span></p></td><td>the response ID</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK> method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</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 signal is available in GTK+ 2.18 and above.</p></div><p>The "response" signal is emitted when an action widget is clicked or the
      application programmer calls <a class="link" href="class-gtkinfobar.html#method-gtkinfobar--response" title="gtk.InfoBar.response"><code class="methodname">response</code></a>().
      The response_id depends on which action widget was clicked.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkimmulticontext.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtkinputdialog.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.IMMulticontext </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.InputDialog</td></tr></table></div></body></html>