39
39
</tr></table></div>
40
40
<div class="refsynopsisdiv">
41
41
<a name="shell-ShellGlobal.synopsis"></a><h2>Synopsis</h2>
42
<a name="ShellStageInputMode"></a><a name="ShellCursor"></a><a name="ShellSessionType"></a><pre class="synopsis">struct <a class="link" href="shell-ShellGlobal.html#ShellGlobalClass" title="struct ShellGlobalClass">ShellGlobalClass</a>;
42
<a name="ShellCursor"></a><a name="ShellStageInputMode"></a><pre class="synopsis">enum <a class="link" href="shell-ShellGlobal.html#ShellCursor-enum" title="enum ShellCursor">ShellCursor</a>;
43
struct <a class="link" href="shell-ShellGlobal.html#ShellGlobalClass" title="struct ShellGlobalClass">ShellGlobalClass</a>;
44
<span class="returnvalue">void</span> (<a class="link" href="shell-ShellGlobal.html#ShellLeisureFunction" title="ShellLeisureFunction ()">*ShellLeisureFunction</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
45
<a class="link" href="shell-ShellGlobal.html#ShellMemoryInfo" title="ShellMemoryInfo">ShellMemoryInfo</a>;
46
enum <a class="link" href="shell-ShellGlobal.html#ShellStageInputMode-enum" title="enum ShellStageInputMode">ShellStageInputMode</a>;
47
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="shell-ShellGlobal.html#shell-global-begin-modal" title="shell_global_begin_modal ()">shell_global_begin_modal</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
48
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>,
49
<em class="parameter"><code><a href="http://developer.gnome.org/meta/MetaPlugin.html#MetaModalOptions"><span class="type">MetaModalOptions</span></a> options</code></em>);
50
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-begin-work" title="shell_global_begin_work ()">shell_global_begin_work</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
51
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-cancel-theme-sound" title="shell_global_cancel_theme_sound ()">shell_global_cancel_theme_sound</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
52
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>);
53
<a href="http://library.gnome.org/devel/gio/unstable/GAppInfo.html#GAppLaunchContext"><span class="returnvalue">GAppLaunchContext</span></a> * <a class="link" href="shell-ShellGlobal.html#shell-global-create-app-launch-context" title="shell_global_create_app_launch_context ()">shell_global_create_app_launch_context</a>
54
(<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
55
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-end-modal" title="shell_global_end_modal ()">shell_global_end_modal</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);
57
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-end-work" title="shell_global_end_work ()">shell_global_end_work</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
43
58
<span class="returnvalue">ShellGlobal</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get" title="shell_global_get ()">shell_global_get</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
44
<span class="returnvalue">ClutterStage</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-stage" title="shell_global_get_stage ()">shell_global_get_stage</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
45
<span class="returnvalue">MetaScreen</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-screen" title="shell_global_get_screen ()">shell_global_get_screen</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
46
<span class="returnvalue">GdkScreen</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-gdk-screen" title="shell_global_get_gdk_screen ()">shell_global_get_gdk_screen</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
47
<span class="returnvalue">MetaDisplay</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-display" title="shell_global_get_display ()">shell_global_get_display</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
48
<span class="returnvalue">GList</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-window-actors" title="shell_global_get_window_actors ()">shell_global_get_window_actors</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
49
<span class="returnvalue">GSettings</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-settings" title="shell_global_get_settings ()">shell_global_get_settings</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
50
<span class="returnvalue">guint32</span> <a class="link" href="shell-ShellGlobal.html#shell-global-get-current-time" title="shell_global_get_current_time ()">shell_global_get_current_time</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
51
<span class="returnvalue">gboolean</span> <a class="link" href="shell-ShellGlobal.html#shell-global-begin-modal" title="shell_global_begin_modal ()">shell_global_begin_modal</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
52
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>,
53
<em class="parameter"><code><span class="type">MetaModalOptions</span> options</code></em>);
54
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-end-modal" title="shell_global_end_modal ()">shell_global_end_modal</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
55
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);
56
enum <a class="link" href="shell-ShellGlobal.html#ShellStageInputMode-enum" title="enum ShellStageInputMode">ShellStageInputMode</a>;
57
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-set-stage-input-mode" title="shell_global_set_stage_input_mode ()">shell_global_set_stage_input_mode</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
58
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellStageInputMode"><span class="type">ShellStageInputMode</span></a> mode</code></em>);
59
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-set-stage-input-region" title="shell_global_set_stage_input_region ()">shell_global_set_stage_input_region</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
60
<em class="parameter"><code><span class="type">GSList</span> *rectangles</code></em>);
61
enum <a class="link" href="shell-ShellGlobal.html#ShellCursor-enum" title="enum ShellCursor">ShellCursor</a>;
62
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-set-cursor" title="shell_global_set_cursor ()">shell_global_set_cursor</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
63
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellCursor"><span class="type">ShellCursor</span></a> type</code></em>);
64
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-unset-cursor" title="shell_global_unset_cursor ()">shell_global_unset_cursor</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
65
<span class="returnvalue">guint32</span> <a class="link" href="shell-ShellGlobal.html#shell-global-create-pointer-barrier" title="shell_global_create_pointer_barrier ()">shell_global_create_pointer_barrier</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
66
<em class="parameter"><code><span class="type">int</span> x1</code></em>,
67
<em class="parameter"><code><span class="type">int</span> y1</code></em>,
68
<em class="parameter"><code><span class="type">int</span> x2</code></em>,
69
<em class="parameter"><code><span class="type">int</span> y2</code></em>,
70
<em class="parameter"><code><span class="type">int</span> directions</code></em>);
71
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-destroy-pointer-barrier" title="shell_global_destroy_pointer_barrier ()">shell_global_destroy_pointer_barrier</a>
72
(<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
73
<em class="parameter"><code><span class="type">guint32</span> barrier</code></em>);
74
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-get-pointer" title="shell_global_get_pointer ()">shell_global_get_pointer</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
75
<em class="parameter"><code><span class="type">int</span> *x</code></em>,
76
<em class="parameter"><code><span class="type">int</span> *y</code></em>,
77
<em class="parameter"><code><span class="type">ClutterModifierType</span> *mods</code></em>);
78
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-gc" title="shell_global_gc ()">shell_global_gc</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
79
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-maybe-gc" title="shell_global_maybe_gc ()">shell_global_maybe_gc</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
80
<a class="link" href="shell-ShellGlobal.html#ShellMemoryInfo" title="ShellMemoryInfo">ShellMemoryInfo</a>;
59
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <a class="link" href="shell-ShellGlobal.html#shell-global-get-current-time" title="shell_global_get_current_time ()">shell_global_get_current_time</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
60
<a href="http://developer.gnome.org/meta/MetaDisplay.html"><span class="returnvalue">MetaDisplay</span></a> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-display" title="shell_global_get_display ()">shell_global_get_display</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
61
<a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-gdk-screen" title="shell_global_get_gdk_screen ()">shell_global_get_gdk_screen</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
81
62
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-get-memory-info" title="shell_global_get_memory_info ()">shell_global_get_memory_info</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
82
63
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellMemoryInfo" title="ShellMemoryInfo"><span class="type">ShellMemoryInfo</span></a> *meminfo</code></em>);
83
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-begin-work" title="shell_global_begin_work ()">shell_global_begin_work</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
84
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-end-work" title="shell_global_end_work ()">shell_global_end_work</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
85
<span class="returnvalue">void</span> (<a class="link" href="shell-ShellGlobal.html#ShellLeisureFunction" title="ShellLeisureFunction ()">*ShellLeisureFunction</a>) (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
86
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-run-at-leisure" title="shell_global_run_at_leisure ()">shell_global_run_at_leisure</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
87
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellLeisureFunction" title="ShellLeisureFunction ()"><span class="type">ShellLeisureFunction</span></a> func</code></em>,
88
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
89
<em class="parameter"><code><span class="type">GDestroyNotify</span> notify</code></em>);
90
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-sync-pointer" title="shell_global_sync_pointer ()">shell_global_sync_pointer</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
91
<span class="returnvalue">GAppLaunchContext</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-create-app-launch-context" title="shell_global_create_app_launch_context ()">shell_global_create_app_launch_context</a>
92
(<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
93
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-play-theme-sound" title="shell_global_play_theme_sound ()">shell_global_play_theme_sound</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
94
<em class="parameter"><code><span class="type">guint</span> id</code></em>,
95
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);
96
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-cancel-theme-sound" title="shell_global_cancel_theme_sound ()">shell_global_cancel_theme_sound</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
97
<em class="parameter"><code><span class="type">guint</span> id</code></em>);
64
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-get-pointer" title="shell_global_get_pointer ()">shell_global_get_pointer</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
65
<em class="parameter"><code><span class="type">int</span> *x</code></em>,
66
<em class="parameter"><code><span class="type">int</span> *y</code></em>,
67
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterModifierType"><span class="type">ClutterModifierType</span></a> *mods</code></em>);
68
<a href="http://developer.gnome.org/meta/MetaScreen.html"><span class="returnvalue">MetaScreen</span></a> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-screen" title="shell_global_get_screen ()">shell_global_get_screen</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
69
const <span class="returnvalue">char</span> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-session-mode" title="shell_global_get_session_mode ()">shell_global_get_session_mode</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
70
<a href="http://library.gnome.org/devel/gio/unstable/GSettings.html"><span class="returnvalue">GSettings</span></a> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-settings" title="shell_global_get_settings ()">shell_global_get_settings</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
71
<a href="/usr/share/gtk-doc/html/clutter/ClutterStage.html"><span class="returnvalue">ClutterStage</span></a> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-stage" title="shell_global_get_stage ()">shell_global_get_stage</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
72
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="shell-ShellGlobal.html#shell-global-get-window-actors" title="shell_global_get_window_actors ()">shell_global_get_window_actors</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
73
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-init-xdnd" title="shell_global_init_xdnd ()">shell_global_init_xdnd</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
98
74
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-notify-error" title="shell_global_notify_error ()">shell_global_notify_error</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
99
75
<em class="parameter"><code>const <span class="type">char</span> *msg</code></em>,
100
76
<em class="parameter"><code>const <span class="type">char</span> *details</code></em>);
101
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-init-xdnd" title="shell_global_init_xdnd ()">shell_global_init_xdnd</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
77
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-play-sound-file" title="shell_global_play_sound_file ()">shell_global_play_sound_file</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
78
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
79
<em class="parameter"><code>const <span class="type">char</span> *file_name</code></em>,
80
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
81
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>);
82
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-play-sound-file-full" title="shell_global_play_sound_file_full ()">shell_global_play_sound_file_full</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
83
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
84
<em class="parameter"><code>const <span class="type">char</span> *file_name</code></em>,
85
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
86
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>,
87
<em class="parameter"><code>const <span class="type">char</span> *application_id</code></em>,
88
<em class="parameter"><code>const <span class="type">char</span> *application_name</code></em>);
89
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-play-theme-sound" title="shell_global_play_theme_sound ()">shell_global_play_theme_sound</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
90
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
91
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
92
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
93
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>);
94
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-play-theme-sound-full" title="shell_global_play_theme_sound_full ()">shell_global_play_theme_sound_full</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
95
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
96
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
97
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
98
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>,
99
<em class="parameter"><code>const <span class="type">char</span> *application_id</code></em>,
100
<em class="parameter"><code>const <span class="type">char</span> *application_name</code></em>);
102
101
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-reexec-self" title="shell_global_reexec_self ()">shell_global_reexec_self</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
103
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-launch-calendar-server" title="shell_global_launch_calendar_server ()">shell_global_launch_calendar_server</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
104
enum <a class="link" href="shell-ShellGlobal.html#ShellSessionType-enum" title="enum ShellSessionType">ShellSessionType</a>;
105
<a class="link" href="shell-ShellGlobal.html#ShellSessionType"><span class="returnvalue">ShellSessionType</span></a> <a class="link" href="shell-ShellGlobal.html#shell-global-get-session-type" title="shell_global_get_session_type ()">shell_global_get_session_type</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
102
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-run-at-leisure" title="shell_global_run_at_leisure ()">shell_global_run_at_leisure</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
103
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellLeisureFunction" title="ShellLeisureFunction ()"><span class="type">ShellLeisureFunction</span></a> func</code></em>,
104
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
105
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);
106
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-set-cursor" title="shell_global_set_cursor ()">shell_global_set_cursor</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
107
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellCursor"><span class="type">ShellCursor</span></a> type</code></em>);
108
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-set-stage-input-mode" title="shell_global_set_stage_input_mode ()">shell_global_set_stage_input_mode</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
109
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellStageInputMode"><span class="type">ShellStageInputMode</span></a> mode</code></em>);
110
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-set-stage-input-region" title="shell_global_set_stage_input_region ()">shell_global_set_stage_input_region</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
111
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *rectangles</code></em>);
112
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-sync-pointer" title="shell_global_sync_pointer ()">shell_global_sync_pointer</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
113
<span class="returnvalue">void</span> <a class="link" href="shell-ShellGlobal.html#shell-global-unset-cursor" title="shell_global_unset_cursor ()">shell_global_unset_cursor</a> (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);
108
116
<div class="refsect1">
109
117
<a name="shell-ShellGlobal.object-hierarchy"></a><h2>Object Hierarchy</h2>
110
118
<pre class="synopsis">
122
<pre class="synopsis">
112
124
+----ShellStageInputMode
114
<pre class="synopsis">
118
<pre class="synopsis">
120
+----ShellSessionType
123
127
<div class="refsect1">
124
128
<a name="shell-ShellGlobal.description"></a><h2>Description</h2>
136
185
<div class="refsect2">
137
<a name="shell-global-get"></a><h3>shell_global_get ()</h3>
138
<pre class="programlisting"><span class="returnvalue">ShellGlobal</span> * shell_global_get (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
140
Gets the singleton global object that represents the desktop.
142
<div class="variablelist"><table border="0" class="variablelist">
144
<col align="left" valign="top">
148
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
149
<td>the singleton global object. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
155
<div class="refsect2">
156
<a name="shell-global-get-stage"></a><h3>shell_global_get_stage ()</h3>
157
<pre class="programlisting"><span class="returnvalue">ClutterStage</span> * shell_global_get_stage (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
158
<div class="variablelist"><table border="0" class="variablelist">
160
<col align="left" valign="top">
164
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
165
<td>The default <span class="type">ClutterStage</span>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
171
<div class="refsect2">
172
<a name="shell-global-get-screen"></a><h3>shell_global_get_screen ()</h3>
173
<pre class="programlisting"><span class="returnvalue">MetaScreen</span> * shell_global_get_screen (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
174
<div class="variablelist"><table border="0" class="variablelist">
176
<col align="left" valign="top">
180
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
181
<td>The default <span class="type">MetaScreen</span>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
187
<div class="refsect2">
188
<a name="shell-global-get-gdk-screen"></a><h3>shell_global_get_gdk_screen ()</h3>
189
<pre class="programlisting"><span class="returnvalue">GdkScreen</span> * shell_global_get_gdk_screen (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
190
<div class="variablelist"><table border="0" class="variablelist">
192
<col align="left" valign="top">
196
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
197
<td>Gdk screen object for the shell. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
203
<div class="refsect2">
204
<a name="shell-global-get-display"></a><h3>shell_global_get_display ()</h3>
205
<pre class="programlisting"><span class="returnvalue">MetaDisplay</span> * shell_global_get_display (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
206
<div class="variablelist"><table border="0" class="variablelist">
208
<col align="left" valign="top">
212
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
213
<td>The default <span class="type">MetaDisplay</span>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
219
<div class="refsect2">
220
<a name="shell-global-get-window-actors"></a><h3>shell_global_get_window_actors ()</h3>
221
<pre class="programlisting"><span class="returnvalue">GList</span> * shell_global_get_window_actors (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
223
Gets the list of <span class="type">MetaWindowActor</span> for the plugin's screen
225
<div class="variablelist"><table border="0" class="variablelist">
227
<col align="left" valign="top">
231
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
232
<td>the list of windows. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Meta.WindowActor][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
238
<div class="refsect2">
239
<a name="shell-global-get-settings"></a><h3>shell_global_get_settings ()</h3>
240
<pre class="programlisting"><span class="returnvalue">GSettings</span> * shell_global_get_settings (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
242
Get the global GSettings instance.
244
<div class="variablelist"><table border="0" class="variablelist">
246
<col align="left" valign="top">
251
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
252
<td>A <span class="type">ShellGlobal</span>
256
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
257
<td>The GSettings object. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
264
<div class="refsect2">
265
<a name="shell-global-get-current-time"></a><h3>shell_global_get_current_time ()</h3>
266
<pre class="programlisting"><span class="returnvalue">guint32</span> shell_global_get_current_time (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
267
<div class="variablelist"><table border="0" class="variablelist">
269
<col align="left" valign="top">
274
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
275
<td>A <span class="type">ShellGlobal</span>
279
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
280
<td>the current X server time from the current Clutter, Gdk, or X
281
event. If called from outside an event handler, this may return
282
<code class="literal">Clutter</code>.CURRENT_TIME (aka 0), or it may return a slightly
283
out-of-date timestamp.</td>
186
<a name="ShellLeisureFunction"></a><h3>ShellLeisureFunction ()</h3>
187
<pre class="programlisting"><span class="returnvalue">void</span> (*ShellLeisureFunction) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
190
<div class="refsect2">
191
<a name="ShellMemoryInfo"></a><h3>ShellMemoryInfo</h3>
192
<pre class="programlisting">typedef struct {
193
guint glibc_uordblks;
202
/* 32 bit to avoid js conversion problems with 64 bit */
203
guint last_gc_seconds_ago;
208
<div class="refsect2">
209
<a name="ShellStageInputMode-enum"></a><h3>enum ShellStageInputMode</h3>
210
<pre class="programlisting">typedef enum {
211
SHELL_STAGE_INPUT_MODE_NONREACTIVE,
212
SHELL_STAGE_INPUT_MODE_NORMAL,
213
SHELL_STAGE_INPUT_MODE_FOCUSED,
214
SHELL_STAGE_INPUT_MODE_FULLSCREEN
215
} ShellStageInputMode;
217
<div class="variablelist"><table border="0" class="variablelist">
219
<col align="left" valign="top">
224
<td><p><a name="SHELL-STAGE-INPUT-MODE-NONREACTIVE:CAPS"></a><span class="term"><code class="literal">SHELL_STAGE_INPUT_MODE_NONREACTIVE</code></span></p></td>
228
<td><p><a name="SHELL-STAGE-INPUT-MODE-NORMAL:CAPS"></a><span class="term"><code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code></span></p></td>
232
<td><p><a name="SHELL-STAGE-INPUT-MODE-FOCUSED:CAPS"></a><span class="term"><code class="literal">SHELL_STAGE_INPUT_MODE_FOCUSED</code></span></p></td>
236
<td><p><a name="SHELL-STAGE-INPUT-MODE-FULLSCREEN:CAPS"></a><span class="term"><code class="literal">SHELL_STAGE_INPUT_MODE_FULLSCREEN</code></span></p></td>
345
376
<div class="refsect2">
346
<a name="ShellStageInputMode-enum"></a><h3>enum ShellStageInputMode</h3>
347
<pre class="programlisting">typedef enum {
348
SHELL_STAGE_INPUT_MODE_NONREACTIVE,
349
SHELL_STAGE_INPUT_MODE_NORMAL,
350
SHELL_STAGE_INPUT_MODE_FOCUSED,
351
SHELL_STAGE_INPUT_MODE_FULLSCREEN
352
} ShellStageInputMode;
356
<div class="refsect2">
357
<a name="shell-global-set-stage-input-mode"></a><h3>shell_global_set_stage_input_mode ()</h3>
358
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_set_stage_input_mode (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
359
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellStageInputMode"><span class="type">ShellStageInputMode</span></a> mode</code></em>);</pre>
361
Sets the input mode of the stage; when <em class="parameter"><code>mode</code></em> is
362
<code class="literal">SHELL_STAGE_INPUT_MODE_NONREACTIVE</code>, then the stage does not absorb
363
any clicks, but just passes them through to underlying windows.
364
When it is <code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code>, then the stage accepts
365
clicks in the region defined by
366
<a class="link" href="shell-ShellGlobal.html#shell-global-set-stage-input-region" title="shell_global_set_stage_input_region ()"><code class="function">shell_global_set_stage_input_region()</code></a> but passes through clicks
367
outside that region. When it is <code class="literal">SHELL_STAGE_INPUT_MODE_FULLSCREEN</code>,
368
the stage absorbs all input.
371
When the input mode is <code class="literal">SHELL_STAGE_INPUT_MODE_FOCUSED</code>, the pointer
372
is handled as with <code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code>, but additionally
373
the stage window has the keyboard focus. If the stage loses the
374
focus (eg, because the user clicked into a window) the input mode
375
will revert to <code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code>.
378
Note that whenever a mutter-internal Gtk widget has a pointer grab,
379
the shell behaves as though it was in
380
<code class="literal">SHELL_STAGE_INPUT_MODE_NONREACTIVE</code>, to ensure that the widget gets
381
any clicks it is expecting.
383
<div class="variablelist"><table border="0" class="variablelist">
385
<col align="left" valign="top">
390
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
391
<td>the <span class="type">ShellGlobal</span>
395
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
396
<td>the stage input mode</td>
402
<div class="refsect2">
403
<a name="shell-global-set-stage-input-region"></a><h3>shell_global_set_stage_input_region ()</h3>
404
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_set_stage_input_region (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
405
<em class="parameter"><code><span class="type">GSList</span> *rectangles</code></em>);</pre>
407
Sets the area of the stage that is responsive to mouse clicks when
408
the stage mode is <code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code> (but does not change the
411
<div class="variablelist"><table border="0" class="variablelist">
413
<col align="left" valign="top">
418
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
419
<td>the <span class="type">ShellGlobal</span>
423
<td><p><span class="term"><em class="parameter"><code>rectangles</code></em> :</span></p></td>
424
<td>a list of <span class="type">MetaRectangle</span>
425
describing the input region. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Meta.Rectangle]</span>
432
<div class="refsect2">
433
<a name="ShellCursor-enum"></a><h3>enum ShellCursor</h3>
434
<pre class="programlisting">typedef enum {
435
SHELL_CURSOR_DND_IN_DRAG,
436
SHELL_CURSOR_DND_UNSUPPORTED_TARGET,
437
SHELL_CURSOR_DND_MOVE,
438
SHELL_CURSOR_DND_COPY,
439
SHELL_CURSOR_POINTING_HAND
444
<div class="refsect2">
445
<a name="shell-global-set-cursor"></a><h3>shell_global_set_cursor ()</h3>
446
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_set_cursor (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
447
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellCursor"><span class="type">ShellCursor</span></a> type</code></em>);</pre>
449
Set the cursor on the stage window.
451
<div class="variablelist"><table border="0" class="variablelist">
453
<col align="left" valign="top">
458
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
459
<td>A <span class="type">ShellGlobal</span>
463
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
464
<td>the type of the cursor</td>
470
<div class="refsect2">
471
<a name="shell-global-unset-cursor"></a><h3>shell_global_unset_cursor ()</h3>
472
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_unset_cursor (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
474
Unset the cursor on the stage window.
476
<div class="variablelist"><table border="0" class="variablelist">
478
<col align="left" valign="top">
482
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
483
<td>A <span class="type">ShellGlobal</span>
489
<div class="refsect2">
490
<a name="shell-global-create-pointer-barrier"></a><h3>shell_global_create_pointer_barrier ()</h3>
491
<pre class="programlisting"><span class="returnvalue">guint32</span> shell_global_create_pointer_barrier (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
492
<em class="parameter"><code><span class="type">int</span> x1</code></em>,
493
<em class="parameter"><code><span class="type">int</span> y1</code></em>,
494
<em class="parameter"><code><span class="type">int</span> x2</code></em>,
495
<em class="parameter"><code><span class="type">int</span> y2</code></em>,
496
<em class="parameter"><code><span class="type">int</span> directions</code></em>);</pre>
498
If supported by X creates a pointer barrier.
500
<div class="variablelist"><table border="0" class="variablelist">
502
<col align="left" valign="top">
507
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
508
<td>a <span class="type">ShellGlobal</span>
512
<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
513
<td>left X coordinate</td>
516
<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
517
<td>top Y coordinate</td>
520
<td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td>
521
<td>right X coordinate</td>
524
<td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td>
525
<td>bottom Y coordinate</td>
528
<td><p><span class="term"><em class="parameter"><code>directions</code></em> :</span></p></td>
529
<td>The directions we're allowed to pass through</td>
532
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
533
<td>value you can pass to <a class="link" href="shell-ShellGlobal.html#shell-global-destroy-pointer-barrier" title="shell_global_destroy_pointer_barrier ()"><code class="function">shell_global_destroy_pointer_barrier()</code></a>
540
<div class="refsect2">
541
<a name="shell-global-destroy-pointer-barrier"></a><h3>shell_global_destroy_pointer_barrier ()</h3>
542
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_destroy_pointer_barrier
543
(<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
544
<em class="parameter"><code><span class="type">guint32</span> barrier</code></em>);</pre>
546
Destroys the <em class="parameter"><code>barrier</code></em> created by <a class="link" href="shell-ShellGlobal.html#shell-global-create-pointer-barrier" title="shell_global_create_pointer_barrier ()"><code class="function">shell_global_create_pointer_barrier()</code></a>.
548
<div class="variablelist"><table border="0" class="variablelist">
550
<col align="left" valign="top">
555
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
556
<td>a <span class="type">ShellGlobal</span>
560
<td><p><span class="term"><em class="parameter"><code>barrier</code></em> :</span></p></td>
561
<td>a pointer barrier</td>
377
<a name="shell-global-end-work"></a><h3>shell_global_end_work ()</h3>
378
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_end_work (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
380
Marks the end of work that we started with <a class="link" href="shell-ShellGlobal.html#shell-global-begin-work" title="shell_global_begin_work ()"><code class="function">shell_global_begin_work()</code></a>.
381
If no other work is ongoing and functions have been added with
382
<a class="link" href="shell-ShellGlobal.html#shell-global-run-at-leisure" title="shell_global_run_at_leisure ()"><code class="function">shell_global_run_at_leisure()</code></a>, they will be run at the next
385
<div class="variablelist"><table border="0" class="variablelist">
387
<col align="left" valign="top">
391
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
392
<td>the <span class="type">ShellGlobal</span>
398
<div class="refsect2">
399
<a name="shell-global-get"></a><h3>shell_global_get ()</h3>
400
<pre class="programlisting"><span class="returnvalue">ShellGlobal</span> * shell_global_get (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
402
Gets the singleton global object that represents the desktop.
404
<div class="variablelist"><table border="0" class="variablelist">
406
<col align="left" valign="top">
410
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
411
<td>the singleton global object. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
417
<div class="refsect2">
418
<a name="shell-global-get-current-time"></a><h3>shell_global_get_current_time ()</h3>
419
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> shell_global_get_current_time (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
420
<div class="variablelist"><table border="0" class="variablelist">
422
<col align="left" valign="top">
427
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
428
<td>A <span class="type">ShellGlobal</span>
432
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
433
<td>the current X server time from the current Clutter, Gdk, or X
434
event. If called from outside an event handler, this may return
435
<code class="literal">Clutter</code>.CURRENT_TIME (aka 0), or it may return a slightly
436
out-of-date timestamp.</td>
442
<div class="refsect2">
443
<a name="shell-global-get-display"></a><h3>shell_global_get_display ()</h3>
444
<pre class="programlisting"><a href="http://developer.gnome.org/meta/MetaDisplay.html"><span class="returnvalue">MetaDisplay</span></a> * shell_global_get_display (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
445
<div class="variablelist"><table border="0" class="variablelist">
447
<col align="left" valign="top">
451
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
452
<td>The default <a href="http://developer.gnome.org/meta/MetaDisplay.html"><span class="type">MetaDisplay</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
458
<div class="refsect2">
459
<a name="shell-global-get-gdk-screen"></a><h3>shell_global_get_gdk_screen ()</h3>
460
<pre class="programlisting"><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> * shell_global_get_gdk_screen (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
461
<div class="variablelist"><table border="0" class="variablelist">
463
<col align="left" valign="top">
467
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
468
<td>Gdk screen object for the shell. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
474
<div class="refsect2">
475
<a name="shell-global-get-memory-info"></a><h3>shell_global_get_memory_info ()</h3>
476
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_get_memory_info (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
477
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellMemoryInfo" title="ShellMemoryInfo"><span class="type">ShellMemoryInfo</span></a> *meminfo</code></em>);</pre>
479
Load process-global data about memory usage.
481
<div class="variablelist"><table border="0" class="variablelist">
483
<col align="left" valign="top">
487
<td><p><span class="term"><em class="parameter"><code>meminfo</code></em> :</span></p></td>
488
<td>Output location for memory information. <span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span>
609
536
<div class="refsect2">
610
<a name="shell-global-gc"></a><h3>shell_global_gc ()</h3>
611
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_gc (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
613
Start a garbage collection process. For more information, see
614
https://developer.mozilla.org/En/JS_GC
616
<div class="variablelist"><table border="0" class="variablelist">
618
<col align="left" valign="top">
622
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
623
<td>A <span class="type">ShellGlobal</span>
629
<div class="refsect2">
630
<a name="shell-global-maybe-gc"></a><h3>shell_global_maybe_gc ()</h3>
631
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_maybe_gc (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
633
Start a garbage collection process when it would free up enough memory
634
to be worth the amount of time it would take
635
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_MaybeGC
637
<div class="variablelist"><table border="0" class="variablelist">
639
<col align="left" valign="top">
643
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
644
<td>A <span class="type">ShellGlobal</span>
650
<div class="refsect2">
651
<a name="ShellMemoryInfo"></a><h3>ShellMemoryInfo</h3>
652
<pre class="programlisting">typedef struct {
653
guint glibc_uordblks;
662
/* 32 bit to avoid js conversion problems with 64 bit */
663
guint last_gc_seconds_ago;
668
<div class="refsect2">
669
<a name="shell-global-get-memory-info"></a><h3>shell_global_get_memory_info ()</h3>
670
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_get_memory_info (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
671
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellMemoryInfo" title="ShellMemoryInfo"><span class="type">ShellMemoryInfo</span></a> *meminfo</code></em>);</pre>
673
Load process-global data about memory usage.
675
<div class="variablelist"><table border="0" class="variablelist">
677
<col align="left" valign="top">
681
<td><p><span class="term"><em class="parameter"><code>meminfo</code></em> :</span></p></td>
682
<td>Output location for memory information. <span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span>
688
<div class="refsect2">
689
<a name="shell-global-begin-work"></a><h3>shell_global_begin_work ()</h3>
690
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_begin_work (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
692
Marks that we are currently doing work. This is used to to track
693
whether we are busy for the purposes of <a class="link" href="shell-ShellGlobal.html#shell-global-run-at-leisure" title="shell_global_run_at_leisure ()"><code class="function">shell_global_run_at_leisure()</code></a>.
694
A count is kept and <a class="link" href="shell-ShellGlobal.html#shell-global-end-work" title="shell_global_end_work ()"><code class="function">shell_global_end_work()</code></a> must be called exactly
695
as many times as <a class="link" href="shell-ShellGlobal.html#shell-global-begin-work" title="shell_global_begin_work ()"><code class="function">shell_global_begin_work()</code></a>.
697
<div class="variablelist"><table border="0" class="variablelist">
699
<col align="left" valign="top">
703
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
704
<td>the <span class="type">ShellGlobal</span>
710
<div class="refsect2">
711
<a name="shell-global-end-work"></a><h3>shell_global_end_work ()</h3>
712
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_end_work (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
714
Marks the end of work that we started with <a class="link" href="shell-ShellGlobal.html#shell-global-begin-work" title="shell_global_begin_work ()"><code class="function">shell_global_begin_work()</code></a>.
715
If no other work is ongoing and functions have been added with
716
<a class="link" href="shell-ShellGlobal.html#shell-global-run-at-leisure" title="shell_global_run_at_leisure ()"><code class="function">shell_global_run_at_leisure()</code></a>, they will be run at the next
719
<div class="variablelist"><table border="0" class="variablelist">
721
<col align="left" valign="top">
725
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
726
<td>the <span class="type">ShellGlobal</span>
732
<div class="refsect2">
733
<a name="ShellLeisureFunction"></a><h3>ShellLeisureFunction ()</h3>
734
<pre class="programlisting"><span class="returnvalue">void</span> (*ShellLeisureFunction) (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
537
<a name="shell-global-get-screen"></a><h3>shell_global_get_screen ()</h3>
538
<pre class="programlisting"><a href="http://developer.gnome.org/meta/MetaScreen.html"><span class="returnvalue">MetaScreen</span></a> * shell_global_get_screen (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
539
<div class="variablelist"><table border="0" class="variablelist">
541
<col align="left" valign="top">
545
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
546
<td>The default <a href="http://developer.gnome.org/meta/MetaScreen.html"><span class="type">MetaScreen</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
552
<div class="refsect2">
553
<a name="shell-global-get-session-mode"></a><h3>shell_global_get_session_mode ()</h3>
554
<pre class="programlisting">const <span class="returnvalue">char</span> * shell_global_get_session_mode (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
557
<div class="refsect2">
558
<a name="shell-global-get-settings"></a><h3>shell_global_get_settings ()</h3>
559
<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GSettings.html"><span class="returnvalue">GSettings</span></a> * shell_global_get_settings (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
561
Get the global GSettings instance.
563
<div class="variablelist"><table border="0" class="variablelist">
565
<col align="left" valign="top">
570
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
571
<td>A <span class="type">ShellGlobal</span>
575
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
576
<td>The GSettings object. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
583
<div class="refsect2">
584
<a name="shell-global-get-stage"></a><h3>shell_global_get_stage ()</h3>
585
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/clutter/ClutterStage.html"><span class="returnvalue">ClutterStage</span></a> * shell_global_get_stage (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
586
<div class="variablelist"><table border="0" class="variablelist">
588
<col align="left" valign="top">
592
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
593
<td>The default <a href="/usr/share/gtk-doc/html/clutter/ClutterStage.html"><span class="type">ClutterStage</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
599
<div class="refsect2">
600
<a name="shell-global-get-window-actors"></a><h3>shell_global_get_window_actors ()</h3>
601
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * shell_global_get_window_actors (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
603
Gets the list of <a href="http://developer.gnome.org/meta/MetaWindowActor.html"><span class="type">MetaWindowActor</span></a> for the plugin's screen
605
<div class="variablelist"><table border="0" class="variablelist">
607
<col align="left" valign="top">
611
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
612
<td>the list of windows. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Meta.WindowActor][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
618
<div class="refsect2">
619
<a name="shell-global-init-xdnd"></a><h3>shell_global_init_xdnd ()</h3>
620
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_init_xdnd (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
622
Enables tracking of Xdnd events
624
<div class="variablelist"><table border="0" class="variablelist">
626
<col align="left" valign="top">
630
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
631
<td>the <span class="type">ShellGlobal</span>
637
<div class="refsect2">
638
<a name="shell-global-notify-error"></a><h3>shell_global_notify_error ()</h3>
639
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_notify_error (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
640
<em class="parameter"><code>const <span class="type">char</span> *msg</code></em>,
641
<em class="parameter"><code>const <span class="type">char</span> *details</code></em>);</pre>
643
Show a system error notification. Use this function
644
when a user-initiated action results in a non-fatal problem
645
from causes that may not be under system control. For
646
example, an application crash.
648
<div class="variablelist"><table border="0" class="variablelist">
650
<col align="left" valign="top">
655
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
656
<td>a <span class="type">ShellGlobal</span>
660
<td><p><span class="term"><em class="parameter"><code>msg</code></em> :</span></p></td>
661
<td>Error message</td>
664
<td><p><span class="term"><em class="parameter"><code>details</code></em> :</span></p></td>
665
<td>Error details</td>
671
<div class="refsect2">
672
<a name="shell-global-play-sound-file"></a><h3>shell_global_play_sound_file ()</h3>
673
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_play_sound_file (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
674
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
675
<em class="parameter"><code>const <span class="type">char</span> *file_name</code></em>,
676
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
677
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>);</pre>
679
Like <a class="link" href="shell-ShellGlobal.html#shell-global-play-theme-sound" title="shell_global_play_theme_sound ()"><code class="function">shell_global_play_theme_sound()</code></a>, but with an explicit path
680
instead of a themed sound.
682
<div class="variablelist"><table border="0" class="variablelist">
684
<col align="left" valign="top">
689
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
690
<td>the <span class="type">ShellGlobal</span>
694
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
695
<td>an id, used to cancel later (0 if not needed)</td>
698
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
699
<td>the file name to play</td>
702
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
703
<td>the localized description of the event that triggered this alert</td>
706
<td><p><span class="term"><em class="parameter"><code>for_event</code></em> :</span></p></td>
707
<td>a <a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> in response to which the sound is played. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
714
<div class="refsect2">
715
<a name="shell-global-play-sound-file-full"></a><h3>shell_global_play_sound_file_full ()</h3>
716
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_play_sound_file_full (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
717
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
718
<em class="parameter"><code>const <span class="type">char</span> *file_name</code></em>,
719
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
720
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>,
721
<em class="parameter"><code>const <span class="type">char</span> *application_id</code></em>,
722
<em class="parameter"><code>const <span class="type">char</span> *application_name</code></em>);</pre>
724
Like <a class="link" href="shell-ShellGlobal.html#shell-global-play-theme-sound-full" title="shell_global_play_theme_sound_full ()"><code class="function">shell_global_play_theme_sound_full()</code></a>, but with an explicit path
725
instead of a themed sound.
727
<div class="variablelist"><table border="0" class="variablelist">
729
<col align="left" valign="top">
734
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
735
<td>the <span class="type">ShellGlobal</span>
739
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
740
<td>an id, used to cancel later (0 if not needed)</td>
743
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
744
<td>the file name to play</td>
747
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
748
<td>the localized description of the event that triggered this alert</td>
751
<td><p><span class="term"><em class="parameter"><code>for_event</code></em> :</span></p></td>
752
<td>a <a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> in response to which the sound is played. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
756
<td><p><span class="term"><em class="parameter"><code>application_id</code></em> :</span></p></td>
757
<td>application on behalf of which the sound is played</td>
763
<div class="refsect2">
764
<a name="shell-global-play-theme-sound"></a><h3>shell_global_play_theme_sound ()</h3>
765
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_play_theme_sound (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
766
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
767
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
768
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
769
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>);</pre>
771
Plays a simple sound picked according to Freedesktop sound theme.
772
Really just a workaround for libcanberra not being introspected.
774
<div class="variablelist"><table border="0" class="variablelist">
776
<col align="left" valign="top">
781
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
782
<td>the <span class="type">ShellGlobal</span>
786
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
787
<td>an id, used to cancel later (0 if not needed)</td>
790
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
791
<td>the sound name</td>
794
<td><p><span class="term"><em class="parameter"><code>for_event</code></em> :</span></p></td>
795
<td>a <a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> in response to which the sound is played. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
802
<div class="refsect2">
803
<a name="shell-global-play-theme-sound-full"></a><h3>shell_global_play_theme_sound_full ()</h3>
804
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_play_theme_sound_full (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
805
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>,
806
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
807
<em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
808
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> *for_event</code></em>,
809
<em class="parameter"><code>const <span class="type">char</span> *application_id</code></em>,
810
<em class="parameter"><code>const <span class="type">char</span> *application_name</code></em>);</pre>
812
Plays a simple sound picked according to Freedesktop sound theme.
813
Really just a workaround for libcanberra not being introspected.
815
<div class="variablelist"><table border="0" class="variablelist">
817
<col align="left" valign="top">
822
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
823
<td>the <span class="type">ShellGlobal</span>
827
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
828
<td>an id, used to cancel later (0 if not needed)</td>
831
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
832
<td>the sound name</td>
835
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
836
<td>the localized description of the event that triggered this alert</td>
839
<td><p><span class="term"><em class="parameter"><code>for_event</code></em> :</span></p></td>
840
<td>a <a href="/usr/share/gtk-doc/html/clutter/clutter-Events.html#ClutterEvent"><span class="type">ClutterEvent</span></a> in response to which the sound is played. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
844
<td><p><span class="term"><em class="parameter"><code>application_id</code></em> :</span></p></td>
845
<td>application on behalf of which the sound is played</td>
851
<div class="refsect2">
852
<a name="shell-global-reexec-self"></a><h3>shell_global_reexec_self ()</h3>
853
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_reexec_self (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
855
Restart the current process. Only intended for development purposes.
857
<div class="variablelist"><table border="0" class="variablelist">
859
<col align="left" valign="top">
863
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
864
<td>A <span class="type">ShellGlobal</span>
737
870
<div class="refsect2">
738
871
<a name="shell-global-run-at-leisure"></a><h3>shell_global_run_at_leisure ()</h3>
739
872
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_run_at_leisure (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
740
873
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellLeisureFunction" title="ShellLeisureFunction ()"><span class="type">ShellLeisureFunction</span></a> func</code></em>,
741
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
742
<em class="parameter"><code><span class="type">GDestroyNotify</span> notify</code></em>);</pre>
874
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
875
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
744
877
Schedules a function to be called the next time the shell is idle.
745
878
Idle means here no animations, no redrawing, and no ongoing background
789
922
<div class="refsect2">
923
<a name="shell-global-set-cursor"></a><h3>shell_global_set_cursor ()</h3>
924
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_set_cursor (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
925
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellCursor"><span class="type">ShellCursor</span></a> type</code></em>);</pre>
927
Set the cursor on the stage window.
929
<div class="variablelist"><table border="0" class="variablelist">
931
<col align="left" valign="top">
936
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
937
<td>A <span class="type">ShellGlobal</span>
941
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
942
<td>the type of the cursor</td>
948
<div class="refsect2">
949
<a name="shell-global-set-stage-input-mode"></a><h3>shell_global_set_stage_input_mode ()</h3>
950
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_set_stage_input_mode (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
951
<em class="parameter"><code><a class="link" href="shell-ShellGlobal.html#ShellStageInputMode"><span class="type">ShellStageInputMode</span></a> mode</code></em>);</pre>
953
Sets the input mode of the stage; when <em class="parameter"><code>mode</code></em> is
954
<a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-NONREACTIVE:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_NONREACTIVE</code></a>, then the stage does not absorb
955
any clicks, but just passes them through to underlying windows.
956
When it is <a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-NORMAL:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code></a>, then the stage accepts
957
clicks in the region defined by
958
<a class="link" href="shell-ShellGlobal.html#shell-global-set-stage-input-region" title="shell_global_set_stage_input_region ()"><code class="function">shell_global_set_stage_input_region()</code></a> but passes through clicks
959
outside that region. When it is <a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-FULLSCREEN:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_FULLSCREEN</code></a>,
960
the stage absorbs all input.
963
When the input mode is <a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-FOCUSED:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_FOCUSED</code></a>, the pointer
964
is handled as with <a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-NORMAL:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code></a>, but additionally
965
the stage window has the keyboard focus. If the stage loses the
966
focus (eg, because the user clicked into a window) the input mode
967
will revert to <a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-NORMAL:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code></a>.
970
Note that whenever a mutter-internal Gtk widget has a pointer grab,
971
the shell behaves as though it was in
972
<a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-NONREACTIVE:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_NONREACTIVE</code></a>, to ensure that the widget gets
973
any clicks it is expecting.
975
<div class="variablelist"><table border="0" class="variablelist">
977
<col align="left" valign="top">
982
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
983
<td>the <span class="type">ShellGlobal</span>
987
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
988
<td>the stage input mode</td>
994
<div class="refsect2">
995
<a name="shell-global-set-stage-input-region"></a><h3>shell_global_set_stage_input_region ()</h3>
996
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_set_stage_input_region (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
997
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *rectangles</code></em>);</pre>
999
Sets the area of the stage that is responsive to mouse clicks when
1000
the stage mode is <a class="link" href="shell-ShellGlobal.html#SHELL-STAGE-INPUT-MODE-NORMAL:CAPS"><code class="literal">SHELL_STAGE_INPUT_MODE_NORMAL</code></a> (but does not change the
1001
current stage mode).
1003
<div class="variablelist"><table border="0" class="variablelist">
1005
<col align="left" valign="top">
1010
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
1011
<td>the <span class="type">ShellGlobal</span>
1015
<td><p><span class="term"><em class="parameter"><code>rectangles</code></em> :</span></p></td>
1016
<td>a list of <a href="http://developer.gnome.org/meta/MetaRectangle.html"><span class="type">MetaRectangle</span></a>
1017
describing the input region. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Meta.Rectangle]</span>
1024
<div class="refsect2">
790
1025
<a name="shell-global-sync-pointer"></a><h3>shell_global_sync_pointer ()</h3>
791
1026
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_sync_pointer (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
810
1045
<div class="refsect2">
811
<a name="shell-global-create-app-launch-context"></a><h3>shell_global_create_app_launch_context ()</h3>
812
<pre class="programlisting"><span class="returnvalue">GAppLaunchContext</span> * shell_global_create_app_launch_context
813
(<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
815
Create a <span class="type">GAppLaunchContext</span> set up with the correct timestamp, and
816
targeted to activate on the current workspace.
818
<div class="variablelist"><table border="0" class="variablelist">
820
<col align="left" valign="top">
825
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
826
<td>A <span class="type">ShellGlobal</span>
830
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
831
<td>A new <span class="type">GAppLaunchContext</span>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
838
<div class="refsect2">
839
<a name="shell-global-play-theme-sound"></a><h3>shell_global_play_theme_sound ()</h3>
840
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_play_theme_sound (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
841
<em class="parameter"><code><span class="type">guint</span> id</code></em>,
842
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
844
Plays a simple sound picked according to Freedesktop sound theme.
845
Really just a workaround for libcanberra not being introspected.
847
<div class="variablelist"><table border="0" class="variablelist">
849
<col align="left" valign="top">
854
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
855
<td>the <span class="type">ShellGlobal</span>
859
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
860
<td>an id, used to cancel later (0 if not needed)</td>
863
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
864
<td>the sound name</td>
870
<div class="refsect2">
871
<a name="shell-global-cancel-theme-sound"></a><h3>shell_global_cancel_theme_sound ()</h3>
872
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_cancel_theme_sound (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
873
<em class="parameter"><code><span class="type">guint</span> id</code></em>);</pre>
875
Cancels a sound notification.
877
<div class="variablelist"><table border="0" class="variablelist">
879
<col align="left" valign="top">
884
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
885
<td>the <span class="type">ShellGlobal</span>
889
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
890
<td>the id previously passed to <a class="link" href="shell-ShellGlobal.html#shell-global-play-theme-sound" title="shell_global_play_theme_sound ()"><code class="function">shell_global_play_theme_sound()</code></a>
897
<div class="refsect2">
898
<a name="shell-global-notify-error"></a><h3>shell_global_notify_error ()</h3>
899
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_notify_error (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>,
900
<em class="parameter"><code>const <span class="type">char</span> *msg</code></em>,
901
<em class="parameter"><code>const <span class="type">char</span> *details</code></em>);</pre>
903
Show a system error notification. Use this function
904
when a user-initiated action results in a non-fatal problem
905
from causes that may not be under system control. For
906
example, an application crash.
908
<div class="variablelist"><table border="0" class="variablelist">
910
<col align="left" valign="top">
915
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
916
<td>a <span class="type">ShellGlobal</span>
920
<td><p><span class="term"><em class="parameter"><code>msg</code></em> :</span></p></td>
921
<td>Error message</td>
924
<td><p><span class="term"><em class="parameter"><code>details</code></em> :</span></p></td>
925
<td>Error details</td>
931
<div class="refsect2">
932
<a name="shell-global-init-xdnd"></a><h3>shell_global_init_xdnd ()</h3>
933
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_init_xdnd (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
935
Enables tracking of Xdnd events
937
<div class="variablelist"><table border="0" class="variablelist">
939
<col align="left" valign="top">
943
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
944
<td>the <span class="type">ShellGlobal</span>
950
<div class="refsect2">
951
<a name="shell-global-reexec-self"></a><h3>shell_global_reexec_self ()</h3>
952
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_reexec_self (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
954
Restart the current process. Only intended for development purposes.
956
<div class="variablelist"><table border="0" class="variablelist">
958
<col align="left" valign="top">
962
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
963
<td>A <span class="type">ShellGlobal</span>
969
<div class="refsect2">
970
<a name="shell-global-launch-calendar-server"></a><h3>shell_global_launch_calendar_server ()</h3>
971
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_launch_calendar_server (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
973
Launch the gnome-shell-calendar-server helper.
975
<div class="variablelist"><table border="0" class="variablelist">
977
<col align="left" valign="top">
981
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
982
<td>The <span class="type">ShellGlobal</span>.</td>
987
<div class="refsect2">
988
<a name="ShellSessionType-enum"></a><h3>enum ShellSessionType</h3>
989
<pre class="programlisting">typedef enum {
996
<div class="refsect2">
997
<a name="shell-global-get-session-type"></a><h3>shell_global_get_session_type ()</h3>
998
<pre class="programlisting"><a class="link" href="shell-ShellGlobal.html#ShellSessionType"><span class="returnvalue">ShellSessionType</span></a> shell_global_get_session_type (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
1000
Gets the type of session gnome-shell provides.
1003
The type determines what UI elements are displayed,
1004
what keybindings work, and generally how the shell
1008
A session type of <span class="type">SHELL_SESSION_USER</span> means gnome-shell
1009
will enable the activities overview, status menu, run dialog,
1010
etc. This is the default.
1013
A session type of <span class="type">SHELL_SESSION_GDM</span> means gnome-shell
1014
will enable a login dialog and run in a more confined
1015
way. This type is suitable for the display manager.
1017
<div class="variablelist"><table border="0" class="variablelist">
1019
<col align="left" valign="top">
1024
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
1025
<td>The <span class="type">ShellGlobal</span>.</td>
1028
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1029
<td>the type of session gnome-shell is providing.</td>
1046
<a name="shell-global-unset-cursor"></a><h3>shell_global_unset_cursor ()</h3>
1047
<pre class="programlisting"><span class="returnvalue">void</span> shell_global_unset_cursor (<em class="parameter"><code><span class="type">ShellGlobal</span> *global</code></em>);</pre>
1049
Unset the cursor on the stage window.
1051
<div class="variablelist"><table border="0" class="variablelist">
1053
<col align="left" valign="top">
1057
<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
1058
<td>A <span class="type">ShellGlobal</span>
1036
1065
<div class="footer">
1038
Generated by GTK-Doc V1.18.1</div>
1067
Generated by GTK-Doc V1.19</div>
b'\\ No newline at end of file'