diff --git a/doc/en/GLib/AppInfo.xml b/doc/en/GLib/AppInfo.xml index a546986aa..633b66a1b 100644 --- a/doc/en/GLib/AppInfo.xml +++ b/doc/en/GLib/AppInfo.xml @@ -9,8 +9,21 @@ - This interface provides application information and launch contexts. See for a concrete implementation and usage. - To be added. + This interface provides application information and launch contexts. See and for concretes implementations and usage. + The following code sample lists all the application installed on your system: + + +public class TestAppInfo +{ + static void Main (string[] args) + { + GLib.GType.Init (); + + foreach (AppInfo appinfo in AppInfoAdapter.All) + Console.WriteLine ("\t{0}: {1}, {2} ", appinfo.Name, appinfo.Descritpion, appinfo.Executable); + } +} + @@ -25,9 +38,14 @@ To be added. - To be added. - To be added. - To be added. + Adds a content type to the application. + Always returns True. Throw a if something went wrong. + + Adds a content type to the application information to indicate the application is capable of opening files with the given content type. + +This method always returns True, or throw a if something went wrong. + + @@ -38,8 +56,8 @@ System.Boolean - To be added. - To be added. + If a supported content type can be removed from an application. + True if it is possible to remove supported content types from the application, False if not. To be added. @@ -148,11 +166,16 @@ Eye of Gnome: Browse and rotate images - To be added. - To be added. - To be added. - To be added. - To be added. + A of objects, or null to launch the application without arguments. + An , or null. + Launches the application. + Always returns True. Throws a if something went wrong. + + Launches the application. Passes files to the launched application as arguments, using the optional launch_context to get information about the details of the launcher (like what screen it is on). Throws a on error. + To lauch the application without arguments pass a null files list. + Note that even if the launch is successful the application launched can fail to start if it runs into problems during startup. There is no way to detect this. + Some URIs can be changed when passed through a GFile (for instance unsupported uris with strange formats like mailto:), so if you have a textual uri you want to pass in as argument, consider using instead. + @@ -167,11 +190,15 @@ Eye of Gnome: Browse and rotate images - To be added. - To be added. - To be added. - To be added. - To be added. + A of containing URIs to launch, or null. + A , or null. + Launches the application. + Always returns True. Throws a if something went wrong. + + Launches the application. Passes uris to the launched application as arguments, using the optional launch_context to get information about the details of the launcher (like what screen it is on). On error, throws a + To lauch the application without arguments pass a NULL uris list. + Note that even if the launch is successful the application launched can fail to start if it runs into problems during startup. There is no way to detect this. + @@ -198,10 +225,10 @@ Eye of Gnome: Browse and rotate images - To be added. - To be added. - To be added. - To be added. + A containing a content type. On Unix, content types are mimetypes, so "image/jpeg" is a valid content type. + Removes a supported type from an application, if possible. + Always returns True. Throws a if something went wrong. + This method always returns True, but throws on any error. Checking first will avoid some exceptions, but that doesn't mean it won't throw at all. @@ -215,10 +242,10 @@ Eye of Gnome: Browse and rotate images - To be added. - To be added. - To be added. - To be added. + A containing the file extension (without the dot). + Sets the application as the default handler for the given file extension. + Always returns True. Throws a if something went wrong. + This method always returns True, or throw a if something went wrong. @@ -232,10 +259,10 @@ Eye of Gnome: Browse and rotate images - To be added. - To be added. - To be added. - To be added. + A containing the content type. + Sets the application as the default handler for a given type. + Always returns True. Throws a if something went wrong. + This method always returns True, or throw a if something went wrong. @@ -246,8 +273,8 @@ Eye of Gnome: Browse and rotate images System.Boolean - To be added. - To be added. + If the application info should be shown in menus that list available applications. + True if the application should be shown, False otherwise. To be added. @@ -259,8 +286,8 @@ Eye of Gnome: Browse and rotate images System.Boolean - To be added. - To be added. + If the application accepts files as arguments. + True if the application supports files. To be added. @@ -272,11 +299,11 @@ Eye of Gnome: Browse and rotate images System.Boolean - To be added. - To be added. + If the application supports reading files and directories from URIs. + True if the application supports URIs. To be added. - + \ No newline at end of file