Class

GdkAppLaunchContext

Description [src]

final class Gdk.AppLaunchContext : Gio.AppLaunchContext {
  /* No available fields */
}

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);

Hierarchy

hierarchy this GdkAppLaunchContext ancestor_0 GdkAppLaunchContext ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Constructors

gdk_app_launch_context_new

Creates a new GdkAppLaunchContext.

Available since: 2.14

Deprecated since: 3.0

Instance methods

gdk_app_launch_context_set_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 Hints.

Available since: 2.14

gdk_app_launch_context_set_display

Sets the display on which applications will be launched when using this context. See also gdk_app_launch_context_set_screen().

Available since: 2.14

Deprecated since: 3.0

gdk_app_launch_context_set_icon

Sets the icon for applications that are launched with this context.

Available since: 2.14

gdk_app_launch_context_set_icon_name

Sets the icon for applications that are launched with this context. The icon_name will be interpreted in the same way as the Icon field in desktop files. See also gdk_app_launch_context_set_icon().

Available since: 2.14

gdk_app_launch_context_set_screen

Sets the screen on which applications will be launched when using this context. See also gdk_app_launch_context_set_display().

Available since: 2.14

gdk_app_launch_context_set_timestamp

Sets the timestamp of context. The timestamp should ideally be taken from the event that triggered the launch.

Available since: 2.14

Methods inherited from GdkAppLaunchContext (6)
gdk_app_launch_context_set_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 Hints.

Available since: 2.14

gdk_app_launch_context_set_display

Sets the display on which applications will be launched when using this context. See also gdk_app_launch_context_set_screen().

Available since: 2.14

Deprecated since: 3.0

gdk_app_launch_context_set_icon

Sets the icon for applications that are launched with this context.

Available since: 2.14

gdk_app_launch_context_set_icon_name

Sets the icon for applications that are launched with this context. The icon_name will be interpreted in the same way as the Icon field in desktop files. See also gdk_app_launch_context_set_icon().

Available since: 2.14

gdk_app_launch_context_set_screen

Sets the screen on which applications will be launched when using this context. See also gdk_app_launch_context_set_display().

Available since: 2.14

gdk_app_launch_context_set_timestamp

Sets the timestamp of context. The timestamp should ideally be taken from the event that triggered the launch.

Available since: 2.14

Methods inherited from GObject (42)

Properties

Gdk.AppLaunchContext:display
No description available.
Properties inherited from GdkAppLaunchContext (1)
Gdk.AppLaunchContext:display
No description available.

Signals

Signals inherited from GObject (1)