static void RemoveFilter_cb(IntPtr inst, IntPtr filter) { try { IRecentChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IRecentChooserImplementor; __obj.RemoveFilter(GLib.Object.GetObject(filter) as Gtk.RecentFilter); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void UnselectAll_cb(IntPtr inst) { try { IRecentChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IRecentChooserImplementor; __obj.UnselectAll(); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void UnselectUri_cb(IntPtr inst, IntPtr uri) { try { IRecentChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IRecentChooserImplementor; __obj.UnselectUri(GLib.Marshaller.Utf8PtrToString(uri)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void SetSortFunc_cb(IntPtr inst, GtkSharp.RecentSortFuncNative sort_func, IntPtr sort_data, GLib.DestroyNotify data_destroy) { try { IRecentChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IRecentChooserImplementor; GtkSharp.RecentSortFuncInvoker sort_func_invoker = new GtkSharp.RecentSortFuncInvoker(sort_func, sort_data, data_destroy); __obj.SortFunc = sort_func_invoker.Handler; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public RecentChooserAdapter(IRecentChooserImplementor 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 GetCurrentUri_cb(IntPtr inst) { try { IRecentChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IRecentChooserImplementor; string __result; __result = __obj.CurrentUri; return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetFilters_cb(IntPtr inst) { try { IRecentChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IRecentChooserImplementor; Gtk.RecentFilter[] __result; __result = __obj.Filters; return(new GLib.SList(__result, typeof(Gtk.RecentFilter), true, false) == null ? IntPtr.Zero : new GLib.SList(__result, typeof(Gtk.RecentFilter), true, false).Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool SelectUri_cb(IntPtr inst, IntPtr uri, out IntPtr error) { error = IntPtr.Zero; try { IRecentChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IRecentChooserImplementor; bool __result; __result = __obj.SelectUri(GLib.Marshaller.Utf8PtrToString(uri)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public RecentChooserAdapter (IRecentChooserImplementor 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; }