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 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);
Content:
Properties:
Creation methods:
Methods:
public void set_desktop (int 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 .
public void set_display (Display display)
Sets the display on which applications will be launched when using
this context.
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_screen (Screen screen)
Sets the screen on which applications will be launched when using this
context.
public void set_timestamp (uint32 timestamp)
Sets the timestamp of this .
Inherited Members:
All known members inherited from class GLib.AppLaunchContext
get_display
get_environment
get_startup_notify_id
launch_failed
launch_started
launched
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref