Package ch.bailu.gtk.gio
Klasse AppLaunchContext
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.AppLaunchContext
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
AppLaunchContext
Integrating the launch with the launching application. This is used to
handle for instance startup notification and launching the new application
on the same screen as the launching window.
handle for instance startup notification and launching the new application
on the same screen as the launching window.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
FelderVon Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new application launch context.AppLaunchContext
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
getDisplay
(AppInfo info, List files) Gets the display string for the @context.Gets the complete environment variable list to be passed to
the child process when @context is used to launch an application.static int
static long
static TypeSystem.TypeSize
getStartupNotifyId
(AppInfo info, List files) Initiates startup notification for the application and returns the
`XDG_ACTIVATION_TOKEN` or `DESKTOP_STARTUP_ID` for the launched operation,
if supported.static long
static TypeSystem.TypeSize
void
launchFailed
(Str startup_notify_id) Called when an application has failed to launch, so that it can cancel
the application startup notification started in
[method@Gio.AppLaunchContext.get_startup_notify_id].void
launchFailed
(String startup_notify_id) Called when an application has failed to launch, so that it can cancel
the application startup notification started in
[method@Gio.AppLaunchContext.get_startup_notify_id].Connect to signal "launched".Connect to signal "launch-failed".Connect to signal "launch-started".void
Arranges for @variable to be set to @value in the child’s environment when
@context is used to launch an application.void
Arranges for @variable to be set to @value in the child’s environment when
@context is used to launch an application.void
Arranges for @variable to be unset in the child’s environment when @context
is used to launch an application.void
Arranges for @variable to be unset in the child’s environment when @context
is used to launch an application.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_LAUNCH_FAILED
- Siehe auch:
-
SIGNAL_ON_LAUNCH_STARTED
- Siehe auch:
-
SIGNAL_ON_LAUNCHED
- Siehe auch:
-
-
Konstruktordetails
-
AppLaunchContext
-
AppLaunchContext
public AppLaunchContext()Creates a new application launch context. This is not normally used,
instead you instantiate a subclass of this, such as
[`GdkAppLaunchContext`](https://docs.gtk.org/gdk4/class.AppLaunchContext.html).
-
-
Methodendetails
-
getClassHandler
-
getDisplay
Gets the display string for the @context. This is used to ensure new
applications are started on the same display as the launching
application, by setting the `DISPLAY` environment variable.- Parameter:
info
- the app infofiles
- a list of [iface@Gio.File] objects- Gibt zurück:
- a display string for the display.
-
getEnvironment
Gets the complete environment variable list to be passed to
the child process when @context is used to launch an application.
This is a `NULL`-terminated array of strings, where each string has
the form `KEY=VALUE`.- Gibt zurück:
- the child’s environment
-
getStartupNotifyId
Initiates startup notification for the application and returns the
`XDG_ACTIVATION_TOKEN` or `DESKTOP_STARTUP_ID` for the launched operation,
if supported.
The returned token may be referred to equivalently as an ‘activation token’
(using Wayland terminology) or a ‘startup sequence ID’ (using X11 terminology).
The two [are interoperable](https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/xdg-activation/x11-interoperation.rst).
Activation tokens are defined in the [XDG Activation Protocol](https://wayland.app/protocols/xdg-activation-v1),
and startup notification IDs are defined in the
[freedesktop.org Startup Notification Protocol](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
Support for the XDG Activation Protocol was added in GLib 2.76.
Since GLib 2.82 @info and @files can be `NULL`. If that’s not supported by the backend,
the returned token will be `NULL`.- Parameter:
info
- the app infofiles
- a list of [iface@Gio.File] objects- Gibt zurück:
- a startup notification ID for the application, or `NULL` if not supported.
-
launchFailed
Called when an application has failed to launch, so that it can cancel
the application startup notification started in
[method@Gio.AppLaunchContext.get_startup_notify_id].- Parameter:
startup_notify_id
- the startup notification id that was returned by [method@Gio.AppLaunchContext.get_startup_notify_id].
-
launchFailed
Called when an application has failed to launch, so that it can cancel
the application startup notification started in
[method@Gio.AppLaunchContext.get_startup_notify_id].- Parameter:
startup_notify_id
- the startup notification id that was returned by [method@Gio.AppLaunchContext.get_startup_notify_id].
-
setenv
Arranges for @variable to be set to @value in the child’s environment when
@context is used to launch an application.- Parameter:
variable
- the environment variable to setvalue
- the value for to set the variable to.
-
setenv
Arranges for @variable to be set to @value in the child’s environment when
@context is used to launch an application.- Parameter:
variable
- the environment variable to setvalue
- the value for to set the variable to.
-
unsetenv
Arranges for @variable to be unset in the child’s environment when @context
is used to launch an application.- Parameter:
variable
- the environment variable to remove
-
unsetenv
Arranges for @variable to be unset in the child’s environment when @context
is used to launch an application.- Parameter:
variable
- the environment variable to remove
-
onLaunchFailed
Connect to signal "launch-failed".
SeeAppLaunchContext.OnLaunchFailed.onLaunchFailed(ch.bailu.gtk.type.Str)
for signal description.
FieldSIGNAL_ON_LAUNCH_FAILED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onLaunchStarted
Connect to signal "launch-started".
SeeAppLaunchContext.OnLaunchStarted.onLaunchStarted(ch.bailu.gtk.gio.AppInfo, ch.bailu.gtk.glib.Variant)
for signal description.
FieldSIGNAL_ON_LAUNCH_STARTED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onLaunched
Connect to signal "launched".
SeeAppLaunchContext.OnLaunched.onLaunched(ch.bailu.gtk.gio.AppInfo, ch.bailu.gtk.glib.Variant)
for signal description.
FieldSIGNAL_ON_LAUNCHED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-