WebKit2.ApplicationInfo

Fields

None

Methods

class

new ()

get_name ()

get_version ()

ref ()

set_name (name)

set_version (major, minor, micro)

unref ()

Details

class WebKit2.ApplicationInfo

Information about an application running in automation mode.

classmethod new()
Returns:

the newly created WebKit2.ApplicationInfo.

Return type:

WebKit2.ApplicationInfo

Creates a new WebKit2.ApplicationInfo

New in version 2.18.

get_name()
Returns:

the application name

Return type:

str

Get the name of the application.

If WebKit2.ApplicationInfo.set_name() hasn’t been called with a valid name, this returns GLib.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:

(major: int, minor: int, micro: int)

Get the application version previously set with WebKit2.ApplicationInfo.set_version().

New in version 2.18.

ref()
Returns:

The passed in WebKit2.ApplicationInfo

Return type:

WebKit2.ApplicationInfo

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:
  • major (int) – the major version number

  • minor (int) – the minor version number

  • micro (int) – the micro version number

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 WebKit2.ApplicationInfo is released. This function is MT-safe and may be called from any thread.

New in version 2.18.