| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gio.Objects.AppLaunchContext
Contents
Description
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.
- newtype AppLaunchContext = AppLaunchContext (ManagedPtr AppLaunchContext)
- class GObject o => IsAppLaunchContext o
- toAppLaunchContext :: IsAppLaunchContext o => o -> IO AppLaunchContext
- noAppLaunchContext :: Maybe AppLaunchContext
- data AppLaunchContextGetDisplayMethodInfo
- appLaunchContextGetDisplay :: (HasCallStack, MonadIO m, IsAppLaunchContext a, IsAppInfo b, IsFile c) => a -> b -> [c] -> m Text
- data AppLaunchContextGetEnvironmentMethodInfo
- appLaunchContextGetEnvironment :: (HasCallStack, MonadIO m, IsAppLaunchContext a) => a -> m [Text]
- data AppLaunchContextGetStartupNotifyIdMethodInfo
- appLaunchContextGetStartupNotifyId :: (HasCallStack, MonadIO m, IsAppLaunchContext a, IsAppInfo b, IsFile c) => a -> b -> [c] -> m Text
- data AppLaunchContextLaunchFailedMethodInfo
- appLaunchContextLaunchFailed :: (HasCallStack, MonadIO m, IsAppLaunchContext a) => a -> Text -> m ()
- appLaunchContextNew :: (HasCallStack, MonadIO m) => m AppLaunchContext
- data AppLaunchContextSetenvMethodInfo
- appLaunchContextSetenv :: (HasCallStack, MonadIO m, IsAppLaunchContext a) => a -> Text -> Text -> m ()
- data AppLaunchContextUnsetenvMethodInfo
- appLaunchContextUnsetenv :: (HasCallStack, MonadIO m, IsAppLaunchContext a) => a -> Text -> m ()
- type AppLaunchContextLaunchFailedCallback = Text -> IO ()
- data AppLaunchContextLaunchFailedSignalInfo
- type C_AppLaunchContextLaunchFailedCallback = Ptr () -> CString -> Ptr () -> IO ()
- afterAppLaunchContextLaunchFailed :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchFailedCallback -> m SignalHandlerId
- genClosure_AppLaunchContextLaunchFailed :: AppLaunchContextLaunchFailedCallback -> IO Closure
- mk_AppLaunchContextLaunchFailedCallback :: C_AppLaunchContextLaunchFailedCallback -> IO (FunPtr C_AppLaunchContextLaunchFailedCallback)
- noAppLaunchContextLaunchFailedCallback :: Maybe AppLaunchContextLaunchFailedCallback
- onAppLaunchContextLaunchFailed :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchFailedCallback -> m SignalHandlerId
- wrap_AppLaunchContextLaunchFailedCallback :: AppLaunchContextLaunchFailedCallback -> Ptr () -> CString -> Ptr () -> IO ()
- type AppLaunchContextLaunchedCallback = AppInfo -> GVariant -> IO ()
- data AppLaunchContextLaunchedSignalInfo
- type C_AppLaunchContextLaunchedCallback = Ptr () -> Ptr AppInfo -> Ptr GVariant -> Ptr () -> IO ()
- afterAppLaunchContextLaunched :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchedCallback -> m SignalHandlerId
- genClosure_AppLaunchContextLaunched :: AppLaunchContextLaunchedCallback -> IO Closure
- mk_AppLaunchContextLaunchedCallback :: C_AppLaunchContextLaunchedCallback -> IO (FunPtr C_AppLaunchContextLaunchedCallback)
- noAppLaunchContextLaunchedCallback :: Maybe AppLaunchContextLaunchedCallback
- onAppLaunchContextLaunched :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchedCallback -> m SignalHandlerId
- wrap_AppLaunchContextLaunchedCallback :: AppLaunchContextLaunchedCallback -> Ptr () -> Ptr AppInfo -> Ptr GVariant -> Ptr () -> IO ()
Exported types
newtype AppLaunchContext Source #
Constructors
| AppLaunchContext (ManagedPtr AppLaunchContext) |
Instances
| GObject AppLaunchContext Source # | |
| IsObject AppLaunchContext Source # | |
| IsAppLaunchContext AppLaunchContext Source # | |
| ((~) * info (ResolveAppLaunchContextMethod t AppLaunchContext), MethodInfo * info AppLaunchContext p) => IsLabel t (AppLaunchContext -> p) Source # | |
| ((~) * info (ResolveAppLaunchContextMethod t AppLaunchContext), MethodInfo * info AppLaunchContext p) => IsLabelProxy t (AppLaunchContext -> p) Source # | |
| HasAttributeList * AppLaunchContext Source # | |
| type AttributeList AppLaunchContext Source # | |
| type SignalList AppLaunchContext Source # | |
class GObject o => IsAppLaunchContext o Source #
Instances
toAppLaunchContext :: IsAppLaunchContext o => o -> IO AppLaunchContext Source #
Methods
getDisplay
data AppLaunchContextGetDisplayMethodInfo Source #
Instances
| ((~) * signature (b -> [c] -> m Text), MonadIO m, IsAppLaunchContext a, IsAppInfo b, IsFile c) => MethodInfo * AppLaunchContextGetDisplayMethodInfo a signature Source # | |
appLaunchContextGetDisplay Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAppLaunchContext a, IsAppInfo b, IsFile c) | |
| => a |
|
| -> b |
|
| -> [c] | |
| -> m Text | Returns: a display string for the display. |
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.
getEnvironment
data AppLaunchContextGetEnvironmentMethodInfo Source #
Instances
| ((~) * signature (m [Text]), MonadIO m, IsAppLaunchContext a) => MethodInfo * AppLaunchContextGetEnvironmentMethodInfo a signature Source # | |
appLaunchContextGetEnvironment Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAppLaunchContext a) | |
| => a |
|
| -> m [Text] | Returns: the child's environment |
Gets the complete environment variable list to be passed to
the child process when context is used to launch an application.
This is a Nothing-terminated array of strings, where each string has
the form KEY=VALUE.
Since: 2.32
getStartupNotifyId
data AppLaunchContextGetStartupNotifyIdMethodInfo Source #
Instances
| ((~) * signature (b -> [c] -> m Text), MonadIO m, IsAppLaunchContext a, IsAppInfo b, IsFile c) => MethodInfo * AppLaunchContextGetStartupNotifyIdMethodInfo a signature Source # | |
appLaunchContextGetStartupNotifyId Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAppLaunchContext a, IsAppInfo b, IsFile c) | |
| => a |
|
| -> b |
|
| -> [c] | |
| -> m Text | Returns: a startup notification ID for the application, or |
Initiates startup notification for the application and returns the
DESKTOP_STARTUP_ID for the launched operation, if supported.
Startup notification IDs are defined in the FreeDesktop.Org Startup Notifications standard.
launchFailed
data AppLaunchContextLaunchFailedMethodInfo Source #
Instances
| ((~) * signature (Text -> m ()), MonadIO m, IsAppLaunchContext a) => MethodInfo * AppLaunchContextLaunchFailedMethodInfo a signature Source # | |
appLaunchContextLaunchFailed Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAppLaunchContext a) | |
| => a |
|
| -> Text |
|
| -> m () |
Called when an application has failed to launch, so that it can cancel
the application startup notification started in appLaunchContextGetStartupNotifyId.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m AppLaunchContext | Returns: a |
Creates a new application launch context. This is not normally used,
instead you instantiate a subclass of this, such as GdkAppLaunchContext.
setenv
data AppLaunchContextSetenvMethodInfo Source #
Instances
| ((~) * signature (Text -> Text -> m ()), MonadIO m, IsAppLaunchContext a) => MethodInfo * AppLaunchContextSetenvMethodInfo a signature Source # | |
appLaunchContextSetenv Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAppLaunchContext a) | |
| => a |
|
| -> Text |
|
| -> Text |
|
| -> m () |
Arranges for variable to be set to value in the child's
environment when context is used to launch an application.
Since: 2.32
unsetenv
data AppLaunchContextUnsetenvMethodInfo Source #
Instances
| ((~) * signature (Text -> m ()), MonadIO m, IsAppLaunchContext a) => MethodInfo * AppLaunchContextUnsetenvMethodInfo a signature Source # | |
appLaunchContextUnsetenv Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAppLaunchContext a) | |
| => a |
|
| -> Text |
|
| -> m () |
Arranges for variable to be unset in the child's environment
when context is used to launch an application.
Since: 2.32
Signals
launchFailed
type AppLaunchContextLaunchFailedCallback = Text -> IO () Source #
afterAppLaunchContextLaunchFailed :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchFailedCallback -> m SignalHandlerId Source #
genClosure_AppLaunchContextLaunchFailed :: AppLaunchContextLaunchFailedCallback -> IO Closure Source #
mk_AppLaunchContextLaunchFailedCallback :: C_AppLaunchContextLaunchFailedCallback -> IO (FunPtr C_AppLaunchContextLaunchFailedCallback) Source #
onAppLaunchContextLaunchFailed :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchFailedCallback -> m SignalHandlerId Source #
wrap_AppLaunchContextLaunchFailedCallback :: AppLaunchContextLaunchFailedCallback -> Ptr () -> CString -> Ptr () -> IO () Source #
launched
type C_AppLaunchContextLaunchedCallback = Ptr () -> Ptr AppInfo -> Ptr GVariant -> Ptr () -> IO () Source #
afterAppLaunchContextLaunched :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchedCallback -> m SignalHandlerId Source #
mk_AppLaunchContextLaunchedCallback :: C_AppLaunchContextLaunchedCallback -> IO (FunPtr C_AppLaunchContextLaunchedCallback) Source #
onAppLaunchContextLaunched :: (GObject a, MonadIO m) => a -> AppLaunchContextLaunchedCallback -> m SignalHandlerId Source #