Compilation Units
Tagged Types
procedure Destroy (Data : in out User_Data_Type)
type Gasync_Ready_Callback is access procedure
(Source_Object : access Glib.Object.GObject_Record'Class;
Res : Glib.G_Async_Result;
Data : User_Data_Type);
Type definition for a function that will be called back when an asynchronous operation within GIO has been completed. Gasync_Ready_Callback callbacks from Gtask.Gtask are guaranteed to be invoked in a later iteration of the thread-default main context (see [methodGlib.MainContext.push_thread_default]) where the Gtask.Gtask was created. All other users of Gasync_Ready_Callback must likewise call it asynchronously in a later iteration of the main context. The asynchronous operation is guaranteed to have held a reference to Source_Object from the time when the *_async function was called, until after this callback returns.
the object the asynchronous operation was started with.
a Glib.G_Async_Result.
user data passed to the callback.
procedure Get_Default_For_Type_Async
(Content_Type : UTF8_String;
Must_Support_Uris : Boolean;
Cancellable : access Glib.Cancellable.Gcancellable_Record'Class;
Callback : Gasync_Ready_Callback;
User_Data : User_Data_Type)
Asynchronously gets the default Glib.App_Info.Gapp_Info for a given content type. Since: gtk+ 2.74
the content type to find a Glib.App_Info.Gapp_Info for
if True, the Glib.App_Info.Gapp_Info is expected to support URIs
optional Glib.Cancellable.Gcancellable object, null to ignore
a Gasync_Ready_Callback to call when the request is done
data to pass to Callback
type User_Data_Type (<>) is private;