static void SetStyleScheme_cb(IntPtr inst, IntPtr scheme) { try { IStyleSchemeChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IStyleSchemeChooserImplementor; __obj.StyleScheme = GLib.Object.GetObject(scheme) as GtkSource.StyleScheme; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public StyleSchemeChooserAdapter(IStyleSchemeChooserImplementor 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; }
static IntPtr GetStyleScheme_cb(IntPtr inst) { try { IStyleSchemeChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IStyleSchemeChooserImplementor; GtkSource.StyleScheme __result; __result = __obj.StyleScheme; return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }