2004-12-06 John Luke <john.luke@gmail.com>
* gtk/Action.custom * gtk/ActionGroup.custom * gtk/UIManager.custom * gtk/Gtk.metadata * doc/en/Gtk/ActionGroup.xml * file doc/en/Gtk/Action.xml * doc/en/Gtk/UIManager.xml: replace List and SList with arrays and update the docs svn path=/trunk/gtk-sharp/; revision=37272
This commit is contained in:
parent
089845650c
commit
75cb1c66db
8 changed files with 123 additions and 56 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2004-12-06 John Luke <john.luke@gmail.com>
|
||||
|
||||
* gtk/Action.custom
|
||||
* gtk/ActionGroup.custom
|
||||
* gtk/UIManager.custom
|
||||
* gtk/Gtk.metadata
|
||||
* doc/en/Gtk/ActionGroup.xml
|
||||
* file doc/en/Gtk/Action.xml
|
||||
* doc/en/Gtk/UIManager.xml: replace List and SList with arrays
|
||||
and update the docs
|
||||
|
||||
2004-12-06 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/SymbolTable.cs : add off_t as an IntPtr.
|
||||
|
|
|
@ -519,19 +519,6 @@ This does not necessarily mean effective visibility. See <see cref="P:Gtk.Action
|
|||
<see langword="true" /> if the action and its associated action group are both visible.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Proxies">
|
||||
<MemberSignature Language="C#" Value="public GLib.SList Proxies { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>GLib.SList</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Returns the proxy widgets for an action.</summary>
|
||||
<returns>a <see cref="T:GLib.SList" /> of proxy widgets. The list is owned by the action and must not be modified.</returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="AccelPath">
|
||||
<MemberSignature Language="C#" Value="public string AccelPath { set; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
|
@ -556,5 +543,18 @@ This does not necessarily mean effective visibility. See <see cref="P:Gtk.Action
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Proxies">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Widget [] Proxies { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Widget[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Returns the proxy widgets for an action.</summary>
|
||||
<returns>a <see cref="T:Gtk.Widget[]" /> of proxy widgets.</returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
</Type>
|
||||
|
|
|
@ -141,19 +141,6 @@ Accel paths are set to <Actions>/group-name/action-name.
|
|||
Therefore you must either set the accel path yourself with <see cref="P:Gtk.Action.AccelPath" />, or use <see cref="M:Gtk.ActionGroup.Add(Gtk.Action,System.String)" />.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ListActions">
|
||||
<MemberSignature Language="C#" Value="public GLib.List ListActions ();" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>GLib.List</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Lists the actions in the action group.</summary>
|
||||
<returns>a <see cref="T:GLib.List" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="protected ActionGroup (GLib.GType gtype);" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
|
@ -309,5 +296,18 @@ Therefore you must either set the accel path yourself with <see cref="P:Gtk.Acti
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ListActions">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Action[] ListActions ();" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Action[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Gets a list of the <see cref="T:Gtk.Action" />s in the <see cref="T:Gtk.ActionGroup" />.</summary>
|
||||
<returns>a <see cref="T:Gtk.Action[]" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
|
|
|
@ -215,22 +215,6 @@ The behaviour is chosen based on the "is_important" property of the action to wh
|
|||
<remarks>An enclosing <ui> element is added if it is missing.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetToplevels">
|
||||
<MemberSignature Language="C#" Value="public GLib.SList GetToplevels (Gtk.UIManagerItemType types);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>GLib.SList</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="types" Type="Gtk.UIManagerItemType" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Obtains a list of all toplevel widgets of the requested types.</summary>
|
||||
<param name="types">a <see cref="T:System.Int32" /></param>
|
||||
<returns>a <see cref="T:GLib.SList" /></returns>
|
||||
<remarks>Allowed types are GTK_UI_MANAGER_MENUBAR, GTK_UI_MANAGER_TOOLBAR and GTK_UI_MANAGER_POPUP.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="EnsureUpdate">
|
||||
<MemberSignature Language="C#" Value="public void EnsureUpdate ();" />
|
||||
<MemberType>Method</MemberType>
|
||||
|
@ -439,19 +423,6 @@ The behaviour is chosen based on the "is_important" property of the action to wh
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ActionGroups">
|
||||
<MemberSignature Language="C#" Value="public GLib.List ActionGroups { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>GLib.List</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The list of action groups associated with this UIManager.</summary>
|
||||
<returns>a <see cref="T:GLib.List" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ActionsChanged">
|
||||
<MemberSignature Language="C#" Value="public event EventHandler ActionsChanged;" />
|
||||
<MemberType>Event</MemberType>
|
||||
|
@ -537,5 +508,34 @@ The behaviour is chosen based on the "is_important" property of the action to wh
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ActionGroups">
|
||||
<MemberSignature Language="C#" Value="public Gtk.ActionGroup [] ActionGroups { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.ActionGroup[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The list of action groups associated with this UIManager.</summary>
|
||||
<returns>a <see cref="T:Gtk.ActionGroup[]" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetToplevels">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Widget[] GetToplevels (Gtk.UIManagerItemType types);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Widget[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="types" Type="Gtk.UIManagerItemType" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Obtains a list of all toplevel widgets of the requested types.</summary>
|
||||
<param name="types">a <see cref="T:System.Int32" /></param>
|
||||
<returns>a <see cref="T:Gtk.Widget[]" /></returns>
|
||||
<remarks>Allowed types are <see cref="T:Gtk.UIManager.Menubar" />, <see cref="F:Gtk.UIManager.Toolbar" /> and <see cref="F:GTK.UIManager.Popup" />.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
|
|
|
@ -23,3 +23,17 @@
|
|||
public Action (string name, string label) : this (name, label, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_action_get_proxies (IntPtr raw);
|
||||
|
||||
public Gtk.Widget[] Proxies {
|
||||
get {
|
||||
IntPtr raw_ret = gtk_action_get_proxies (Handle);
|
||||
GLib.SList list = new GLib.SList (raw_ret);
|
||||
Widget[] result = new Widget [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = list [i] as Widget;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,3 +66,15 @@
|
|||
if (changed != null)
|
||||
actions[0].Changed += changed;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_action_group_list_actions (IntPtr raw);
|
||||
|
||||
public Gtk.Action[] ListActions() {
|
||||
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;
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -92,6 +92,7 @@
|
|||
<attr path="/api/namespace/interface[@cname='GtkTreeSortable']/method[@name='SortColumnChanged']" name="name">ChangeSortColumn</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkAccelLabel']/constructor[@cname='gtk_accel_label_new']/*/*[@name='string']" name="property_name">label</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkAction']/signal[@name='Activate']" name="name">Activated</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkAction']/method[@name='GetProxies']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='AddAction']" name="name">Add</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='AddActions']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='AddActionsFull']" name="hidden">1</attr>
|
||||
|
@ -100,6 +101,7 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='AddRadioActionsFull']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='AddToggleActions']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='AddToggleActionsFull']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='ListActions']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkActionGroup']/method[@name='RemoveAction']" name="name">Remove</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkAdjustment']/constructor[@cname='gtk_adjustment_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkAdjustment']/method[@name='Changed']" name="name">Change</attr>
|
||||
|
@ -348,6 +350,8 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkTreeView']/method[@name='SetModel']/*/*[@type='GtkTreeModel*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTreeView']/signal[@name='SetScrollAdjustments']" name="name">ScrollAdjustmentsSet</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkUIManager']/constructor[@cname='gtk_ui_manager_new_merge_id']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkUIManager']/method[@cname='gtk_ui_manager_get_action_groups']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkUIManager']/method[@name='GetToplevels']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkViewport']/constructor[@cname='gtk_viewport_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkViewport']/method[@name='SetHadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkViewport']/method[@name='SetVadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||
|
|
|
@ -39,3 +39,29 @@
|
|||
{
|
||||
return gtk_ui_manager_new_merge_id (Handle);
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_ui_manager_get_toplevels (IntPtr raw, int types);
|
||||
|
||||
public Widget[] GetToplevels (Gtk.UIManagerItemType types) {
|
||||
IntPtr raw_ret = gtk_ui_manager_get_toplevels (Handle, (int) types);
|
||||
GLib.SList list = new GLib.SList (raw_ret);
|
||||
Widget[] result = new Widget [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = list [i] as Widget;
|
||||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_ui_manager_get_action_groups (IntPtr raw);
|
||||
|
||||
public ActionGroup[] ActionGroups {
|
||||
get {
|
||||
IntPtr raw_ret = gtk_ui_manager_get_action_groups (Handle);
|
||||
GLib.List list = new GLib.List(raw_ret);
|
||||
ActionGroup[] result = new ActionGroup [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = list [i] as ActionGroup;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue