Beispiel #1
0
        internal static void OverrideDefaultHandler(GType gtype, string name, Delegate cb)
        {
            IntPtr closure = g_cclosure_new(cb, IntPtr.Zero, IntPtr.Zero);

            gtype.EnsureClass();
            uint id = GetSignalId(name, gtype.Val);

            g_signal_override_class_closure(id, gtype.Val, closure);
        }
Beispiel #2
0
            internal GType Init()
            {
                AddGInterfaces();
                gtype.EnsureClass();                  //calls class_init

                ConnectDefaultHandlers();
                InvokeTypeInitializers();
                AddInterfaceProperties();
                return(gtype);
            }
Beispiel #3
0
 internal static void OverrideDefaultHandler(GType gtype, string name, Delegate cb)
 {
     IntPtr closure = g_cclosure_new (cb, IntPtr.Zero, IntPtr.Zero);
     gtype.EnsureClass ();
     uint id = GetSignalId (name, gtype.Val);
     g_signal_override_class_closure (id, gtype.Val, closure);
 }