2005-01-23 Jeroen Zwartepoorte <jeroen@xs4all.nl>

* gtk/ActionGroup.custom: Add a string index for the GetAction method.


svn path=/trunk/gtk-sharp/; revision=39374
This commit is contained in:
Jeroen Zwartepoorte 2005-01-23 11:35:12 +00:00
parent a310c8747b
commit 0ca2169a8f
3 changed files with 33 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2005-01-23 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/ActionGroup.custom: Add a string index for the GetAction method.
2005-01-20 Dan Winship <danw@novell.com>
* glib/Marshaller.cs (StringFormat): Calls String.Format and makes

View File

@ -123,7 +123,8 @@ Accel paths are set to &lt;Actions&gt;/group-name/action-name.
<summary>Looks up an action in the action group by name.</summary>
<param name="action_name">a <see cref="T:System.String" />, the name of the action</param>
<returns>a <see cref="T:Gtk.Action" />, or <see langword="null" /> if no action by that name exists</returns>
<remarks></remarks>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName="Add">
@ -245,7 +246,8 @@ Therefore you must either set the accel path yourself with <see cref="P:Gtk.Acti
<Docs>
<summary>Sets the translation domain and uses dgettext() for translating the label and tooltip of <see cref="T:Gtk.ActionEntry" />s added by <see cref="M:Gtk.ActionGroup.AddActions()" />.</summary>
<returns>a <see cref="T:System.String" /></returns>
<remarks></remarks>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName="Add">
@ -311,5 +313,21 @@ Therefore you must either set the accel path yourself with <see cref="P:Gtk.Acti
</remarks>
</Docs>
</Member>
<Member MemberName="Item">
<MemberSignature Language="C#" Value="public Gtk.Action Item { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Action</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<summary>Returns the <see cref="T:Gtk.Action" /> with the specified name.</summary>
<param name="name">a <see cref="T:System.String" /></param>
<returns>a <see cref="T:Gtk.Action" /></returns>
<remarks>See <see cref="M:Gtk.ActionGroup.GetAction" /> for more info.</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View File

@ -18,6 +18,12 @@
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
public Action this[string name] {
get {
return GetAction (name);
}
}
public void Add (ActionEntry[] entries)
{
foreach (ActionEntry entry in entries) {
@ -74,7 +80,7 @@
IntPtr raw_ret = gtk_action_group_list_actions (Handle);
GLib.List list = new GLib.List (raw_ret);
Gtk.Action[] result = new Gtk.Action [list.Count];
for (int i = 0; i < list.Count; i++)
result [i] = list [i] as Gtk.Action;
for (int i = 0; i < list.Count; i++)
result [i] = list [i] as Gtk.Action;
return result;
}