Revert "Merge branch 'appinfo-properties' into 'master'"

This reverts merge request !1582
This commit is contained in:
Matthias Clasen
2020-08-02 21:02:03 +00:00
parent 5b3da6ea34
commit 96d39f86b5
2 changed files with 2 additions and 268 deletions

View File

@@ -25,7 +25,6 @@
#include "gcontextspecificgroup.h"
#include "gtask.h"
#include "gcancellable.h"
#include "gicon.h"
#include "glibintl.h"
#include "gmarshal-internal.h"
@@ -109,199 +108,9 @@ G_DEFINE_INTERFACE (GAppInfo, g_app_info, G_TYPE_OBJECT)
static void
g_app_info_default_init (GAppInfoInterface *iface)
{
/**
* GAppInfo:id: (nullable)
*
* The ID of an application -- a string that identifies the application.
*
* The exact format of the ID is platform dependent. For instance,
* on Unix this is the desktop file ID from the xdg menu specification.
*
* May be %NULL, depending on how the GAppInfo has been constructed.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_string ("id", "ID", "ID",
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:name:
*
* The name of the application.
*
* In #GAppInfos created from [desktop files](https://specifications.freedesktop.org/desktop-entry-spec/latest/),
* this is the value of the `Name` key.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_string ("name", "Name", "Name",
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:display-name: (nullable)
*
* The display name of the application.
*
* This string is meant to be displayed to the user; it is often more
* descriptive than #GAppInfo:name.
*
* In #GAppInfos created from [desktop files](https://specifications.freedesktop.org/desktop-entry-spec/latest/),
* this is the value of the `X-GNOME-FullName` key, falling back to the `Name` key.
*
* May be %NULL, depending on how the #GAppInfo has been constructed.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_string ("display-name", "Display Name", "Display Name",
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:description: (nullable)
*
* A human-readable description of the application.
*
* In #GAppInfos created from [desktop files](https://specifications.freedesktop.org/desktop-entry-spec/latest/),
* this is the value of the `Comment` key.
*
* May be %NULL, depending on how the #GAppInfo has been constructed.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_string ("description", "Description", "Description",
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:executable: (nullable)
*
* The executable's name for the application.
*
* In #GAppInfos created from [desktop files](https://specifications.freedesktop.org/desktop-entry-spec/latest/),
* this is the first word of the `Exec` key.
*
* May be %NULL, depending on how the #GAppInfo has been constructed.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_string ("executable", "Executable", "Executable",
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:commandline: (nullable)
*
* The commandline with which the application will be launched.
*
* In #GAppInfos created from [desktop files](https://specifications.freedesktop.org/desktop-entry-spec/latest/),
* this is the value of the `Exec` key.
*
* May be %NULL, depending on how the #GAppInfo has been constructed.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_string ("commandline", "Commandline", "Commandline",
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:icon: (nullable)
*
* The icon for the application.
*
* May be %NULL, depending on how the #GAppInfo has been constructed.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_object ("icon", "Icon", "Icon",
G_TYPE_ICON,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:supports-uris:
*
* %TRUE if the application supports reading files and directories
* from URIs when launched. See g_app_info_launch_uris().
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("supports-uris", "Supports URIs", "Supports URIs",
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:supports-files:
*
* %TRUE if the application supports files as arguments when launched.
* See g_app_info_launch_uris().
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("supports-files", "Supports files", "Supports files",
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:should-show:
*
* %TRUE if the application should be shown in menus that list
* available applications.
*
* In #GAppInfos created from [desktop files](https://specifications.freedesktop.org/desktop-entry-spec/latest/),
* this is the (inverted) value of the `NoDisplay` key.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("should-show", "Should show", "Should show",
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:supported-types:
*
* The list of content types that the application claims to support.
* Note that this property does not take into account associations
* added with g_app_info_add_supports_type(), but only those exported
* directly by the application.
*
* In #GAppInfos created from [desktop files](https://specifications.freedesktop.org/desktop-entry-spec/latest/),
* this is the value of the `MimeType` key.
*
* May be %NULL, depending on how the #GAppInfo has been constructed.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_boxed ("supported-types", "Supported types", "Supported types",
G_TYPE_STRV,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GAppInfo:can-delete:
*
* %TRUE if it makes sense to call g_app_info_delete() for this
* #GAppInfo.
*
* Since: 2.66
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("can-delete", "Can delete", "Can delete",
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}
/**
* g_app_info_dup:
* @appinfo: a #GAppInfo.