static void SetSortFunc_cb (IntPtr inst, int sort_column_id, GtkSharp.TreeIterCompareFuncNative sort_func, IntPtr user_data, GLib.DestroyNotify destroy) { try { ITreeSortableImplementor __obj = GLib.Object.GetObject (inst, false) as ITreeSortableImplementor; GtkSharp.TreeIterCompareFuncInvoker sort_func_invoker = new GtkSharp.TreeIterCompareFuncInvoker (sort_func, user_data, destroy); __obj.SetSortFunc (sort_column_id, sort_func_invoker.Handler); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } }
static void SetDefaultSortFunc_cb(IntPtr inst, GtkSharp.TreeIterCompareFuncNative sort_func, IntPtr user_data, GLib.DestroyNotify destroy) { try { ITreeSortableImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeSortableImplementor; GtkSharp.TreeIterCompareFuncInvoker sort_func_invoker = new GtkSharp.TreeIterCompareFuncInvoker(sort_func, user_data, destroy); __obj.DefaultSortFunc = sort_func_invoker.Handler; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }