gdk.app_launch_context
Module for [AppLaunchContext] class
Types 3
GdkAppLaunchContext is an implementation of #GAppLaunchContext that handles launching an application in a graphical context. It provides startup notification and allows to launch applications on a specific screen or workspace.
Launching an application
GdkAppLaunchContext *context;
context = gdk_display_get_app_launch_context (display);
gdk_app_launch_context_set_screen (screen);
gdk_app_launch_context_set_timestamp (event->time);
if (!g_app_info_launch_default_for_uri ("http://www.gtk.org", context, &error))
g_warning ("Launching failed: %s\n", error->message);
g_object_unref (context);Methods
AppLaunchContext self()Returns `this`, for use in `with` statements.AppLaunchContextGidBuilder builder()Get builder for [gdk.applaunchcontext.AppLaunchContext] Returns: New builder objectgdk.display.Display display() @propertyvoid setDesktop(int desktop)Sets the workspace on which applications will be launched when using this context when running under a window manager that supports multiple workspaces, as described in the [Extended Window Manager...void setDisplay(gdk.display.Display display)Sets the display on which applications will be launched when using this context. See also [gdk.applaunchcontext.AppLaunchContext.setScreen].void setIcon(gio.icon.Icon icon = null)Sets the icon for applications that are launched with this context.void setIconName(string iconName = null)Sets the icon for applications that are launched with this context. The iconname will be interpreted in the same way as the Icon field in desktop files. See also [gdk.applaunch_context.AppLaunchCon...void setScreen(gdk.screen.Screen screen)Sets the screen on which applications will be launched when using this context. See also [gdk.applaunchcontext.AppLaunchContext.setDisplay].void setTimestamp(uint timestamp)Sets the timestamp of context. The timestamp should ideally be taken from the event that triggered the launch.Methods
T display(gdk.display.Display propval)Fluent builder for [gdk.app_launch_context.AppLaunchContext]
Methods