AppLaunchContext

GdkAppLaunchContext handles launching an application in a graphical context.

It is an implementation of GAppLaunchContext that 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_display (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);

Constructors

this
this(GdkAppLaunchContext* gdkAppLaunchContext, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getDisplay
Display getDisplay()

Gets the GdkDisplay that @context is for.

getGdkAppLaunchContextStruct
GdkAppLaunchContext* getGdkAppLaunchContextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setDesktop
void setDesktop(int desktop)

Sets the workspace on which applications will be launched.

setIcon
void setIcon(IconIF icon)

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

setIconName
void setIconName(string iconName)

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

setTimestamp
void setTimestamp(uint timestamp)

Sets the timestamp of @context.

Static functions

getType
GType getType()

Variables

gdkAppLaunchContext
GdkAppLaunchContext* gdkAppLaunchContext;

the main Gtk struct

Meta