File: gnome-messagebox.xml

package info (click to toggle)
libgnomeui 2.20.1.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,400 kB
  • ctags: 7,371
  • sloc: ansic: 40,799; xml: 19,721; sh: 8,821; makefile: 443
file content (229 lines) | stat: -rw-r--r-- 12,808 bytes parent folder | download
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<refentry id="GnomeMessageBox">
<refmeta>
<refentrytitle role="top_of_page">GnomeMessageBox</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBGNOMEUI Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GnomeMessageBox</refname>
<refpurpose>Create standard message boxes.</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;libgnomeui/libgnomeui.h&gt;


#define             <link linkend="GNOME-MESSAGE-BOX-INFO:CAPS">GNOME_MESSAGE_BOX_INFO</link>
#define             <link linkend="GNOME-MESSAGE-BOX-WARNING:CAPS">GNOME_MESSAGE_BOX_WARNING</link>
#define             <link linkend="GNOME-MESSAGE-BOX-ERROR:CAPS">GNOME_MESSAGE_BOX_ERROR</link>
#define             <link linkend="GNOME-MESSAGE-BOX-QUESTION:CAPS">GNOME_MESSAGE_BOX_QUESTION</link>
#define             <link linkend="GNOME-MESSAGE-BOX-GENERIC:CAPS">GNOME_MESSAGE_BOX_GENERIC</link>
                    <link linkend="GnomeMessageBox-struct">GnomeMessageBox</link>;
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gnome-message-box-new">gnome_message_box_new</link>               (const <link linkend="gchar">gchar</link> *message,
                                                         const <link linkend="gchar">gchar</link> *message_box_type,
                                                         ...);
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gnome-message-box-newv">gnome_message_box_newv</link>              (const <link linkend="gchar">gchar</link> *message,
                                                         const <link linkend="gchar">gchar</link> *message_box_type,
                                                         const <link linkend="gchar">gchar</link> **buttons);
<link linkend="void">void</link>                <link linkend="gnome-message-box-construct">gnome_message_box_construct</link>         (<link linkend="GnomeMessageBox">GnomeMessageBox</link> *messagebox,
                                                         const <link linkend="gchar">gchar</link> *message,
                                                         const <link linkend="gchar">gchar</link> *message_box_type,
                                                         const <link linkend="gchar">gchar</link> **buttons);


</synopsis>
</refsynopsisdiv>

<refsect1 role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
         +----<link linkend="GtkObject">GtkObject</link>
               +----<link linkend="GtkWidget">GtkWidget</link>
                     +----<link linkend="GtkContainer">GtkContainer</link>
                           +----<link linkend="GtkBin">GtkBin</link>
                                 +----<link linkend="GtkWindow">GtkWindow</link>
                                       +----<link linkend="GnomeDialog">GnomeDialog</link>
                                             +----GnomeMessageBox
</synopsis>

</refsect1>



<refsect1 role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GnomeMessageBox implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkBuildable">GtkBuildable</link>.</para>

</refsect1>





<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="GNOME-MESSAGE-BOX-INFO:CAPS" role="macro" condition="deprecated:"/>GNOME_MESSAGE_BOX_INFO</title>
<indexterm role="deprecated"><primary>GNOME_MESSAGE_BOX_INFO</primary></indexterm><programlisting>#define GNOME_MESSAGE_BOX_INFO      "info"
</programlisting>
<warning><para><literal>GNOME_MESSAGE_BOX_INFO</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
A constant that can be passed to <link linkend="gnome-message-box-new"><function>gnome_message_box_new()</function></link> to specify the type of
message box to create.
</para></refsect2>
<refsect2>
<title><anchor id="GNOME-MESSAGE-BOX-WARNING:CAPS" role="macro" condition="deprecated:"/>GNOME_MESSAGE_BOX_WARNING</title>
<indexterm role="deprecated"><primary>GNOME_MESSAGE_BOX_WARNING</primary></indexterm><programlisting>#define GNOME_MESSAGE_BOX_WARNING   "warning"
</programlisting>
<warning><para><literal>GNOME_MESSAGE_BOX_WARNING</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
A constant that can be passed to <link linkend="gnome-message-box-new"><function>gnome_message_box_new()</function></link> to specify the type of
message box to create.
</para></refsect2>
<refsect2>
<title><anchor id="GNOME-MESSAGE-BOX-ERROR:CAPS" role="macro" condition="deprecated:"/>GNOME_MESSAGE_BOX_ERROR</title>
<indexterm role="deprecated"><primary>GNOME_MESSAGE_BOX_ERROR</primary></indexterm><programlisting>#define GNOME_MESSAGE_BOX_ERROR     "error"
</programlisting>
<warning><para><literal>GNOME_MESSAGE_BOX_ERROR</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
A constant that can be passed to <link linkend="gnome-message-box-new"><function>gnome_message_box_new()</function></link> to specify the type of
message box to create.
</para></refsect2>
<refsect2>
<title><anchor id="GNOME-MESSAGE-BOX-QUESTION:CAPS" role="macro" condition="deprecated:"/>GNOME_MESSAGE_BOX_QUESTION</title>
<indexterm role="deprecated"><primary>GNOME_MESSAGE_BOX_QUESTION</primary></indexterm><programlisting>#define GNOME_MESSAGE_BOX_QUESTION  "question"
</programlisting>
<warning><para><literal>GNOME_MESSAGE_BOX_QUESTION</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
A constant that can be passed to <link linkend="gnome-message-box-new"><function>gnome_message_box_new()</function></link> to specify the type of
message box to create.
</para></refsect2>
<refsect2>
<title><anchor id="GNOME-MESSAGE-BOX-GENERIC:CAPS" role="macro" condition="deprecated:"/>GNOME_MESSAGE_BOX_GENERIC</title>
<indexterm role="deprecated"><primary>GNOME_MESSAGE_BOX_GENERIC</primary></indexterm><programlisting>#define GNOME_MESSAGE_BOX_GENERIC   "generic"
</programlisting>
<warning><para><literal>GNOME_MESSAGE_BOX_GENERIC</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
A constant that can be passed to <link linkend="gnome-message-box-new"><function>gnome_message_box_new()</function></link> to specify the type of
message box to create.
</para></refsect2>
<refsect2>
<title><anchor id="GnomeMessageBox-struct" role="struct"/>GnomeMessageBox</title>
<indexterm role="deprecated"><primary>GnomeMessageBox</primary></indexterm><programlisting>typedef struct {
  GnomeDialog dialog;
} GnomeMessageBox;
</programlisting>
<warning><para><literal>GnomeMessageBox</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
</para>
<para>

</para><variablelist role="struct">
<varlistentry>
<term><link linkend="GnomeDialog">GnomeDialog</link>&nbsp;<structfield>dialog</structfield>;</term>
<listitem><simpara> A <link linkend="GnomeDialog"><type>GnomeDialog</type></link> widget holding the contents of the message box.
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-message-box-new" role="function" condition="deprecated:"/>gnome_message_box_new ()</title>
<indexterm role="deprecated"><primary>gnome_message_box_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gnome_message_box_new               (const <link linkend="gchar">gchar</link> *message,
                                                         const <link linkend="gchar">gchar</link> *message_box_type,
                                                         ...);</programlisting>
<warning><para><literal>gnome_message_box_new</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Creates a dialog box of type <parameter>message_box_type</parameter> with <parameter>message</parameter>.  A number
of buttons are inserted on it.  You can use the GNOME stock identifiers
to create gnome-stock-buttons.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara> The message to be displayed.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>message_box_type</parameter>&nbsp;:</term>
<listitem><simpara> The type of the message
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>...</parameter>&nbsp;:</term>
<listitem><simpara> A NULL terminated list of strings to use in each button.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>a widget that has the dialog box.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-message-box-newv" role="function" condition="deprecated:"/>gnome_message_box_newv ()</title>
<indexterm role="deprecated"><primary>gnome_message_box_newv</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gnome_message_box_newv              (const <link linkend="gchar">gchar</link> *message,
                                                         const <link linkend="gchar">gchar</link> *message_box_type,
                                                         const <link linkend="gchar">gchar</link> **buttons);</programlisting>
<warning><para><literal>gnome_message_box_newv</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Creates a dialog box of type <parameter>message_box_type</parameter> with <parameter>message</parameter>.  A number
of buttons are inserted on it, the messages come from the <parameter>buttons</parameter> array.
You can use the GNOME stock identifiers to create gnome-stock-buttons.
The buttons array can be NULL if you wish to add buttons yourself later.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara> The message to be displayed.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>message_box_type</parameter>&nbsp;:</term>
<listitem><simpara> The type of the message
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>buttons</parameter>&nbsp;:</term>
<listitem><simpara> a NULL terminated array with the buttons to insert.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>a widget that has the dialog box.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-message-box-construct" role="function" condition="deprecated:"/>gnome_message_box_construct ()</title>
<indexterm role="deprecated"><primary>gnome_message_box_construct</primary></indexterm><programlisting><link linkend="void">void</link>                gnome_message_box_construct         (<link linkend="GnomeMessageBox">GnomeMessageBox</link> *messagebox,
                                                         const <link linkend="gchar">gchar</link> *message,
                                                         const <link linkend="gchar">gchar</link> *message_box_type,
                                                         const <link linkend="gchar">gchar</link> **buttons);</programlisting>
<warning><para><literal>gnome_message_box_construct</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
For language bindings or subclassing, from C use <link linkend="gnome-message-box-new"><type>gnome_message_box_new</type></link> or
<link linkend="gnome-message-box-newv"><type>gnome_message_box_newv</type></link></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>messagebox</parameter>&nbsp;:</term>
<listitem><simpara> The message box to construct
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara> The message to be displayed.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>message_box_type</parameter>&nbsp;:</term>
<listitem><simpara> The type of the message
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>buttons</parameter>&nbsp;:</term>
<listitem><simpara> a NULL terminated array with the buttons to insert.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>