clean-up MessageDialog

svn path=/trunk/gtk-sharp/; revision=16998
This commit is contained in:
John Luke 2003-08-01 22:01:27 +00:00
parent 0c4297ac51
commit 3c264c0651
2 changed files with 22 additions and 19 deletions

View file

@ -6,6 +6,7 @@
* en/*.xml: use C#-style names, ex Gdk instead of GDK * en/*.xml: use C#-style names, ex Gdk instead of GDK
* en/Gtk/TreeView.xml: add some info * en/Gtk/TreeView.xml: add some info
* en/Gtk/MessageDialog.xml: clean up
2003-07-31 John Luke <jluke@cfl.rr.com> 2003-07-31 John Luke <jluke@cfl.rr.com>

View file

@ -12,16 +12,15 @@
<para> <para>
<see cref="T:Gtk.MessageDialog" /> presents a <see cref="T:Gtk.Dialog" /> with an image representing the <see cref="T:Gtk.MessageDialog" /> presents a <see cref="T:Gtk.Dialog" /> with an image representing the
<see cref="T:Gtk.MessageType" /> (Error, Question, etc.) alongside some message text. <see cref="T:Gtk.MessageType" /> (Error, Question, etc.) alongside some message text.
It's simply a convenience <see cref="T:Gtk.Widget" />; you could construct the equivalent of It is available as a convenience. You could construct the equivalent of
<see cref="T:Gtk.MessageDialog" /> from <see cref="T:Gtk.Dialog" /> without too much effort, but <see cref="T:Gtk.MessageDialog" /> from <see cref="T:Gtk.Dialog" /> without too much effort, but
<see cref="T:Gtk.MessageDialog" /> saves typing. <see cref="T:Gtk.MessageDialog" /> saves typing.
</para> </para>
<para> <para>
The MessageDialog is displayed using <see cref="M:Gtk.Dialog.Run()" />, which The <see cref="T:Gtk.MessageDialog" /> is displayed using <see cref="M:Gtk.Dialog.Run()" />, which
automatically makes the <see cref="T:Gtk.MessageDialog" /> from automatically makes the <see cref="T:Gtk.MessageDialog" /> modal and waits for the user to respond to it.
<see cref="T:Gtk.Dialog" /> modal and waits for the user to respond to it.
<see cref="M:Gtk.Dialog.Run()" /> returns when any <see cref="T:Gtk.Button" /> <see cref="M:Gtk.Dialog.Run()" /> returns when any <see cref="T:Gtk.Button" />
in the <see cref="T:Gtk.Dialog" /> is clicked. in the <see cref="T:Gtk.Dialog" /> is clicked or the <see cref="T:Gtk.MessageDialog" /> is closed.
</para> </para>
<para> <para>
A message dialog A message dialog
@ -34,11 +33,14 @@ MessageDialog md = new MessageDialog (parent_window,
int result = md.Run (); int result = md.Run ();
</code> </code>
</example> </example></para>
</para>
<para> <para>
If you would like a non modal dialog just set the Modal property of the dialog, ie my_dialog.Modal = false; If you would like the <see cref="T:Gtk.MessageDialog" /> to not be modal, set the property <see cref="P:Gtk.Dialog.Modal" /> to <see langword="false" />.
</para> <example>
<code language="C#">
md.Modal = false;
</code>
</example></para>
</remarks> </remarks>
</Docs> </Docs>
<Base> <Base>
@ -77,8 +79,8 @@ int result = md.Run ();
<MemberType>Constructor</MemberType> <MemberType>Constructor</MemberType>
<ReturnValue /> <ReturnValue />
<Parameters> <Parameters>
<Parameter Name="raw" Type="System.IntPtr" /> <Parameter Name="raw" Type="System.IntPtr" />
</Parameters> </Parameters>
<Docs> <Docs>
<summary>Internal constructor</summary> <summary>Internal constructor</summary>
<param name="raw">Pointer to the C object.</param> <param name="raw">Pointer to the C object.</param>
@ -106,12 +108,12 @@ int result = md.Run ();
<MemberType>Constructor</MemberType> <MemberType>Constructor</MemberType>
<ReturnValue /> <ReturnValue />
<Parameters> <Parameters>
<Parameter Name="parent_window" Type="Gtk.Window" /> <Parameter Name="parent_window" Type="Gtk.Window" />
<Parameter Name="flags" Type="Gtk.DialogFlags" /> <Parameter Name="flags" Type="Gtk.DialogFlags" />
<Parameter Name="type" Type="Gtk.MessageType" /> <Parameter Name="type" Type="Gtk.MessageType" />
<Parameter Name="bt" Type="Gtk.ButtonsType" /> <Parameter Name="bt" Type="Gtk.ButtonsType" />
<Parameter Name="msg" Type="System.String" /> <Parameter Name="msg" Type="System.String" />
</Parameters> </Parameters>
<Docs> <Docs>
<summary>Creates an instance of <see cref="T:Gtk.MessageDialog" /></summary> <summary>Creates an instance of <see cref="T:Gtk.MessageDialog" /></summary>
<param name="parent_window">an object of type <see cref="T:Gtk.Window" /></param> <param name="parent_window">an object of type <see cref="T:Gtk.Window" /></param>
@ -161,8 +163,8 @@ MessageDialog md = new MessageDialog
<MemberType>Constructor</MemberType> <MemberType>Constructor</MemberType>
<ReturnValue /> <ReturnValue />
<Parameters> <Parameters>
<Parameter Name="gtype" Type="GLib.Type" /> <Parameter Name="gtype" Type="GLib.Type" />
</Parameters> </Parameters>
<Docs> <Docs>
<summary>Internal constructor</summary> <summary>Internal constructor</summary>
<param name="gtype">GLib type for the type</param> <param name="gtype">GLib type for the type</param>