diff --git a/doc/ChangeLog b/doc/ChangeLog index fd611891d..5a9c75077 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,10 @@ +2003-05-30 John Luke + + * en/Gtk/ToggleButton.xml: Fix typo. + * en/Gtk/Progress.xml: Fix typo. + * en/Gtk/Tooltips.xml: Fix method signature. + * en/Gtk/Button.xml: Add some info. + 2003-05-29 Lee Mallabone * en/*Sharp/*.xml: Remove the internal void*.xml signal docs. diff --git a/doc/en/Gtk/Button.xml b/doc/en/Gtk/Button.xml index e50838fc0..cef08233d 100644 --- a/doc/en/Gtk/Button.xml +++ b/doc/en/Gtk/Button.xml @@ -10,11 +10,46 @@ A widget that creates a signal when clicked on. - The GtkButton widget is generally used to attach a function to that is called when the button is pressed. The various signals and how to use them are outlined below. - - - The GtkButton widget can hold any valid child widget. That is it can hold most any other standard . The most commonly used child is the . + The widget is generally used to attach to a function that is called when the button is pressed. + The widget can hold any valid child widget. + That is, it can hold most any other standard . The most commonly used child is the . + + +using Gtk; +using GtkSharp; +using System; + +public class ButtonApp { + + public static int Main (string[] args) + { + Application.Init (); + Window win = new Window ("Button Tester"); + win.DefaultSize = new Size (200, 150); + win.DeleteEvent += new DeleteEventHandler (Window_Delete); + Button btn = new Button ("Click Me"); + btn.Clicked += new EventHandler (btn_click); + win.Add (btn); + win.ShowAll (); + Application.Run (); + return 0; + } + + static void btn_click (object obj, EventArgs args) + { + Console.WriteLine ("Button Clicked"); + } + + static void Window_Delete (object obj, DeleteEventArgs args) + { + Application.Quit (); + args.RetVal = true; + } + +} + + @@ -43,8 +78,8 @@ System.UInt32 - The GLib type for Gtk.Button. - The GLib type for the Gtk.Button . + The for . + The for the class. @@ -58,11 +93,11 @@ - Gets or sets if wether the Button should use a or not. + Whether the should use a . Boolean value to select if the - Button uses a or not. - Gets a value indicating if the Button uses a . - It's possible to create a Button from , which is recommended for consistency in Gnome + uses a or not. + Gets a value indicating if the uses a . + It's possible to create a from , which is recommended for consistency in apps. They also provide a and a key shortcut. @@ -77,12 +112,10 @@ - Gets or sets if the Button uses or not an embedded - underline in the Button indicating if a - mnemonic is associated to the Button. - Boolean value to select if the Button uses + Indicates if a mnemonic is associated with the . + Boolean value to select if the uses underline or not. - Gets a value indicating if the Button uses underline + Gets a value indicating if the uses underline or not. @@ -97,11 +130,11 @@ - Gets or sets the for the Button. + The for the . The for - the Button. + the . An instance of that - represents the relief style of the Button. + represents the relief style of the . @@ -115,12 +148,10 @@ - Gets or sets the used to be - represented with a contained by the - Button. - A to be used for - the Button's - The contained by the Button. + The text of the in the . + A to be used for + the 's + The contained by the . @@ -131,7 +162,7 @@ - launched when the button is activated. + Event launched when the is activated. @@ -142,7 +173,7 @@ - launched when the button is clicked. + Event launched when the is clicked. @@ -153,8 +184,7 @@ - launched when the cursor - leaves the button area. + Event launched when the cursor leaves the area. @@ -165,7 +195,7 @@ - launched when the button is pressed. + Event launched when the is pressed. @@ -176,7 +206,7 @@ - launched when the button is released. + Event launched when the is released. @@ -187,8 +217,7 @@ - launched when the cursor - enters the button area. + Event launched when the cursor enters the area. @@ -201,7 +230,7 @@ To be added - To be added: an object of type 'uint' + an object of type To be added @@ -216,8 +245,8 @@ To be added - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Button' + an object of type + an object of type To be added @@ -232,8 +261,8 @@ To be added - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Button' + an object of type + an object of type To be added @@ -245,8 +274,8 @@ - To be added - To be added + Emits a signal to the given . + Emits a signal to the given . @@ -257,8 +286,8 @@ - To be added - To be added + Emits a signal to the given . + Emits a signal to the given . @@ -269,8 +298,8 @@ - To be added - To be added + Emits a signal to the given . + Emits a signal to the given . @@ -281,8 +310,8 @@ - To be added - To be added + Emits a signal to the given . + Emits a signal to the given . @@ -293,8 +322,8 @@ - To be added - To be added + Emits a signal to the given . + Emits a signal to the given . @@ -319,8 +348,7 @@ Internal constructor GLib type for the type. - Creates a new instance of Button, using the GLib - provided type. + Creates a new instance of , using the GLib provided type. This is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code. @@ -333,9 +361,8 @@ Default parameterless constructor. - An instance of type Gtk.Button. - This is the default constructor for the Gtk.Button - . + An instance of . + This is the default constructor for the class. @@ -346,13 +373,12 @@ - Constructor that creates a labeled Button. The label - shows the string passed as parameter. - A that will be - used to create a for the Gtk.Button - A Gtk.Button containing a - with the string passed. - Constructor that creates a labeled button. The label + Constructor that creates a labeled . + A that will be + used to create a for the + A containing a + with the specified . + Constructor that creates a labeled . The label shows the string passed as parameter. @@ -365,10 +391,10 @@ To be added - To be added: an object of type 'IntPtr' - To be added: an object of type 'Gtk.Button' + an object of type + an object of type To be added - \ No newline at end of file + diff --git a/doc/en/Gtk/Progress.xml b/doc/en/Gtk/Progress.xml index c012c82de..6eb01eb20 100644 --- a/doc/en/Gtk/Progress.xml +++ b/doc/en/Gtk/Progress.xml @@ -8,7 +8,7 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. The base class for . - A is the abstract base class used to derive a which provides a visual representation of the progress of a long running operation. + A is the abstract base class used to derive a which provides a visual representation of the progress of a long running operation. Gtk.Widget diff --git a/doc/en/Gtk/ToggleButton.xml b/doc/en/Gtk/ToggleButton.xml index e07c04bbe..c5a63da8f 100644 --- a/doc/en/Gtk/ToggleButton.xml +++ b/doc/en/Gtk/ToggleButton.xml @@ -176,7 +176,7 @@ btn.Add(label); Creates a new with a text label. a containing the message to be placed in the toggle button. - an object of type ' + an object of type Creates a new with a text label. ToggleButton btn = new ToggleButton ("ToggleButton"); diff --git a/doc/en/Gtk/Tooltips.xml b/doc/en/Gtk/Tooltips.xml index ea56c9c6f..f315058ee 100644 --- a/doc/en/Gtk/Tooltips.xml +++ b/doc/en/Gtk/Tooltips.xml @@ -14,7 +14,7 @@ An individual tooltip belongs to a group of tooltips. A group is created by calling the constructor . Every tooltip in the group can then be turned off with and on with . - To assign a tip to a particular , is used. + To assign a tip to a particular , is used. Note: Tooltips can only be set on widgets which have their own X window. To add a tooltip to a that does not have its own , place the widget inside a and add a tooltip to that instead. The default appearance of all tooltips in a program is determined by the current Gtk theme that the user has selected.