~ubuntu-branches/ubuntu/natty/gtk-sharp2/natty

« back to all changes in this revision

Viewing changes to atk/Object.custom

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-05-18 00:00:41 UTC
  • mfrom: (1.1.16 upstream) (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100518000041-tlgvki554jx6ndhi
Tags: 2.12.10-1
* New upstream release
* debian/rules:
  + Bump API version to 2.12.10
* debian/control:
  + Bump Standards to 3.8.4 (no changes needed)
* debian/source/format:
  + Force Debian source format 1.0
* debian/rules:
  + Write a get-orig-source rule
* debian/watch:
  + Get rid of evil "debian uupdate" line which breaks packaging work on
    Ubuntu
* debian/patches/01_dllmaps.dpatch:
  + Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
                        return GLib.Object.GetObject (raw, true) as RelationSet;
228
228
                }
229
229
                
 
230
                [DllImport("atksharpglue-2")]
 
231
                static extern void atksharp_object_override_get_attributes (IntPtr type, GetAttributesDelegate cb);
 
232
 
 
233
                [GLib.CDeclCallback]
 
234
                delegate IntPtr GetAttributesDelegate (IntPtr raw);
 
235
 
 
236
                static GetAttributesDelegate GetAttributesCallback;
 
237
 
 
238
                static IntPtr GetAttributes_cb (IntPtr raw)
 
239
                {
 
240
                        try {
 
241
                                Atk.Object obj = GLib.Object.GetObject (raw, false) as Atk.Object;
 
242
                                Attribute [] attribute_set = obj.OnGetAttributes ();
 
243
                                if (attribute_set == null)
 
244
                                        return IntPtr.Zero;
 
245
                                return new GLib.SList (attribute_set, typeof (Attribute), false, false).Handle;
 
246
                        } catch (Exception e) {
 
247
                                GLib.ExceptionManager.RaiseUnhandledException (e, false);
 
248
                        }
 
249
 
 
250
                        return IntPtr.Zero;
 
251
                }
 
252
 
 
253
 
 
254
                static void OverrideGetAttributes (GLib.GType gtype)
 
255
                {
 
256
                        if (GetAttributesCallback == null)
 
257
                                GetAttributesCallback = new GetAttributesDelegate (GetAttributes_cb);
 
258
                        atksharp_object_override_get_attributes (gtype.Val, GetAttributesCallback);
 
259
                }
 
260
 
 
261
                [GLib.DefaultSignalHandler (Type=typeof(Atk.Object), ConnectionMethod="OverrideGetAttributes")]
 
262
                protected virtual Attribute [] OnGetAttributes () 
 
263
                {
 
264
                        return new Attribute [0];
 
265
                }
 
266
 
230
267
                protected void EmitFocusEvent (bool gained)
231
268
                {
232
269
                        GLib.Signal.Emit (this, "focus-event", gained);
233
270
                }
234
 
                
 
 
b'\\ No newline at end of file'
 
271