コード例 #1
0
ファイル: BindingHelper.cs プロジェクト: draek/cil-bindings
        public static Delegate RemoveProxySignalDelegate(Element element, string signal, 
            GLib.DynamicSignalHandler baseHandler, Delegate existingHandler, Delegate removeHandler)
        {
            Delegate temp_delegate = Delegate.Remove(existingHandler, removeHandler);
            if(temp_delegate == null) {
                element.Disconnect(signal, baseHandler);
            }

            return temp_delegate;
        }
コード例 #2
0
        public static Delegate RemoveProxySignalDelegate(Element element, string signal,
                                                         GLib.DynamicSignalHandler baseHandler, Delegate existingHandler, Delegate removeHandler)
        {
            Delegate temp_delegate = Delegate.Remove(existingHandler, removeHandler);

            if (temp_delegate == null)
            {
                element.Disconnect(signal, baseHandler);
            }

            return(temp_delegate);
        }