2003-07-16 John Luke <jluke@cfl.rr.com>

* en/GConf/Client.xml: documented

svn path=/trunk/gtk-sharp/; revision=16315
This commit is contained in:
John Luke 2003-07-17 02:56:34 +00:00
parent 749844387c
commit c5ebc2856b
2 changed files with 69 additions and 36 deletions

View file

@ -8,6 +8,7 @@
* en/Gtk/CellRendererText.xml: documented, except one event and method * en/Gtk/CellRendererText.xml: documented, except one event and method
* en/Gtk/CellRendererToggle.xml: documented * en/Gtk/CellRendererToggle.xml: documented
* en/Gtk/CellRendererPixbuf.xml: documented * en/Gtk/CellRendererPixbuf.xml: documented
* en/GConf/Client.xml: documented
2003-07-15 Duncan Mak <duncan@ximian.com> 2003-07-15 Duncan Mak <duncan@ximian.com>

View file

@ -9,8 +9,24 @@
</AssemblyInfo> </AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement> <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
<Docs> <Docs>
<summary>To be added</summary> <summary>Basic functions to initialize GConf and get/set values.</summary>
<remarks>To be added</remarks> <remarks>The following example attempts to retrieve a setting from GConf, and set a default value otherwise.</remarks>
<example>
<code language="C#">
string MyVal;
GConf.Client gconfClient = new GConf.Client ();
try
{
MyVal = (string) gconfClient.Get ("/apps/monoapps/SampleApp/setting1"));
}
catch (GConf.NoSuchKeyException)
{
gconfClient.Set ("/apps/monoapps/SampleApp/setting1", "sample");
}
</code>
</example>
</Docs> </Docs>
<Base> <Base>
<BaseTypeName>GConf.ClientBase</BaseTypeName> <BaseTypeName>GConf.ClientBase</BaseTypeName>
@ -26,8 +42,8 @@
</ReturnValue> </ReturnValue>
<Parameters /> <Parameters />
<Docs> <Docs>
<summary>To be added</summary> <summary>Suggests that you have just finished a block of changes, and it would be an optimal time to sync to permanent storage.</summary>
<remarks>To be added</remarks> <remarks>This function is just a "hint" provided to maximize efficiency and minimize data loss.</remarks>
</Docs> </Docs>
</Member> </Member>
<Member MemberName="RemoveNotify"> <Member MemberName="RemoveNotify">
@ -41,10 +57,10 @@
<Parameter Name="notify" Type="GConf.NotifyEventHandler" /> <Parameter Name="notify" Type="GConf.NotifyEventHandler" />
</Parameters> </Parameters>
<Docs> <Docs>
<summary>To be added</summary> <summary>Removes a notification request.</summary>
<param name="dir">To be added: an object of type 'string'</param> <param name="dir">an object of type <see cref="T:System.String"/></param>
<param name="notify">To be added: an object of type 'GConf.NotifyEventHandler'</param> <param name="notify">an object of type <see cref="T:GConf.NotifyEventHandler"/></param>
<remarks>To be added</remarks> <remarks />
</Docs> </Docs>
</Member> </Member>
<Member MemberName="AddNotify"> <Member MemberName="AddNotify">
@ -58,9 +74,9 @@
<Parameter Name="notify" Type="GConf.NotifyEventHandler" /> <Parameter Name="notify" Type="GConf.NotifyEventHandler" />
</Parameters> </Parameters>
<Docs> <Docs>
<summary>To be added</summary> <summary>Registers a notification request.</summary>
<param name="dir">To be added: an object of type 'string'</param> <param name="dir">an object of type <see cref="T:System.String"/></param>
<param name="notify">To be added: an object of type 'GConf.NotifyEventHandler'</param> <param name="notify">an object of type <see cref="T:GConf.NotifyEventHandler"/></param>
<remarks>To be added</remarks> <remarks>To be added</remarks>
</Docs> </Docs>
</Member> </Member>
@ -74,27 +90,43 @@
<Parameter Name="key" Type="System.String" /> <Parameter Name="key" Type="System.String" />
</Parameters> </Parameters>
<Docs> <Docs>
<summary>To be added</summary> <summary>Gets a value from the GConf source.</summary>
<param name="key">To be added: an object of type 'string'</param> <param name="key">an object of type <see cref="T:System.String"/></param>
<returns>To be added: an object of type 'object'</returns> <returns>an object of type <see cref="T:System.Object"/></returns>
<remarks>To be added</remarks> <remarks>Normally you will need to convert the value to the correct type before using it.
</Docs> Here is how you could set a <see cref="T:Gtk.Toolbar"/> to use the system-wide setting for style.</remarks>
</Member> <example>
<Member MemberName="SetValue"> <code language="C#">
<MemberSignature Language="C#" Value="protected virtual void SetValue (string key, GConf.Value val);" /> // assuming you have a Gtk.Toolbar named toolbar1
<MemberType>Method</MemberType>
<ReturnValue> string val;
<ReturnType>System.Void</ReturnType>
</ReturnValue> try
<Parameters> {
<Parameter Name="key" Type="System.String" /> GConf.Client gconfclient = new GConf.Client ();
<Parameter Name="val" Type="GConf.Value" /> val = (string) gconfclient.Get ("/desktop/gnome/interface/toolbar_style");
</Parameters> }
<Docs> catch (GConf.NoSuchKeyException)
<summary>To be added</summary> {
<param name="key">To be added: an object of type 'string'</param> val = "both";
<param name="val">To be added: an object of type 'GConf.Value'</param> }
<remarks>To be added</remarks>
switch (val) {
case "both":
toolbar1.ToolbarStyle = Gtk.ToolbarStyle.Both;
break;
case "text":
toolbar1.ToolbarStyle = Gtk.ToolbarStyle.Text;
break;
case "both_horiz":
toolbar1.ToolbarStyle = Gtk.ToolbarStyle.BothHoriz;
break;
default:
toolbar1.ToolbarStyle = Gtk.ToolbarStyle.Icons;
break;
}
</code>
</example>
</Docs> </Docs>
</Member> </Member>
<Member MemberName=".ctor"> <Member MemberName=".ctor">
@ -103,9 +135,9 @@
<ReturnValue /> <ReturnValue />
<Parameters /> <Parameters />
<Docs> <Docs>
<summary>To be added</summary> <summary>Creates a new <see cref="T:GConf.Client"/>.</summary>
<returns>To be added: an object of type 'GConf.Client'</returns> <returns>an object of type <see cref="T:GConf.Client"/></returns>
<remarks>To be added</remarks> <remarks>This is the default constructor for <see cref="T:GConf.Client"/>.</remarks>
</Docs> </Docs>
</Member> </Member>
</Members> </Members>