diff --git a/doc/en/Gdk/Bitmap.xml b/doc/en/Gdk/Bitmap.xml index 746f9edfc..2cf51b808 100644 --- a/doc/en/Gdk/Bitmap.xml +++ b/doc/en/Gdk/Bitmap.xml @@ -10,7 +10,7 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - To be added + This represents an X server bitmap. To be added diff --git a/doc/en/Gtk/AccelLabel.xml b/doc/en/Gtk/AccelLabel.xml index 0bc96fa66..b46e0b030 100644 --- a/doc/en/Gtk/AccelLabel.xml +++ b/doc/en/Gtk/AccelLabel.xml @@ -10,7 +10,7 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - A widget that displays an accelerator key + A widget that displays an accelerator key on the right of the text. The widget is a subclass of that also displays an accelerator key on the right of the label text. The widget is commonly used in menus to show the keyboard shortcuts for commands. @@ -93,9 +93,9 @@ - To be added - To be added: an object of type 'string' - To be added: an object of type 'Gtk.AccelLabel' + Creates an accelerator label. + The accelerator label. + To be added @@ -174,9 +174,9 @@ - To be added + The GLib Type assigned to this class. a - To be added + Used internally. diff --git a/doc/en/Gtk/DrawingArea.xml b/doc/en/Gtk/DrawingArea.xml index 52e941873..40334438e 100644 --- a/doc/en/Gtk/DrawingArea.xml +++ b/doc/en/Gtk/DrawingArea.xml @@ -79,7 +79,7 @@ - Constructor. + Default Constructor. An instance of . diff --git a/doc/en/Gtk/ThreadNotify.xml b/doc/en/Gtk/ThreadNotify.xml index fd8254c51..df20e1a39 100644 --- a/doc/en/Gtk/ThreadNotify.xml +++ b/doc/en/Gtk/ThreadNotify.xml @@ -10,8 +10,36 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - To be added - To be added + Multi-threaded integration with Gtk support. + + The ThreadNotify class is used to invoke methods in the Gtk+ thread. Since Gtk is not a thread-safe toolkit, only a single thread at a time might be making calls into Gtk. + Typically applications will be executing the main Gtk+ main loop and when threads are done processing work, they invoke to invoke a method on the main Gtk+ thread. + + +using Gtk; + +class Demo { + static void Main () + { + Application.Init (); + notify = new ThreadNotify (new ReadyEvent (ready)); + Application.Run (); + } + + static void ready () + { + // Update the GUI with computation values. + } + + static void ThreadRoutine () + { + LargeComputation (); + notify.WakeupMain (); + } +} + + + System.Object @@ -27,8 +55,8 @@ - To be added - To be added + Wakeup the main thread, and invoke delegate. + This methods wakes up the Gtk+ main thread and executes the delegate that was specified at construction time in the Gtk+ thread. @@ -39,10 +67,10 @@ - To be added - To be added: an object of type 'Gtk.ReadyEvent' - To be added: an object of type 'Gtk.ThreadNotify' - To be added + ThreadNotify constructor + A ReadyEvent delegate. + Constructed object. + The method referenced by the delegate will be invoked on the Gtk+ mainloop whenever any thread invokes the method.