~ubuntu-branches/ubuntu/raring/gtk+2.0/raring-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-05 17:27:55 UTC
  • mfrom: (1.14.14)
  • Revision ID: package-import@ubuntu.com-20120905172755-14uyfpowr7elvr7m
Tags: 2.24.12-0ubuntu1
* New upstream bugfix release
* debian/patches/091_bugzilla_tooltip_refresh.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="WindowWidgets.html" title="Windows">
9
9
<link rel="prev" href="GtkInvisible.html" title="GtkInvisible">
10
10
<link rel="next" href="GtkWindow.html" title="GtkWindow">
11
 
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
55
55
                                                         <em class="parameter"><code><a class="link" href="GtkDialog.html#GtkDialogFlags" title="enum GtkDialogFlags"><span class="type">GtkDialogFlags</span></a> flags</code></em>,
56
56
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkMessageType" title="enum GtkMessageType"><span class="type">GtkMessageType</span></a> type</code></em>,
57
57
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkButtonsType" title="enum GtkButtonsType"><span class="type">GtkButtonsType</span></a> buttons</code></em>,
58
 
                                                         <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> *message_format</code></em>,
 
58
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
59
59
                                                         <em class="parameter"><code>...</code></em>);
60
60
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-new-with-markup" title="gtk_message_dialog_new_with_markup ()">gtk_message_dialog_new_with_markup</a>  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>,
61
61
                                                         <em class="parameter"><code><a class="link" href="GtkDialog.html#GtkDialogFlags" title="enum GtkDialogFlags"><span class="type">GtkDialogFlags</span></a> flags</code></em>,
62
62
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkMessageType" title="enum GtkMessageType"><span class="type">GtkMessageType</span></a> type</code></em>,
63
63
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkButtonsType" title="enum GtkButtonsType"><span class="type">GtkButtonsType</span></a> buttons</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> *message_format</code></em>,
 
64
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
65
65
                                                         <em class="parameter"><code>...</code></em>);
66
66
<span class="returnvalue">void</span>                <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-set-markup" title="gtk_message_dialog_set_markup ()">gtk_message_dialog_set_markup</a>       (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *message_dialog</code></em>,
67
 
                                                         <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> *str</code></em>);
 
67
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *str</code></em>);
68
68
<span class="returnvalue">void</span>                <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-set-image" title="gtk_message_dialog_set_image ()">gtk_message_dialog_set_image</a>        (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *dialog</code></em>,
69
69
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *image</code></em>);
70
70
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-get-image" title="gtk_message_dialog_get_image ()">gtk_message_dialog_get_image</a>        (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *dialog</code></em>);
71
71
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-get-message-area" title="gtk_message_dialog_get_message_area ()">gtk_message_dialog_get_message_area</a> (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *message_dialog</code></em>);
72
72
<span class="returnvalue">void</span>                <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-format-secondary-text" title="gtk_message_dialog_format_secondary_text ()">gtk_message_dialog_format_secondary_text</a>
73
73
                                                        (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *message_dialog</code></em>,
74
 
                                                         <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> *message_format</code></em>,
 
74
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
75
75
                                                         <em class="parameter"><code>...</code></em>);
76
76
<span class="returnvalue">void</span>                <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-format-secondary-markup" title="gtk_message_dialog_format_secondary_markup ()">gtk_message_dialog_format_secondary_markup</a>
77
77
                                                        (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *message_dialog</code></em>,
78
 
                                                         <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> *message_format</code></em>,
 
78
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
79
79
                                                         <em class="parameter"><code>...</code></em>);
80
80
</pre>
81
81
</div>
106
106
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--image" title='The "image" property'>image</a>"                    <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>*            : Read / Write
107
107
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--message-area" title='The "message-area" property'>message-area</a>"             <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>*            : Read
108
108
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--message-type" title='The "message-type" property'>message-type</a>"             <a class="link" href="GtkMessageDialog.html#GtkMessageType" title="enum GtkMessageType"><span class="type">GtkMessageType</span></a>        : Read / Write / Construct
109
 
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--secondary-text" title='The "secondary-text" property'>secondary-text</a>"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
110
 
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--secondary-use-markup" title='The "secondary-use-markup" property'>secondary-use-markup</a>"     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
111
 
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--text" title='The "text" property'>text</a>"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
112
 
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--use-markup" title='The "use-markup" property'>use-markup</a>"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
 
109
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--secondary-text" title='The "secondary-text" property'>secondary-text</a>"           <span class="type">gchar</span>*                : Read / Write
 
110
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--secondary-use-markup" title='The "secondary-use-markup" property'>secondary-use-markup</a>"     <span class="type">gboolean</span>              : Read / Write
 
111
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--text" title='The "text" property'>text</a>"                     <span class="type">gchar</span>*                : Read / Write
 
112
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--use-markup" title='The "use-markup" property'>use-markup</a>"               <span class="type">gboolean</span>              : Read / Write
113
113
</pre>
114
114
</div>
115
115
<div class="refsect1">
116
116
<a name="GtkMessageDialog.style-properties"></a><h2>Style Properties</h2>
117
117
<pre class="synopsis">
118
 
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--s-message-border" title='The "message-border" style property'>message-border</a>"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
119
 
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--s-use-separator" title='The "use-separator" style property'>use-separator</a>"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read
 
118
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--s-message-border" title='The "message-border" style property'>message-border</a>"           <span class="type">gint</span>                  : Read
 
119
  "<a class="link" href="GtkMessageDialog.html#GtkMessageDialog--s-use-separator" title='The "use-separator" style property'>use-separator</a>"            <span class="type">gboolean</span>              : Read
120
120
</pre>
121
121
</div>
122
122
<div class="refsect1">
134
134
returns when any dialog button is clicked.
135
135
</p>
136
136
<div class="example">
137
 
<a name="id514072"></a><p class="title"><b>Example 8. A modal dialog.</b></p>
 
137
<a name="id596022"></a><p class="title"><b>Example 8. A modal dialog.</b></p>
138
138
<div class="example-contents">
139
139
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
140
140
    <tbody>
152
152
<span class="normal">                                 <a href="GtkMessageDialog.html#GTK-MESSAGE-ERROR:CAPS">GTK_MESSAGE_ERROR</a></span><span class="symbol">,</span>
153
153
<span class="normal">                                 <a href="GtkMessageDialog.html#GTK-BUTTONS-CLOSE:CAPS">GTK_BUTTONS_CLOSE</a></span><span class="symbol">,</span>
154
154
<span class="normal">                                 </span><span class="string">"Error loading file '%s': %s"</span><span class="symbol">,</span>
155
 
<span class="normal">                                 filename</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strerror">g_strerror</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">errno</span><span class="symbol">));</span>
 
155
<span class="normal">                                 filename</span><span class="symbol">,</span><span class="normal"> </span><span class="function">g_strerror</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">errno</span><span class="symbol">));</span>
156
156
<span class="function"><a href="GtkDialog.html#gtk-dialog-run">gtk_dialog_run</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_DIALOG</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">dialog</span><span class="symbol">));</span>
157
157
<span class="function"><a href="GtkWidget.html#gtk-widget-destroy">gtk_widget_destroy</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">dialog</span><span class="symbol">);</span></pre></td>
158
158
      </tr>
165
165
You might do a non-modal <a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> as follows:
166
166
</p>
167
167
<div class="example">
168
 
<a name="id514097"></a><p class="title"><b>Example 9. A non-modal dialog.</b></p>
 
168
<a name="id625978"></a><p class="title"><b>Example 9. A non-modal dialog.</b></p>
169
169
<div class="example-contents">
170
170
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
171
171
    <tbody>
186
186
<span class="normal">                                 <a href="GtkMessageDialog.html#GTK-MESSAGE-ERROR:CAPS">GTK_MESSAGE_ERROR</a></span><span class="symbol">,</span>
187
187
<span class="normal">                                 <a href="GtkMessageDialog.html#GTK-BUTTONS-CLOSE:CAPS">GTK_BUTTONS_CLOSE</a></span><span class="symbol">,</span>
188
188
<span class="normal">                                 </span><span class="string">"Error loading file '%s': %s"</span><span class="symbol">,</span>
189
 
<span class="normal">                                 filename</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strerror">g_strerror</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">errno</span><span class="symbol">));</span>
 
189
<span class="normal">                                 filename</span><span class="symbol">,</span><span class="normal"> </span><span class="function">g_strerror</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">errno</span><span class="symbol">));</span>
190
190
 
191
191
<span class="comment">/* Destroy the dialog when the user responds to it (e.g. clicks a button) */</span>
192
192
<span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect-swapped">g_signal_connect_swapped</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">dialog</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"response"</span><span class="symbol">,</span>
339
339
                                                         <em class="parameter"><code><a class="link" href="GtkDialog.html#GtkDialogFlags" title="enum GtkDialogFlags"><span class="type">GtkDialogFlags</span></a> flags</code></em>,
340
340
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkMessageType" title="enum GtkMessageType"><span class="type">GtkMessageType</span></a> type</code></em>,
341
341
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkButtonsType" title="enum GtkButtonsType"><span class="type">GtkButtonsType</span></a> buttons</code></em>,
342
 
                                                         <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> *message_format</code></em>,
 
342
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
343
343
                                                         <em class="parameter"><code>...</code></em>);</pre>
344
344
<p>
345
345
Creates a new message dialog, which is a simple dialog with an icon
356
356
<tbody>
357
357
<tr>
358
358
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
359
 
<td>transient parent, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for none. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
359
<td>transient parent, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for none. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
360
360
</td>
361
361
</tr>
362
362
<tr>
374
374
<tr>
375
375
<td><p><span class="term"><em class="parameter"><code>message_format</code></em> :</span></p></td>
376
376
<td>
377
 
<code class="function">printf()</code>-style format string, 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>
 
377
<code class="function">printf()</code>-style format string, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.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>
378
378
</td>
379
379
</tr>
380
380
<tr>
392
392
                                                         <em class="parameter"><code><a class="link" href="GtkDialog.html#GtkDialogFlags" title="enum GtkDialogFlags"><span class="type">GtkDialogFlags</span></a> flags</code></em>,
393
393
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkMessageType" title="enum GtkMessageType"><span class="type">GtkMessageType</span></a> type</code></em>,
394
394
                                                         <em class="parameter"><code><a class="link" href="GtkMessageDialog.html#GtkButtonsType" title="enum GtkButtonsType"><span class="type">GtkButtonsType</span></a> buttons</code></em>,
395
 
                                                         <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> *message_format</code></em>,
 
395
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
396
396
                                                         <em class="parameter"><code>...</code></em>);</pre>
397
397
<p>
398
398
Creates a new message dialog, which is a simple dialog with an icon
399
399
indicating the dialog type (error, warning, etc.) and some text which
400
 
is marked up with the <a href="/usr/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango text markup language</a>.
 
400
is marked up with the <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango text markup language</a>.
401
401
When the user clicks a button a "response" signal is emitted with
402
402
response IDs from <a class="link" href="GtkDialog.html#GtkResponseType" title="enum GtkResponseType"><span class="type">GtkResponseType</span></a>. See <a class="link" href="GtkDialog.html" title="GtkDialog"><span class="type">GtkDialog</span></a> for more details.
403
403
</p>
404
404
<p>
405
405
Special XML characters in the <code class="function">printf()</code> arguments passed to this
406
406
function will automatically be escaped as necessary.
407
 
(See <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-printf-escaped"><code class="function">g_markup_printf_escaped()</code></a> for how this is implemented.)
 
407
(See <code class="function">g_markup_printf_escaped()</code> for how this is implemented.)
408
408
Usually this is what you want, but if you have an existing
409
409
Pango markup string that you want to use literally as the
410
410
label, then you need to use <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-set-markup" title="gtk_message_dialog_set_markup ()"><code class="function">gtk_message_dialog_set_markup()</code></a>
429
429
<span class="normal">                                 <a href="GtkDialog.html#GTK-DIALOG-DESTROY-WITH-PARENT:CAPS">GTK_DIALOG_DESTROY_WITH_PARENT</a></span><span class="symbol">,</span>
430
430
<span class="normal">                                 <a href="GtkMessageDialog.html#GTK-MESSAGE-ERROR:CAPS">GTK_MESSAGE_ERROR</a></span><span class="symbol">,</span>
431
431
<span class="normal">                                 <a href="GtkMessageDialog.html#GTK-BUTTONS-CLOSE:CAPS">GTK_BUTTONS_CLOSE</a></span><span class="symbol">,</span>
432
 
<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>
 
432
<span class="normal">                                 <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS">NULL</a></span><span class="symbol">);</span>
433
433
<span class="function"><a href="GtkMessageDialog.html#gtk-message-dialog-set-markup">gtk_message_dialog_set_markup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_MESSAGE_DIALOG</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">dialog</span><span class="symbol">),</span>
434
434
<span class="normal">                               markup</span><span class="symbol">);</span></pre></td>
435
435
      </tr>
447
447
<tbody>
448
448
<tr>
449
449
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
450
 
<td>transient parent, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for none. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
450
<td>transient parent, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for none. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
451
451
</td>
452
452
</tr>
453
453
<tr>
465
465
<tr>
466
466
<td><p><span class="term"><em class="parameter"><code>message_format</code></em> :</span></p></td>
467
467
<td>
468
 
<code class="function">printf()</code>-style format string, 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>
 
468
<code class="function">printf()</code>-style format string, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.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>
469
469
</td>
470
470
</tr>
471
471
<tr>
481
481
<div class="refsect2">
482
482
<a name="gtk-message-dialog-set-markup"></a><h3>gtk_message_dialog_set_markup ()</h3>
483
483
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_message_dialog_set_markup       (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *message_dialog</code></em>,
484
 
                                                         <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> *str</code></em>);</pre>
 
484
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *str</code></em>);</pre>
485
485
<p>
486
486
Sets the text of the message dialog to be <em class="parameter"><code>str</code></em>, which is marked
487
487
up with the <GTKDOCLINK HREF="PangoMarkupFormat">Pango text markup
500
500
</tr>
501
501
<tr>
502
502
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
503
 
<td>markup string (see <a href="/usr/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango markup format</a>)</td>
 
503
<td>markup string (see <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango markup format</a>)</td>
504
504
</tr>
505
505
</tbody>
506
506
</table></div>
598
598
<a name="gtk-message-dialog-format-secondary-text"></a><h3>gtk_message_dialog_format_secondary_text ()</h3>
599
599
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_message_dialog_format_secondary_text
600
600
                                                        (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *message_dialog</code></em>,
601
 
                                                         <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> *message_format</code></em>,
 
601
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
602
602
                                                         <em class="parameter"><code>...</code></em>);</pre>
603
603
<p>
604
604
Sets the secondary text of the message dialog to be <em class="parameter"><code>message_format</code></em> 
622
622
<tr>
623
623
<td><p><span class="term"><em class="parameter"><code>message_format</code></em> :</span></p></td>
624
624
<td>
625
 
<code class="function">printf()</code>-style format string, 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>
 
625
<code class="function">printf()</code>-style format string, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.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>
626
626
</td>
627
627
</tr>
628
628
</tbody>
634
634
<a name="gtk-message-dialog-format-secondary-markup"></a><h3>gtk_message_dialog_format_secondary_markup ()</h3>
635
635
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_message_dialog_format_secondary_markup
636
636
                                                        (<em class="parameter"><code><a class="link" href="GtkMessageDialog.html" title="GtkMessageDialog"><span class="type">GtkMessageDialog</span></a> *message_dialog</code></em>,
637
 
                                                         <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> *message_format</code></em>,
 
637
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *message_format</code></em>,
638
638
                                                         <em class="parameter"><code>...</code></em>);</pre>
639
639
<p>
640
640
Sets the secondary text of the message dialog to be <em class="parameter"><code>message_format</code></em> (with 
641
641
<code class="function">printf()</code>-style), which is marked up with the 
642
 
<a href="/usr/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango text markup language</a>.
 
642
<a href="/home/mclasen/gnome/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango text markup language</a>.
643
643
</p>
644
644
<p>
645
645
Note that setting a secondary text makes the primary text become
648
648
<p>
649
649
Due to an oversight, this function does not escape special XML characters
650
650
like <a class="link" href="GtkMessageDialog.html#gtk-message-dialog-new-with-markup" title="gtk_message_dialog_new_with_markup ()"><code class="function">gtk_message_dialog_new_with_markup()</code></a> does. Thus, if the arguments 
651
 
may contain special XML characters, you should use <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-printf-escaped"><code class="function">g_markup_printf_escaped()</code></a>
 
651
may contain special XML characters, you should use <code class="function">g_markup_printf_escaped()</code>
652
652
to escape it.
653
653
</p>
654
654
<p>
664
664
5</pre></td>
665
665
        <td class="listing_code"><pre class="programlisting"><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">msg</span><span class="symbol">;</span>
666
666
<span class="normal"> </span>
667
 
<span class="normal">msg </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-printf-escaped">g_markup_printf_escaped</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">message_format</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">...);</span>
 
667
<span class="normal">msg </span><span class="symbol">=</span><span class="normal"> </span><span class="function">g_markup_printf_escaped</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">message_format</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">...);</span>
668
668
<span class="function"><a href="GtkMessageDialog.html#gtk-message-dialog-format-secondary-markup">gtk_message_dialog_format_secondary_markup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">message_dialog</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"%s"</span><span class="symbol">,</span><span class="normal"> msg</span><span class="symbol">);</span>
669
 
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">msg</span><span class="symbol">);</span></pre></td>
 
669
<span class="function">g_free</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">msg</span><span class="symbol">);</span></pre></td>
670
670
      </tr>
671
671
    </tbody>
672
672
  </table>
688
688
<tr>
689
689
<td><p><span class="term"><em class="parameter"><code>message_format</code></em> :</span></p></td>
690
690
<td>printf()-style markup string (see
691
 
<a href="/usr/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango markup format</a>), or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
691
<a href="/home/mclasen/gnome/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango markup format</a>), or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
692
692
</td>
693
693
</tr>
694
694
</tbody>
738
738
<hr>
739
739
<div class="refsect2">
740
740
<a name="GtkMessageDialog--secondary-text"></a><h3>The <code class="literal">"secondary-text"</code> property</h3>
741
 
<pre class="programlisting">  "secondary-text"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
 
741
<pre class="programlisting">  "secondary-text"           <span class="type">gchar</span>*                : Read / Write</pre>
742
742
<p>
743
743
The secondary text of the message dialog.
744
744
</p>
748
748
<hr>
749
749
<div class="refsect2">
750
750
<a name="GtkMessageDialog--secondary-use-markup"></a><h3>The <code class="literal">"secondary-use-markup"</code> property</h3>
751
 
<pre class="programlisting">  "secondary-use-markup"     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
 
751
<pre class="programlisting">  "secondary-use-markup"     <span class="type">gboolean</span>              : Read / Write</pre>
752
752
<p>
753
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the secondary text of the dialog includes Pango markup. 
754
 
See <a href="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#pango-parse-markup"><code class="function">pango_parse_markup()</code></a>.
 
753
<code class="literal">TRUE</code> if the secondary text of the dialog includes Pango markup. 
 
754
See <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Text-Attributes.html#pango-parse-markup"><code class="function">pango_parse_markup()</code></a>.
755
755
</p>
756
756
<p>Default value: FALSE</p>
757
757
<p class="since">Since 2.10</p>
759
759
<hr>
760
760
<div class="refsect2">
761
761
<a name="GtkMessageDialog--text"></a><h3>The <code class="literal">"text"</code> property</h3>
762
 
<pre class="programlisting">  "text"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
 
762
<pre class="programlisting">  "text"                     <span class="type">gchar</span>*                : Read / Write</pre>
763
763
<p>
764
764
The primary text of the message dialog. If the dialog has 
765
765
a secondary text, this will appear as the title.
770
770
<hr>
771
771
<div class="refsect2">
772
772
<a name="GtkMessageDialog--use-markup"></a><h3>The <code class="literal">"use-markup"</code> property</h3>
773
 
<pre class="programlisting">  "use-markup"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
 
773
<pre class="programlisting">  "use-markup"               <span class="type">gboolean</span>              : Read / Write</pre>
774
774
<p>
775
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the primary text of the dialog includes Pango markup. 
776
 
See <a href="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#pango-parse-markup"><code class="function">pango_parse_markup()</code></a>.
 
775
<code class="literal">TRUE</code> if the primary text of the dialog includes Pango markup. 
 
776
See <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Text-Attributes.html#pango-parse-markup"><code class="function">pango_parse_markup()</code></a>.
777
777
</p>
778
778
<p>Default value: FALSE</p>
779
779
<p class="since">Since 2.10</p>
783
783
<a name="GtkMessageDialog.style-property-details"></a><h2>Style Property Details</h2>
784
784
<div class="refsect2">
785
785
<a name="GtkMessageDialog--s-message-border"></a><h3>The <code class="literal">"message-border"</code> style property</h3>
786
 
<pre class="programlisting">  "message-border"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
 
786
<pre class="programlisting">  "message-border"           <span class="type">gint</span>                  : Read</pre>
787
787
<p>Width of border around the label and image in the message dialog.</p>
788
788
<p>Allowed values: &gt;= 0</p>
789
789
<p>Default value: 12</p>
791
791
<hr>
792
792
<div class="refsect2">
793
793
<a name="GtkMessageDialog--s-use-separator"></a><h3>The <code class="literal">"use-separator"</code> style property</h3>
794
 
<pre class="programlisting">  "use-separator"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read</pre>
 
794
<pre class="programlisting">  "use-separator"            <span class="type">gboolean</span>              : Read</pre>
795
795
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
796
796
<h3 class="title">Warning</h3>
797
797
<p><code class="literal">GtkMessageDialog:use-separator</code> has been deprecated since version 2.22 and should not be used in newly-written code. This style property will be removed in GTK+ 3</p>
811
811
</div>
812
812
<div class="footer">
813
813
<hr>
814
 
          Generated by GTK-Doc V1.18</div>
 
814
          Generated by GTK-Doc V1.18.1</div>
815
815
</body>
816
816
</html>
 
 
b'\\ No newline at end of file'