AppLaunchContext


Object Hierarchy:

Gdk.AppLaunchContext Gdk.AppLaunchContext Gdk.AppLaunchContext GLib.AppLaunchContext GLib.AppLaunchContext GLib.AppLaunchContext->Gdk.AppLaunchContext GLib.Object GLib.Object GLib.Object->GLib.AppLaunchContext

Description:

[ CCode ( type_id = "gdk_app_launch_context_get_type ()" ) ]
public sealed class AppLaunchContext : AppLaunchContext

GdkAppLaunchContext is an implementation of AppLaunchContext 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);


Namespace: Gdk
Package: gdk-3.0

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.AppLaunchContext