~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/GtkInfoBar.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-06-11 12:19:30 UTC
  • mfrom: (1.11.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 175.
  • Revision ID: james.westby@ubuntu.com-20100611121930-n4pklvkoqdsg12vm
Tags: 2.21.2-1
* New upstream development release:
  + debian/rules,
    debian/libgtk2.0-0.symbols:
    - Update for new API symbols.
  + debian/patches/070_mandatory-relibtoolize.patch:
    - Regenerated for the new version.
  + debian/control.in:
    - Update GLib (build-) dependency to >= 2.25.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
                    <a class="link" href="GtkInfoBar.html#GtkInfoBar-struct" title="GtkInfoBar">GtkInfoBar</a>;
54
54
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkInfoBar.html#gtk-info-bar-new" title="gtk_info_bar_new ()">gtk_info_bar_new</a>                    (<em class="parameter"><code><span class="type">void</span></code></em>);
55
 
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkInfoBar.html#gtk-info-bar-new-with-buttons" title="gtk_info_bar_new_with_buttons ()">gtk_info_bar_new_with_buttons</a>       (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
 
55
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkInfoBar.html#gtk-info-bar-new-with-buttons" title="gtk_info_bar_new_with_buttons ()">gtk_info_bar_new_with_buttons</a>       (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
56
56
                                                         <em class="parameter"><code>...</code></em>);
57
57
<span class="returnvalue">void</span>                <a class="link" href="GtkInfoBar.html#gtk-info-bar-add-action-widget" title="gtk_info_bar_add_action_widget ()">gtk_info_bar_add_action_widget</a>      (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
58
58
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
59
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
 
59
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
60
60
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkInfoBar.html#gtk-info-bar-add-button" title="gtk_info_bar_add_button ()">gtk_info_bar_add_button</a>             (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
61
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *button_text</code></em>,
62
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
 
61
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *button_text</code></em>,
 
62
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
63
63
<span class="returnvalue">void</span>                <a class="link" href="GtkInfoBar.html#gtk-info-bar-add-buttons" title="gtk_info_bar_add_buttons ()">gtk_info_bar_add_buttons</a>            (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
64
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
 
64
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
65
65
                                                         <em class="parameter"><code>...</code></em>);
66
66
<span class="returnvalue">void</span>                <a class="link" href="GtkInfoBar.html#gtk-info-bar-set-response-sensitive" title="gtk_info_bar_set_response_sensitive ()">gtk_info_bar_set_response_sensitive</a> (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
67
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>,
68
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
 
67
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>,
 
68
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
69
69
<span class="returnvalue">void</span>                <a class="link" href="GtkInfoBar.html#gtk-info-bar-set-default-response" title="gtk_info_bar_set_default_response ()">gtk_info_bar_set_default_response</a>   (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
70
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
 
70
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
71
71
<span class="returnvalue">void</span>                <a class="link" href="GtkInfoBar.html#gtk-info-bar-response" title="gtk_info_bar_response ()">gtk_info_bar_response</a>               (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
72
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
 
72
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);
73
73
<span class="returnvalue">void</span>                <a class="link" href="GtkInfoBar.html#gtk-info-bar-set-message-type" title="gtk_info_bar_set_message_type ()">gtk_info_bar_set_message_type</a>       (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
74
74
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkMessageType" title="enum GtkMessageType"><span class="type">GtkMessageType</span></a> message_type</code></em>);
75
75
<a class="link" href="GtkMessageDialog.html#GtkMessageType" title="enum GtkMessageType"><span class="returnvalue">GtkMessageType</span></a>      <a class="link" href="GtkInfoBar.html#gtk-info-bar-get-message-type" title="gtk_info_bar_get_message_type ()">gtk_info_bar_get_message_type</a>       (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>);
80
80
<div class="refsect1" title="Object Hierarchy">
81
81
<a name="GtkInfoBar.object-hierarchy"></a><h2>Object Hierarchy</h2>
82
82
<pre class="synopsis">
83
 
  <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
84
 
   +----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
 
83
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
84
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
85
85
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
86
86
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
87
87
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
105
105
<div class="refsect1" title="Style Properties">
106
106
<a name="GtkInfoBar.style-properties"></a><h2>Style Properties</h2>
107
107
<pre class="synopsis">
108
 
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-action-area-border" title='The "action-area-border" style property'>action-area-border</a>"       <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
109
 
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-button-spacing" title='The "button-spacing" style property'>button-spacing</a>"           <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
110
 
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-content-area-border" title='The "content-area-border" style property'>content-area-border</a>"      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
111
 
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-content-area-spacing" title='The "content-area-spacing" style property'>content-area-spacing</a>"     <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
 
108
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-action-area-border" title='The "action-area-border" style property'>action-area-border</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
 
109
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-button-spacing" title='The "button-spacing" style property'>button-spacing</a>"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
 
110
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-content-area-border" title='The "content-area-border" style property'>content-area-border</a>"      <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
 
111
  "<a class="link" href="GtkInfoBar.html#GtkInfoBar--s-content-area-spacing" title='The "content-area-spacing" style property'>content-area-spacing</a>"     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
112
112
</pre>
113
113
</div>
114
114
<div class="refsect1" title="Signals">
144
144
<p>
145
145
</p>
146
146
<div class="example">
147
 
<a name="id734619"></a><p class="title"><b>Example 14. Simple GtkInfoBar usage.</b></p>
 
147
<a name="id538792"></a><p class="title"><b>Example 14. Simple GtkInfoBar usage.</b></p>
148
148
<div class="example-contents">
149
149
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
150
150
    <tbody>
175
175
24</pre></td>
176
176
        <td class="listing_code"><pre class="programlisting"><span class="comment">/* set up info bar */</span>
177
177
<span class="normal">info_bar </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkInfoBar.html#gtk-info-bar-new">gtk_info_bar_new</a></span><span class="normal"> </span><span class="symbol">();</span>
178
 
<span class="function"><a href="GtkWidget.html#gtk-widget-set-no-show-all">gtk_widget_set_no_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info_bar</span><span class="symbol">,</span><span class="normal"> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">);</span>
 
178
<span class="function"><a href="GtkWidget.html#gtk-widget-set-no-show-all">gtk_widget_set_no_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info_bar</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">);</span>
179
179
<span class="normal">message_label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">""</span><span class="symbol">);</span>
180
180
<span class="function"><a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">message_label</span><span class="symbol">);</span>
181
181
<span class="normal">content_area </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkInfoBar.html#gtk-info-bar-get-content-area">gtk_info_bar_get_content_area</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_INFO_BAR</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info_bar</span><span class="symbol">));</span>
182
182
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">content_area</span><span class="symbol">),</span><span class="normal"> message_label</span><span class="symbol">);</span>
183
183
<span class="function"><a href="GtkInfoBar.html#gtk-info-bar-add-button">gtk_info_bar_add_button</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_INFO_BAR</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info_bar</span><span class="symbol">),</span>
184
184
<span class="normal">                         <a href="gtk-Stock-Items.html#GTK-STOCK-OK:CAPS">GTK_STOCK_OK</a></span><span class="symbol">,</span><span class="normal"> <a href="GtkDialog.html#GTK-RESPONSE-OK:CAPS">GTK_RESPONSE_OK</a></span><span class="symbol">);</span>
185
 
<span class="function"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info_bar</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"response"</span><span class="symbol">,</span>
186
 
<span class="normal">                  </span><span class="function"><a href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GtkWidget.html#gtk-widget-hide">gtk_widget_hide</a></span><span class="symbol">),</span><span class="normal"> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
 
185
<span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info_bar</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"response"</span><span class="symbol">,</span>
 
186
<span class="normal">                  </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GtkWidget.html#gtk-widget-hide">gtk_widget_hide</a></span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
187
187
<span class="function"><a href="GtkTable.html#gtk-table-attach">gtk_table_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_TABLE</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">table</span><span class="symbol">),</span>
188
188
<span class="normal">                  info_bar</span><span class="symbol">,</span>
189
189
<span class="normal">                  </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="symbol">,</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span>
249
249
<hr>
250
250
<div class="refsect2" title="gtk_info_bar_new_with_buttons ()">
251
251
<a name="gtk-info-bar-new-with-buttons"></a><h3>gtk_info_bar_new_with_buttons ()</h3>
252
 
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_info_bar_new_with_buttons       (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
 
252
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_info_bar_new_with_buttons       (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
253
253
                                                         <em class="parameter"><code>...</code></em>);</pre>
254
254
<p>
255
255
Creates a new <a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> with buttons. Button text/response ID
256
 
pairs should be listed, with a <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> pointer ending the list.
 
256
pairs should be listed, with a <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> pointer ending the list.
257
257
Button text can be either a stock ID such as <a class="link" href="gtk-Stock-Items.html#GTK-STOCK-OK:CAPS" title="GTK_STOCK_OK"><code class="literal">GTK_STOCK_OK</code></a>, or
258
258
some arbitrary text. A response ID can be any positive number,
259
259
or one of the values in the <a class="link" href="GtkDialog.html#GtkResponseType" title="enum GtkResponseType"><span class="type">GtkResponseType</span></a> enumeration. If the
265
265
<tbody>
266
266
<tr>
267
267
<td><p><span class="term"><em class="parameter"><code>first_button_text</code></em> :</span></p></td>
268
 
<td> stock ID or text to go in first button, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
268
<td> stock ID or text to go in first button, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
269
269
</td>
270
270
</tr>
271
271
<tr>
272
272
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
273
273
<td>response ID for first button, then additional buttons, ending
274
 
   with <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
274
   with <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
275
275
</td>
276
276
</tr>
277
277
<tr>
287
287
<a name="gtk-info-bar-add-action-widget"></a><h3>gtk_info_bar_add_action_widget ()</h3>
288
288
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_info_bar_add_action_widget      (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
289
289
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
290
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
 
290
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
291
291
<p>
292
292
Add an activatable widget to the action area of a <a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a>,
293
293
connecting a signal handler that will emit the <a class="link" href="GtkInfoBar.html#GtkInfoBar-response" title='The "response" signal'><span class="type">"response"</span></a>
320
320
<div class="refsect2" title="gtk_info_bar_add_button ()">
321
321
<a name="gtk-info-bar-add-button"></a><h3>gtk_info_bar_add_button ()</h3>
322
322
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_info_bar_add_button             (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
323
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *button_text</code></em>,
324
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
 
323
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *button_text</code></em>,
 
324
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
325
325
<p>
326
326
Adds a button with the given text (or a stock button, if button_text
327
327
is a stock ID) and sets things up so that clicking the button will emit
361
361
<div class="refsect2" title="gtk_info_bar_add_buttons ()">
362
362
<a name="gtk-info-bar-add-buttons"></a><h3>gtk_info_bar_add_buttons ()</h3>
363
363
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_info_bar_add_buttons            (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
364
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
 
364
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_button_text</code></em>,
365
365
                                                         <em class="parameter"><code>...</code></em>);</pre>
366
366
<p>
367
367
Adds more buttons, same as calling <a class="link" href="GtkInfoBar.html#gtk-info-bar-add-button" title="gtk_info_bar_add_button ()"><code class="function">gtk_info_bar_add_button()</code></a>
368
 
repeatedly. The variable argument list should be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated
 
368
repeatedly. The variable argument list should be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated
369
369
as with <a class="link" href="GtkInfoBar.html#gtk-info-bar-new-with-buttons" title="gtk_info_bar_new_with_buttons ()"><code class="function">gtk_info_bar_new_with_buttons()</code></a>. Each button must have both
370
370
text and response ID.
371
371
</p>
385
385
<tr>
386
386
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
387
387
<td>response ID for first button, then more text-response_id pairs,
388
 
    ending with <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
388
    ending with <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
389
389
</td>
390
390
</tr>
391
391
</tbody>
396
396
<div class="refsect2" title="gtk_info_bar_set_response_sensitive ()">
397
397
<a name="gtk-info-bar-set-response-sensitive"></a><h3>gtk_info_bar_set_response_sensitive ()</h3>
398
398
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_info_bar_set_response_sensitive (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
399
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>,
400
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
 
399
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>,
 
400
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
401
401
<p>
402
402
Calls gtk_widget_set_sensitive (widget, setting) for each
403
403
widget in the info bars's action area with the given response_id.
429
429
<div class="refsect2" title="gtk_info_bar_set_default_response ()">
430
430
<a name="gtk-info-bar-set-default-response"></a><h3>gtk_info_bar_set_default_response ()</h3>
431
431
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_info_bar_set_default_response   (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
432
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
 
432
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
433
433
<p>
434
434
Sets the last widget in the info bar's action area with
435
435
the given response_id as the default widget for the dialog.
460
460
<div class="refsect2" title="gtk_info_bar_response ()">
461
461
<a name="gtk-info-bar-response"></a><h3>gtk_info_bar_response ()</h3>
462
462
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_info_bar_response               (<em class="parameter"><code><a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar</code></em>,
463
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
 
463
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> response_id</code></em>);</pre>
464
464
<p>
465
465
Emits the 'response' signal with the given <em class="parameter"><code>response_id</code></em>.
466
466
</p>
614
614
<a name="GtkInfoBar.style-property-details"></a><h2>Style Property Details</h2>
615
615
<div class="refsect2" title='The "action-area-border" style property'>
616
616
<a name="GtkInfoBar--s-action-area-border"></a><h3>The <code class="literal">"action-area-border"</code> style property</h3>
617
 
<pre class="programlisting">  "action-area-border"       <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
 
617
<pre class="programlisting">  "action-area-border"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
618
618
<p>
619
619
Width of the border around the action area of the info bar.
620
620
</p>
625
625
<hr>
626
626
<div class="refsect2" title='The "button-spacing" style property'>
627
627
<a name="GtkInfoBar--s-button-spacing"></a><h3>The <code class="literal">"button-spacing"</code> style property</h3>
628
 
<pre class="programlisting">  "button-spacing"           <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
 
628
<pre class="programlisting">  "button-spacing"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
629
629
<p>
630
630
Spacing between buttons in the action area of the info bar.
631
631
</p>
636
636
<hr>
637
637
<div class="refsect2" title='The "content-area-border" style property'>
638
638
<a name="GtkInfoBar--s-content-area-border"></a><h3>The <code class="literal">"content-area-border"</code> style property</h3>
639
 
<pre class="programlisting">  "content-area-border"      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
 
639
<pre class="programlisting">  "content-area-border"      <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
640
640
<p>
641
641
The width of the border around the content
642
642
content area of the info bar.
648
648
<hr>
649
649
<div class="refsect2" title='The "content-area-spacing" style property'>
650
650
<a name="GtkInfoBar--s-content-area-spacing"></a><h3>The <code class="literal">"content-area-spacing"</code> style property</h3>
651
 
<pre class="programlisting">  "content-area-spacing"     <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
 
651
<pre class="programlisting">  "content-area-spacing"     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
652
652
<p>
653
653
The default spacing used between elements of the
654
654
content area of the info bar.
663
663
<div class="refsect2" title='The "close" signal'>
664
664
<a name="GtkInfoBar-close"></a><h3>The <code class="literal">"close"</code> signal</h3>
665
665
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *arg0,
666
 
                                                        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : Run Last / Action</pre>
 
666
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : Run Last / Action</pre>
667
667
<p>
668
668
The ::close signal is a
669
669
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a>
686
686
<div class="refsect2" title='The "response" signal'>
687
687
<a name="GtkInfoBar-response"></a><h3>The <code class="literal">"response"</code> signal</h3>
688
688
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a> *info_bar,
689
 
                                                        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>        response_id,
690
 
                                                        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)        : Run Last</pre>
 
689
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>        response_id,
 
690
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)        : Run Last</pre>
691
691
<p>
692
692
Emitted when an action widget is clicked or the application programmer
693
693
calls <a class="link" href="GtkDialog.html#gtk-dialog-response" title="gtk_dialog_response ()"><code class="function">gtk_dialog_response()</code></a>. The <em class="parameter"><code>response_id</code></em> depends on which action