Some of my contributions
svn path=/trunk/gtk-sharp/; revision=25794
This commit is contained in:
parent
88d46fcccb
commit
1fe2785b28
4 changed files with 44 additions and 16 deletions
|
@ -10,7 +10,7 @@
|
||||||
</AssemblyInfo>
|
</AssemblyInfo>
|
||||||
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>This represents an X server bitmap.</summary>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
<Base>
|
<Base>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</AssemblyInfo>
|
</AssemblyInfo>
|
||||||
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>A widget that displays an accelerator key</summary>
|
<summary>A widget that displays an accelerator key on the right of the text.</summary>
|
||||||
<remarks>
|
<remarks>
|
||||||
<para>
|
<para>
|
||||||
The <see cref="T:Gtk.AccelLabel" /> widget is a subclass of <see cref="T:Gtk.Label" /> that also displays an accelerator key on the right of the label text. The <see cref="T:Gtk.AccelLabel" /> widget is commonly used in menus to show the keyboard shortcuts for commands.
|
The <see cref="T:Gtk.AccelLabel" /> widget is a subclass of <see cref="T:Gtk.Label" /> that also displays an accelerator key on the right of the label text. The <see cref="T:Gtk.AccelLabel" /> widget is commonly used in menus to show the keyboard shortcuts for commands.
|
||||||
|
@ -93,9 +93,9 @@
|
||||||
<Parameter Name="str1ng" Type="System.String" />
|
<Parameter Name="str1ng" Type="System.String" />
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>Creates an accelerator label.</summary>
|
||||||
<param name="str1ng">To be added: an object of type 'string'</param>
|
<param name="str1ng">The accelerator label.</param>
|
||||||
<returns>To be added: an object of type 'Gtk.AccelLabel'</returns>
|
<returns />
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -174,9 +174,9 @@
|
||||||
</ReturnValue>
|
</ReturnValue>
|
||||||
<Parameters />
|
<Parameters />
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>The GLib Type assigned to this class.</summary>
|
||||||
<returns>a <see cref="T:GLib.GType" /></returns>
|
<returns>a <see cref="T:GLib.GType" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>Used internally.</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName=".ctor">
|
<Member MemberName=".ctor">
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
<ReturnValue />
|
<ReturnValue />
|
||||||
<Parameters />
|
<Parameters />
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Constructor.</summary>
|
<summary>Default Constructor.</summary>
|
||||||
<returns>An instance of <see cref="T:Gtk.DrawingArea" />.</returns>
|
<returns>An instance of <see cref="T:Gtk.DrawingArea" />.</returns>
|
||||||
<remarks />
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
|
|
|
@ -10,8 +10,36 @@
|
||||||
</AssemblyInfo>
|
</AssemblyInfo>
|
||||||
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>Multi-threaded integration with Gtk support.</summary>
|
||||||
<remarks>To be added</remarks>
|
<remarks>
|
||||||
|
<para>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.</para>
|
||||||
|
<para>Typically applications will be executing the main Gtk+ main loop and when threads are done processing work, they invoke <see cref="M:Gtk.ThreadNotify.WakeupMain()" /> to invoke a method on the main Gtk+ thread.</para>
|
||||||
|
<example>
|
||||||
|
<code lang="C#">
|
||||||
|
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 ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
</example>
|
||||||
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
<Base>
|
<Base>
|
||||||
<BaseTypeName>System.Object</BaseTypeName>
|
<BaseTypeName>System.Object</BaseTypeName>
|
||||||
|
@ -27,8 +55,8 @@
|
||||||
</ReturnValue>
|
</ReturnValue>
|
||||||
<Parameters />
|
<Parameters />
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>Wakeup the main thread, and invoke delegate.</summary>
|
||||||
<remarks>To be added</remarks>
|
<remarks>This methods wakes up the Gtk+ main thread and executes the delegate that was specified at construction time in the Gtk+ thread. </remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName=".ctor">
|
<Member MemberName=".ctor">
|
||||||
|
@ -39,10 +67,10 @@
|
||||||
<Parameter Name="re" Type="Gtk.ReadyEvent" />
|
<Parameter Name="re" Type="Gtk.ReadyEvent" />
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>ThreadNotify constructor</summary>
|
||||||
<param name="re">To be added: an object of type 'Gtk.ReadyEvent'</param>
|
<param name="re">A ReadyEvent delegate.</param>
|
||||||
<returns>To be added: an object of type 'Gtk.ThreadNotify'</returns>
|
<returns>Constructed object.</returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>The method referenced by the delegate will be invoked on the Gtk+ mainloop whenever any thread invokes the <see cref="M:Gtk.ThreadNotify.WakeupMain ()" /> method.</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="Close">
|
<Member MemberName="Close">
|
||||||
|
|
Loading…
Reference in a new issue