예제 #1
0
		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);
			}
		}
예제 #2
0
 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);
     }
 }