From 75cb1c66dbe58a7a92dfcdfba75fcea9de9574fd Mon Sep 17 00:00:00 2001 From: John Luke Date: Tue, 7 Dec 2004 01:31:50 +0000 Subject: [PATCH] 2004-12-06 John Luke * 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 --- ChangeLog | 11 ++++++++ doc/en/Gtk/Action.xml | 28 +++++++++--------- doc/en/Gtk/ActionGroup.xml | 26 ++++++++--------- doc/en/Gtk/UIManager.xml | 58 +++++++++++++++++++------------------- gtk/Action.custom | 14 +++++++++ gtk/ActionGroup.custom | 12 ++++++++ gtk/Gtk.metadata | 4 +++ gtk/UIManager.custom | 26 +++++++++++++++++ 8 files changed, 123 insertions(+), 56 deletions(-) diff --git a/ChangeLog b/ChangeLog index dcc3cea9c..a30264ddf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2004-12-06 John Luke + + * 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 * generator/SymbolTable.cs : add off_t as an IntPtr. diff --git a/doc/en/Gtk/Action.xml b/doc/en/Gtk/Action.xml index 9f0763880..4a965e550 100644 --- a/doc/en/Gtk/Action.xml +++ b/doc/en/Gtk/Action.xml @@ -519,19 +519,6 @@ This does not necessarily mean effective visibility. See if the action and its associated action group are both visible. - - - Property - - GLib.SList - - - - Returns the proxy widgets for an action. - a of proxy widgets. The list is owned by the action and must not be modified. - - - Property @@ -556,5 +543,18 @@ This does not necessarily mean effective visibility. See + + Property + + Gtk.Widget[] + + + + Returns the proxy widgets for an action. + a of proxy widgets. + + + - \ No newline at end of file + diff --git a/doc/en/Gtk/ActionGroup.xml b/doc/en/Gtk/ActionGroup.xml index 8f26ffb33..17ad827cb 100644 --- a/doc/en/Gtk/ActionGroup.xml +++ b/doc/en/Gtk/ActionGroup.xml @@ -141,19 +141,6 @@ Accel paths are set to <Actions>/group-name/action-name. Therefore you must either set the accel path yourself with , or use . - - - Method - - GLib.List - - - - Lists the actions in the action group. - a - To be added - - Constructor @@ -309,5 +296,18 @@ Therefore you must either set the accel path yourself with + + Method + + Gtk.Action[] + + + + Gets a list of the s in the . + a + + + diff --git a/doc/en/Gtk/UIManager.xml b/doc/en/Gtk/UIManager.xml index 864924746..a297ec02f 100644 --- a/doc/en/Gtk/UIManager.xml +++ b/doc/en/Gtk/UIManager.xml @@ -215,22 +215,6 @@ The behaviour is chosen based on the "is_important" property of the action to wh An enclosing <ui> element is added if it is missing. - - - Method - - GLib.SList - - - - - - Obtains a list of all toplevel widgets of the requested types. - a - a - Allowed types are GTK_UI_MANAGER_MENUBAR, GTK_UI_MANAGER_TOOLBAR and GTK_UI_MANAGER_POPUP. - - Method @@ -439,19 +423,6 @@ The behaviour is chosen based on the "is_important" property of the action to wh - - - Property - - GLib.List - - - - The list of action groups associated with this UIManager. - a - - - Event @@ -537,5 +508,34 @@ The behaviour is chosen based on the "is_important" property of the action to wh To be added + + + Property + + Gtk.ActionGroup[] + + + + The list of action groups associated with this UIManager. + a + + + + + + Method + + Gtk.Widget[] + + + + + + Obtains a list of all toplevel widgets of the requested types. + a + a + Allowed types are , and . + + diff --git a/gtk/Action.custom b/gtk/Action.custom index a6c82253e..ac6a0e6ec 100644 --- a/gtk/Action.custom +++ b/gtk/Action.custom @@ -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; + } + } diff --git a/gtk/ActionGroup.custom b/gtk/ActionGroup.custom index 67c175f95..1c6a73b9c 100644 --- a/gtk/ActionGroup.custom +++ b/gtk/ActionGroup.custom @@ -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; + } diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index da8694cb0..67f84771e 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -92,6 +92,7 @@ ChangeSortColumn label Activated + 1 Add 1 1 @@ -100,6 +101,7 @@ 1 1 1 + 1 Remove 1 Change @@ -348,6 +350,8 @@ 1 ScrollAdjustmentsSet 1 + 1 + 1 1 1 1 diff --git a/gtk/UIManager.custom b/gtk/UIManager.custom index 1c6777aa2..12ba7f736 100644 --- a/gtk/UIManager.custom +++ b/gtk/UIManager.custom @@ -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; + } + }