Example #1
0
 static void Launched_cb(IntPtr inst, IntPtr info, IntPtr platform_data)
 {
     try {
         AppLaunchContext __obj = GLib.Object.GetObject(inst, false) as AppLaunchContext;
         __obj.OnLaunched(GLib.AppInfoAdapter.GetObject(info, false), new GLib.Variant(platform_data));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Example #2
0
 static void LaunchedFailed_cb(IntPtr inst, IntPtr startup_notify_id)
 {
     try {
         AppLaunchContext __obj = GLib.Object.GetObject(inst, false) as AppLaunchContext;
         __obj.OnLaunchedFailed(GLib.Marshaller.Utf8PtrToString(startup_notify_id));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Example #3
0
 static IntPtr GetDisplay_cb(IntPtr inst, IntPtr info, IntPtr files)
 {
     try {
         AppLaunchContext __obj = GLib.Object.GetObject(inst, false) as AppLaunchContext;
         string           __result;
         __result = __obj.OnGetDisplay(GLib.AppInfoAdapter.GetObject(info, false), new GLib.List(files));
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }