2004-02-11 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide the GSList API * gtk/*.custom : manually wrap GSList api using typed arrays * gtk/gtk-api.xml : regen. svn path=/trunk/gtk-sharp/; revision=22997
This commit is contained in:
parent
835866aab8
commit
f526347d5f
6 changed files with 108 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-02-11 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/Gtk.metadata : hide the GSList API
|
||||
* gtk/*.custom : manually wrap GSList api using typed arrays
|
||||
* gtk/gtk-api.xml : regen.
|
||||
|
||||
2004-02-11 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/*.custom : don't use element_type ctor for GObject lists.
|
||||
|
|
21
gtk/Accel.custom
Normal file
21
gtk/Accel.custom
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Accel.custom - customizations to Gtk.Accel
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_accel_groups_from_object (IntPtr obj);
|
||||
|
||||
public static AccelGroup[] GroupsFromObject (GLib.Object obj)
|
||||
{
|
||||
IntPtr raw_ret = gtk_accel_groups_from_object(obj.Handle);
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
return new AccelGroup [0];
|
||||
GLib.List list = new GLib.List(raw_ret);
|
||||
AccelGroup[] result = new AccelGroup [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = list [i] as AccelGroup;
|
||||
return result;
|
||||
}
|
||||
|
|
@ -13,6 +13,9 @@
|
|||
<attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='BackwardToTagToggle']/*/*[@type='GtkTextTag*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='ForwardSearch']/*/*[@type='GtkTextIter*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='ForwardToTagToggle']/*/*[@type='GtkTextTag*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='GetMarks']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='GetTags']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='GetToggledTags']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkTreePath']/method[@name='GetIndices']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/callback[@cname='GtkClipboardGetFunc']/*/*[@type='GtkSelectionData*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkAccel_']/method[@name='GroupsFromObject']" name="hidden">1</attr>
|
||||
|
@ -23,6 +26,7 @@
|
|||
<attr path="/api/namespace/class[@cname='GtkDrag_']/method[@name='SourceSet']/*/*[@name='targets']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkIdle_']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkStock_']" name="name">StockManager</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkStock_']/method[@name='ListIds']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/enum[@cname='GtkDebugFlag']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/enum[@cname='GtkExpanderStyle']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/enum[@cname='GtkObjectFlags']" name="hidden">1</attr>
|
||||
|
|
21
gtk/Stock.custom
Normal file
21
gtk/Stock.custom
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Stock.custom - customizations to Gtk.Stock
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_stock_list_ids ();
|
||||
|
||||
public static string[] ListIds ()
|
||||
{
|
||||
IntPtr raw_ret = gtk_stock_list_ids ();
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
return new string [0];
|
||||
GLib.List list = new GLib.List(raw_ret, typeof (string));
|
||||
string[] result = new string [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = (string) list [i];
|
||||
return result;
|
||||
}
|
||||
|
52
gtk/TextIter.custom
Executable file
52
gtk/TextIter.custom
Executable file
|
@ -0,0 +1,52 @@
|
|||
// TextIter.custom - customizations to Gtk.TextIter
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_text_iter_get_marks (ref TextIter iter);
|
||||
|
||||
public TextMark[] Marks {
|
||||
get {
|
||||
IntPtr raw_ret = gtk_text_iter_get_marks (ref this);
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
return new TextMark [0];
|
||||
GLib.List list = new GLib.List(raw_ret);
|
||||
TextMark[] result = new TextMark [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = list [i] as TextMark;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_text_iter_get_tags (ref TextIter iter);
|
||||
|
||||
public TextTag[] Tags {
|
||||
get {
|
||||
IntPtr raw_ret = gtk_text_iter_get_tags (ref this);
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
return new TextTag [0];
|
||||
GLib.List list = new GLib.List(raw_ret);
|
||||
TextTag[] result = new TextTag [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = list [i] as TextTag;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_text_iter_get_toggled_tags (ref TextIter iter, bool toggled_on);
|
||||
|
||||
public TextTag[] GetToggledTags (bool toggled_on)
|
||||
{
|
||||
IntPtr raw_ret = gtk_text_iter_get_toggled_tags (ref this, toggled_on);
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
return new TextTag [0];
|
||||
GLib.List list = new GLib.List(raw_ret);
|
||||
TextTag[] result = new TextTag [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result [i] = list [i] as TextTag;
|
||||
return result;
|
||||
}
|
|
@ -11865,7 +11865,7 @@
|
|||
<method name="GetLineOffset" cname="gtk_text_iter_get_line_offset">
|
||||
<return-type type="gint" />
|
||||
</method>
|
||||
<method name="GetMarks" cname="gtk_text_iter_get_marks">
|
||||
<method name="GetMarks" cname="gtk_text_iter_get_marks" hidden="1">
|
||||
<return-type type="GSList*" />
|
||||
</method>
|
||||
<method name="GetOffset" cname="gtk_text_iter_get_offset">
|
||||
|
@ -11880,7 +11880,7 @@
|
|||
<parameter type="const-GtkTextIter*" name="end" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetTags" cname="gtk_text_iter_get_tags">
|
||||
<method name="GetTags" cname="gtk_text_iter_get_tags" hidden="1">
|
||||
<return-type type="GSList*" />
|
||||
</method>
|
||||
<method name="GetText" cname="gtk_text_iter_get_text">
|
||||
|
@ -11889,7 +11889,7 @@
|
|||
<parameter type="const-GtkTextIter*" name="end" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetToggledTags" cname="gtk_text_iter_get_toggled_tags">
|
||||
<method name="GetToggledTags" cname="gtk_text_iter_get_toggled_tags" hidden="1">
|
||||
<return-type type="GSList*" />
|
||||
<parameters>
|
||||
<parameter type="gboolean" name="toggled_on" />
|
||||
|
@ -13120,7 +13120,7 @@
|
|||
<parameter type="guint" name="n_items" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="ListIds" cname="gtk_stock_list_ids" shared="true">
|
||||
<method name="ListIds" cname="gtk_stock_list_ids" shared="true" hidden="1">
|
||||
<return-type type="GSList*" />
|
||||
</method>
|
||||
<method name="Lookup" cname="gtk_stock_lookup" shared="true">
|
||||
|
|
Loading…
Reference in a new issue