WebKit.ApplicationInfo¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class WebKit.ApplicationInfo¶
Information about an application running in automation mode.
- classmethod new()¶
- Returns:
the newly created
WebKit.ApplicationInfo
.- Return type:
Creates a new
WebKit.ApplicationInfo
New in version 2.18.
- get_name()¶
- Returns:
the application name
- Return type:
Get the name of the application.
If
WebKit.ApplicationInfo.set_name
() hasn’t been called with a valid name, this returnsGLib.get_prgname
().New in version 2.18.
- get_version()¶
- Returns:
- major:
return location for the major version number
- minor:
return location for the minor version number
- micro:
return location for the micro version number
- Return type:
Get the application version previously set with
WebKit.ApplicationInfo.set_version
().New in version 2.18.
- ref()¶
- Returns:
The passed in
WebKit.ApplicationInfo
- Return type:
Atomically increments the reference count of self by one.
This function is MT-safe and may be called from any thread.
New in version 2.18.
- set_name(name)¶
- Parameters:
name (
str
) – the application name
Set the name of the application.
If not provided, or
None
is passed,GLib.get_prgname
() will be used.New in version 2.18.
- set_version(major, minor, micro)¶
- Parameters:
Set the application version.
If the application doesn’t use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons.
New in version 2.18.
- unref()¶
Atomically decrements the reference count of self by one.
If the reference count drops to 0, all memory allocated by the
WebKit.ApplicationInfo
is released. This function is MT-safe and may be called from any thread.New in version 2.18.