<a class="link" href="libxfce4ui-xfce-dialogs.html#xfce-message-dialog-new" title="xfce_message_dialog_new ()"><code class="function">xfce_message_dialog_new()</code></a> allows you to easily create Gtk+ message dialogs.
107
107
It accepts GTK+ stock buttons, mixed buttons (using XFCE_BUTTON_TYPE_MIXED)
108
or buttons with a <span class="type">GdkPixbuf</span> (using XFCE_BUTTON_TYPE_PIXBUF).
108
or buttons with a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> (using XFCE_BUTTON_TYPE_PIXBUF).
109
109
</p>
110
110
<p>
111
111
The buttons are defined by <em class="parameter"><code>first_button_text</code></em> and the next arguments in the
Creates a button with the <span class="type">GdkPixbuf</span> as button icon.
130
Creates a button with the <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> as button icon.
131
131
<em class="parameter"><code>param1</code></em> is the <span class="type">GdkPixuf</span>, <em class="parameter"><code>param2</code></em> for the label and
132
132
<em class="parameter"><code>param3</code></em> for the response_id.
133
133
</p></td>
146
146
</p>
147
147
<p>
148
148
To clarify this behaviour see the example below. We create a dialog with
149
two stock buttons, a <span class="type">GdkPixbuf</span> button and a mixed button.
149
two stock buttons, a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> button and a mixed button.
150
150
</p>
151
151
<p>
152
152
</p>
153
153
<div class="example">
154
<a name="id521503"></a><p class="title"><b>Example 2. Creating a Xfce Message Dialog</b></p>
154
<a name="id397225"></a><p class="title"><b>Example 2. Creating a Xfce Message Dialog</b></p>
<td>transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
178
<td>transient parent of the dialog, or <code class="literal">NULL</code>.
<td>transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
239
<td>transient parent of the dialog, or <code class="literal">NULL</code>.
<td>transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
302
<td>transient parent of the dialog, or <code class="literal">NULL</code>.
<td>transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
359
<td>transient parent of the dialog, or <code class="literal">NULL</code>.
<td>transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
395
<td>transient parent of the dialog, or <code class="literal">NULL</code>.
<td>transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
432
<td>transient parent of the dialog, or <code class="literal">NULL</code>.
<td>a <span class="type">GError</span>, which gives a more precise description of the problem or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
437
<td>a <span class="type">GError</span>, which gives a more precise description of the problem or <code class="literal">NULL</code>.
<td>transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
474
<td>transient parent of the dialog, or <code class="literal">NULL</code>.
<td>if non-<a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>, this text is used on the confirm button together with the <em class="parameter"><code>stock_id</code></em> icon.
484
<td>if non-<code class="literal">NULL</code>, this text is used on the confirm button together with the <em class="parameter"><code>stock_id</code></em> icon.