~ubuntu-branches/ubuntu/trusty/gnome-shell/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/revert-input-source-changes.patch/src/shell-global.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-06-16 19:14:01 UTC
  • mfrom: (1.1.50) (19.1.37 experimental)
  • Revision ID: package-import@ubuntu.com-20130616191401-kef9vj3obfuvusrn
Tags: 3.8.3-1ubuntu1
* Merge with Debian. Remaining changes:
  - debian/control.in:
    + Build-depend on libsystemd-login-dev & libsystemd-daemon-dev
    + Depend on gdm instead of gdm3
  - debian/patches/40_change-pam-name-to-match-gdm.patch:
  - debian/patches/revert-suspend-break.patch:
    + Disabled, not needed on Ubuntu
  - debian/patches/ubuntu-lightdm-user-switching.patch:
    + Allow user switching when using LightDM.
  - debian/patches/ubuntu_lock_on_suspend.patch
    + Respect Ubuntu's lock-on-suspend setting.
      Disabled until it can be rewritten.
  - debian/patches/git_relock_screen_after_crash.patch:
    + Backport fix to ensure session is locked after crash
* debian/patches/revert-input-source-changes.patch:
  - Temporarily revert input source changes that need gnome-settings-daemon
    and gnome-control-center 3.8.3 to be useful
* debian/patches/revert-notification-settings-link.patch:
  - Don't link to Notification Settings since that's only available
    with gnome-control-center >= 3.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 
2
#ifndef __SHELL_GLOBAL_H__
 
3
#define __SHELL_GLOBAL_H__
 
4
 
 
5
#include <clutter/clutter.h>
 
6
#include <glib-object.h>
 
7
#include <gdk-pixbuf/gdk-pixbuf.h>
 
8
#include <gtk/gtk.h>
 
9
#include <meta/meta-plugin.h>
 
10
 
 
11
G_BEGIN_DECLS
 
12
 
 
13
typedef struct _ShellGlobal      ShellGlobal;
 
14
typedef struct _ShellGlobalClass ShellGlobalClass;
 
15
 
 
16
#define SHELL_TYPE_GLOBAL              (shell_global_get_type ())
 
17
#define SHELL_GLOBAL(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), SHELL_TYPE_GLOBAL, ShellGlobal))
 
18
#define SHELL_GLOBAL_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_GLOBAL, ShellGlobalClass))
 
19
#define SHELL_IS_GLOBAL(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), SHELL_TYPE_GLOBAL))
 
20
#define SHELL_IS_GLOBAL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_GLOBAL))
 
21
#define SHELL_GLOBAL_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_GLOBAL, ShellGlobalClass))
 
22
 
 
23
struct _ShellGlobalClass
 
24
{
 
25
  GObjectClass parent_class;
 
26
};
 
27
 
 
28
GType shell_global_get_type (void) G_GNUC_CONST;
 
29
 
 
30
ShellGlobal   *shell_global_get                       (void);
 
31
 
 
32
ClutterStage  *shell_global_get_stage                 (ShellGlobal *global);
 
33
MetaScreen    *shell_global_get_screen                (ShellGlobal *global);
 
34
GdkScreen     *shell_global_get_gdk_screen            (ShellGlobal *global);
 
35
MetaDisplay   *shell_global_get_display               (ShellGlobal *global);
 
36
GList         *shell_global_get_window_actors         (ShellGlobal *global);
 
37
GSettings     *shell_global_get_settings              (ShellGlobal *global);
 
38
guint32        shell_global_get_current_time          (ShellGlobal *global);
 
39
 
 
40
 
 
41
/* Input/event handling */
 
42
gboolean shell_global_begin_modal            (ShellGlobal         *global,
 
43
                                              guint32             timestamp,
 
44
                                              MetaModalOptions    options);
 
45
void     shell_global_end_modal              (ShellGlobal         *global,
 
46
                                              guint32              timestamp);
 
47
void     shell_global_freeze_keyboard        (ShellGlobal         *global,
 
48
                                              guint32              timestamp);
 
49
 
 
50
typedef enum {
 
51
  SHELL_STAGE_INPUT_MODE_NONREACTIVE,
 
52
  SHELL_STAGE_INPUT_MODE_NORMAL,
 
53
  SHELL_STAGE_INPUT_MODE_FOCUSED,
 
54
  SHELL_STAGE_INPUT_MODE_FULLSCREEN
 
55
} ShellStageInputMode;
 
56
 
 
57
void     shell_global_set_stage_input_mode   (ShellGlobal         *global,
 
58
                                              ShellStageInputMode  mode);
 
59
void     shell_global_set_stage_input_region (ShellGlobal         *global,
 
60
                                              GSList              *rectangles);
 
61
 
 
62
/* X utilities */
 
63
typedef enum {
 
64
  SHELL_CURSOR_DND_IN_DRAG,
 
65
  SHELL_CURSOR_DND_UNSUPPORTED_TARGET,
 
66
  SHELL_CURSOR_DND_MOVE,
 
67
  SHELL_CURSOR_DND_COPY,
 
68
  SHELL_CURSOR_POINTING_HAND,
 
69
  SHELL_CURSOR_CROSSHAIR
 
70
} ShellCursor;
 
71
 
 
72
void    shell_global_set_cursor              (ShellGlobal         *global,
 
73
                                              ShellCursor          type);
 
74
void    shell_global_unset_cursor            (ShellGlobal         *global);
 
75
 
 
76
void    shell_global_get_pointer             (ShellGlobal         *global,
 
77
                                              int                 *x,
 
78
                                              int                 *y,
 
79
                                              ClutterModifierType *mods);
 
80
 
 
81
typedef struct {
 
82
  guint glibc_uordblks;
 
83
 
 
84
  guint js_bytes;
 
85
 
 
86
  guint gjs_boxed;
 
87
  guint gjs_gobject;
 
88
  guint gjs_function;
 
89
  guint gjs_closure;
 
90
 
 
91
  /* 32 bit to avoid js conversion problems with 64 bit */
 
92
  guint  last_gc_seconds_ago;
 
93
} ShellMemoryInfo;
 
94
 
 
95
void     shell_global_get_memory_info      (ShellGlobal     *global,
 
96
                                            ShellMemoryInfo *meminfo);
 
97
 
 
98
 
 
99
/* Run-at-leisure API */
 
100
void shell_global_begin_work     (ShellGlobal          *global);
 
101
void shell_global_end_work       (ShellGlobal          *global);
 
102
 
 
103
typedef void (*ShellLeisureFunction) (gpointer data);
 
104
 
 
105
void shell_global_run_at_leisure (ShellGlobal          *global,
 
106
                                  ShellLeisureFunction  func,
 
107
                                  gpointer              user_data,
 
108
                                  GDestroyNotify        notify);
 
109
 
 
110
 
 
111
/* Misc utilities / Shell API */
 
112
void     shell_global_sync_pointer              (ShellGlobal  *global);
 
113
 
 
114
GAppLaunchContext *
 
115
         shell_global_create_app_launch_context (ShellGlobal  *global);
 
116
 
 
117
void     shell_global_play_theme_sound          (ShellGlobal *global,
 
118
                                                 guint        id,
 
119
                                                 const char   *name,
 
120
                                                 const char   *description,
 
121
                                                 ClutterEvent *for_event);
 
122
void     shell_global_play_theme_sound_full     (ShellGlobal  *global,
 
123
                                                 guint         id,
 
124
                                                 const char   *name,
 
125
                                                 const char   *description,
 
126
                                                 ClutterEvent *for_event,
 
127
                                                 const char   *application_id,
 
128
                                                 const char   *application_name);
 
129
void     shell_global_play_sound_file           (ShellGlobal  *global,
 
130
                                                 guint         id,
 
131
                                                 const char   *file_name,
 
132
                                                 const char   *description,
 
133
                                                 ClutterEvent *for_event);
 
134
void     shell_global_play_sound_file_full      (ShellGlobal  *global,
 
135
                                                 guint         id,
 
136
                                                 const char   *file_name,
 
137
                                                 const char   *description,
 
138
                                                 ClutterEvent *for_event,
 
139
                                                 const char   *application_id,
 
140
                                                 const char   *application_name);
 
141
 
 
142
void     shell_global_cancel_theme_sound        (ShellGlobal  *global,
 
143
                                                 guint         id);
 
144
 
 
145
void     shell_global_notify_error              (ShellGlobal  *global,
 
146
                                                 const char   *msg,
 
147
                                                 const char   *details);
 
148
 
 
149
void     shell_global_init_xdnd                 (ShellGlobal  *global);
 
150
 
 
151
void     shell_global_reexec_self               (ShellGlobal  *global);
 
152
 
 
153
const char *     shell_global_get_session_mode  (ShellGlobal  *global);
 
154
 
 
155
void     shell_global_set_runtime_state      (ShellGlobal  *global,
 
156
                                              const char   *property_name,
 
157
                                              GVariant     *variant);
 
158
GVariant * shell_global_get_runtime_state       (ShellGlobal  *global,
 
159
                                                 const char   *property_type,
 
160
                                                 const char   *property_name);
 
161
 
 
162
 
 
163
G_END_DECLS
 
164
 
 
165
#endif /* __SHELL_GLOBAL_H__ */