227
227
return GLib.Object.GetObject (raw, true) as RelationSet;
230
[DllImport("atksharpglue-2")]
231
static extern void atksharp_object_override_get_attributes (IntPtr type, GetAttributesDelegate cb);
234
delegate IntPtr GetAttributesDelegate (IntPtr raw);
236
static GetAttributesDelegate GetAttributesCallback;
238
static IntPtr GetAttributes_cb (IntPtr raw)
241
Atk.Object obj = GLib.Object.GetObject (raw, false) as Atk.Object;
242
Attribute [] attribute_set = obj.OnGetAttributes ();
243
if (attribute_set == null)
245
return new GLib.SList (attribute_set, typeof (Attribute), false, false).Handle;
246
} catch (Exception e) {
247
GLib.ExceptionManager.RaiseUnhandledException (e, false);
254
static void OverrideGetAttributes (GLib.GType gtype)
256
if (GetAttributesCallback == null)
257
GetAttributesCallback = new GetAttributesDelegate (GetAttributes_cb);
258
atksharp_object_override_get_attributes (gtype.Val, GetAttributesCallback);
261
[GLib.DefaultSignalHandler (Type=typeof(Atk.Object), ConnectionMethod="OverrideGetAttributes")]
262
protected virtual Attribute [] OnGetAttributes ()
264
return new Attribute [0];
230
267
protected void EmitFocusEvent (bool gained)
232
269
GLib.Signal.Emit (this, "focus-event", gained);
b'\\ No newline at end of file'