static void ActionStateChanged_cb(IntPtr inst, IntPtr observable, IntPtr action_name, IntPtr state) { try { IActionObserverImplementor __obj = GLib.Object.GetObject(inst, false) as IActionObserverImplementor; __obj.ActionStateChanged(Gtk.ActionObservableAdapter.GetObject(observable, false), GLib.Marshaller.Utf8PtrToString(action_name), new GLib.Variant(state)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void PrimaryAccelChanged_cb(IntPtr inst, IntPtr observable, IntPtr action_name, IntPtr action_and_target) { try { IActionObserverImplementor __obj = GLib.Object.GetObject(inst, false) as IActionObserverImplementor; __obj.PrimaryAccelChanged(Gtk.ActionObservableAdapter.GetObject(observable, false), GLib.Marshaller.Utf8PtrToString(action_name), GLib.Marshaller.Utf8PtrToString(action_and_target)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public ActionObserverAdapter(IActionObserverImplementor implementor) { if (implementor == null) { throw new ArgumentNullException("implementor"); } else if (!(implementor is GLib.Object)) { throw new ArgumentException("implementor must be a subclass of GLib.Object"); } this.implementor = implementor as GLib.Object; }