Gio.ApplicationClass

Fields

Name

Type

Access

Description

activate

object

r

invoked on the primary instance when an activation occurs

add_platform_data

object

r

invoked (locally) to add ‘platform data’ to be sent to the primary instance when activating, opening or invoking actions

after_emit

object

r

invoked on the primary instance after ‘activate’, ‘open’, ‘command-line’ or any action invocation, gets the ‘platform data’ from the calling instance

before_emit

object

r

invoked on the primary instance before ‘activate’, ‘open’, ‘command-line’ or any action invocation, gets the ‘platform data’ from the calling instance

command_line

object

r

invoked on the primary instance when a command-line is not handled locally

dbus_register

object

r

invoked locally during registration, if the application is using its D-Bus backend. You can use this to export extra objects on the bus, that need to exist before the application tries to own the bus name. The function is passed the Gio.DBusConnection to to session bus, and the object path that Gio.Application will use to export its D-Bus API. If this function returns True, registration will proceed; otherwise registration will abort.

dbus_unregister

object

r

invoked locally during unregistration, if the application is using its D-Bus backend. Use this to undo anything done by the dbus_register vfunc.

handle_local_options

object

r

invoked locally after the parsing of the commandline options has occurred.

local_command_line

object

r

invoked (locally). The virtual function has the chance to inspect (and possibly replace) command line arguments. See Gio.Application.run() for more information. Also see the Gio.Application ::handle-local-options signal, which is a simpler alternative to handling some commandline options locally

name_lost

object

r

invoked when another instance is taking over the name.

open

object

r

invoked on the primary instance when there are files to open

padding

[object]

r

parent_class

GObject.ObjectClass

r

quit_mainloop

object

r

Used to be invoked on the primary instance when the use count of the application drops to zero (and after any inactivity timeout, if requested). Not used anymore since 2.32

run_mainloop

object

r

Used to be invoked on the primary instance from Gio.Application.run() if the use-count is non-zero. Gio.Application is iterating the main context directly and is not using run_mainloop anymore

shutdown

object

r

invoked only on the registered primary instance immediately after the main loop terminates

startup

object

r

invoked on the primary instance immediately after registration

Methods

None

Details

class Gio.ApplicationClass

Virtual function table for Gio.Application.

New in version 2.28.