AppLaunchContext
Object Hierarchy:
Description:
[
CCode ( type_id =
"gdk_app_launch_context_get_type ()" ) ]
public class AppLaunchContext :
AppLaunchContext
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
workspace.
Launching an application
```c 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); ```
Content:
Properties:
Creation methods:
Methods:
- public unowned Display get_display ()
Gets the `GdkDisplay` that this is
for.
- public void set_desktop (int desktop)
Sets the workspace on which applications will be launched.
- public void set_icon (Icon? icon)
Sets the icon for applications that are launched with this context.
- public void set_icon_name (string? icon_name)
Sets the icon for applications that are launched with this context.
- public void set_timestamp (uint32 timestamp)
Sets the timestamp of this.
Inherited Members:
All known members inherited from class GLib.AppLaunchContext
All known members inherited from class GLib.Object