示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
 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);
     }
 }
示例#5
0
 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;
 }
示例#6
0
 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;
     }
 }
示例#7
0
 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;
     }
 }
示例#8
0
        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;
		}