gdk.app_launch_context

Module for [AppLaunchContext] class

Types 3

[gdk.app_launch_context.AppLaunchContext] handles launching an application in a graphical context.

It is an implementation of [gio.app_launch_context.AppLaunchContext] that provides startup notification and allows to launch applications on a specific workspace.

Launching an application

GdkAppLaunchContext *context;

context = gdk_display_get_app_launch_context (display);

gdk_app_launch_context_set_timestamp (gdk_event_get_time (event));

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
GType _gType() @property
AppLaunchContext self()Returns `this`, for use in `with` statements.
AppLaunchContextGidBuilder builder()Get builder for [gdk.applaunchcontext.AppLaunchContext] Returns: New builder object
gdk.display.Display display() @propertyGet `display` property. Returns: The display that the [gdk.applaunchcontext.AppLaunchContext] is on.
gdk.display.Display getDisplay()Gets the [gdk.display.Display] that context is for. Returns: the display of context
void setDesktop(int desktop)Sets the workspace on which applications will be launched.
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.
void setTimestamp(uint timestamp)Sets the timestamp of context.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T display(gdk.display.Display propval)Set `display` property. Params: propval = The display that the [gdk.applaunchcontext.AppLaunchContext] is on. Returns: Builder instance for fluent chaining

Fluent builder for [gdk.app_launch_context.AppLaunchContext]