2008-11-14 Brad Taylor <brad@getcoded.net>
* glib/Object.cs: Bind g_object_notify. * doc/en/GLib/Object.xml: Document new API. svn path=/trunk/gtk-sharp/; revision=118864
This commit is contained in:
parent
74105a1c80
commit
45622e1d33
3 changed files with 31 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-11-14 Brad Taylor <brad@getcoded.net>
|
||||
|
||||
* glib/Object.cs: Bind g_object_notify.
|
||||
|
||||
* doc/en/GLib/Object.xml: Document new API.
|
||||
|
||||
2008-11-05 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* atk/atk-api-2.12.raw: regen
|
||||
|
|
|
@ -359,6 +359,21 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Notify">
|
||||
<MemberSignature Language="C#" Value="protected void Notify (string property_name);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="name" Type="System.String" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Emits a GObject "notify" signal for the property specified by <paramref name="property_name" />.</summary>
|
||||
<param name="property_name">the name of a property on the underlying GObject.</param>
|
||||
<remarks>This method is used to notify consumers of the underlying GObject that something about the GObject property specified by <paramref name="property_name" /> has changed.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="protected Object (IntPtr raw);" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
|
|
|
@ -576,6 +576,16 @@ namespace GLib {
|
|||
GLib.Marshaller.Free (native_name);
|
||||
}
|
||||
|
||||
[DllImport("libgobject-2.0-0.dll")]
|
||||
static extern void g_object_notify (IntPtr obj, IntPtr property_name);
|
||||
|
||||
protected void Notify (string property_name)
|
||||
{
|
||||
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
|
||||
g_object_notify (Handle, native_name);
|
||||
GLib.Marshaller.Free (native_name);
|
||||
}
|
||||
|
||||
[DllImport("glibsharpglue-2")]
|
||||
static extern void gtksharp_override_virtual_method (IntPtr gtype, IntPtr name, Delegate cb);
|
||||
|
||||
|
|
Loading…
Reference in a new issue