mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-01 06:56:56 +00:00
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:
parent
a310c8747b
commit
0ca2169a8f
|
@ -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>
|
2005-01-20 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
* glib/Marshaller.cs (StringFormat): Calls String.Format and makes
|
* glib/Marshaller.cs (StringFormat): Calls String.Format and makes
|
||||||
|
|
|
@ -123,7 +123,8 @@ Accel paths are set to <Actions>/group-name/action-name.
|
||||||
<summary>Looks up an action in the action group by name.</summary>
|
<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>
|
<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>
|
<returns>a <see cref="T:Gtk.Action" />, or <see langword="null" /> if no action by that name exists</returns>
|
||||||
<remarks></remarks>
|
<remarks>
|
||||||
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="Add">
|
<Member MemberName="Add">
|
||||||
|
@ -245,7 +246,8 @@ Therefore you must either set the accel path yourself with <see cref="P:Gtk.Acti
|
||||||
<Docs>
|
<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>
|
<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>
|
<returns>a <see cref="T:System.String" /></returns>
|
||||||
<remarks></remarks>
|
<remarks>
|
||||||
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="Add">
|
<Member MemberName="Add">
|
||||||
|
@ -311,5 +313,21 @@ Therefore you must either set the accel path yourself with <see cref="P:Gtk.Acti
|
||||||
</remarks>
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</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>
|
</Members>
|
||||||
</Type>
|
</Type>
|
|
@ -18,6 +18,12 @@
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA.
|
// Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
public Action this[string name] {
|
||||||
|
get {
|
||||||
|
return GetAction (name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Add (ActionEntry[] entries)
|
public void Add (ActionEntry[] entries)
|
||||||
{
|
{
|
||||||
foreach (ActionEntry entry in entries) {
|
foreach (ActionEntry entry in entries) {
|
||||||
|
@ -74,7 +80,7 @@
|
||||||
IntPtr raw_ret = gtk_action_group_list_actions (Handle);
|
IntPtr raw_ret = gtk_action_group_list_actions (Handle);
|
||||||
GLib.List list = new GLib.List (raw_ret);
|
GLib.List list = new GLib.List (raw_ret);
|
||||||
Gtk.Action[] result = new Gtk.Action [list.Count];
|
Gtk.Action[] result = new Gtk.Action [list.Count];
|
||||||
for (int i = 0; i < list.Count; i++)
|
for (int i = 0; i < list.Count; i++)
|
||||||
result [i] = list [i] as Gtk.Action;
|
result [i] = list [i] as Gtk.Action;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue