2009-10-24 17:40:13 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#ifndef __SHELL_GLOBAL_PRIVATE_H__
|
|
|
|
#define __SHELL_GLOBAL_PRIVATE_H__
|
|
|
|
|
|
|
|
#include "shell-global.h"
|
|
|
|
|
|
|
|
#include <gjs/gjs.h>
|
|
|
|
|
2011-08-28 05:32:12 +00:00
|
|
|
void _shell_global_init (const char *first_property_name,
|
|
|
|
...);
|
2009-10-28 16:59:01 +00:00
|
|
|
void _shell_global_set_plugin (ShellGlobal *global,
|
2010-10-19 18:55:43 +00:00
|
|
|
MetaPlugin *plugin);
|
2011-02-25 16:20:27 +00:00
|
|
|
|
|
|
|
GjsContext *_shell_global_get_gjs_context (ShellGlobal *global);
|
2009-10-24 17:40:13 +00:00
|
|
|
|
2011-01-05 14:47:27 +00:00
|
|
|
gboolean _shell_global_check_xdnd_event (ShellGlobal *global,
|
|
|
|
XEvent *xev);
|
2011-08-24 14:06:13 +00:00
|
|
|
|
2011-06-21 14:09:09 +00:00
|
|
|
void _shell_global_set_session_type (ShellGlobal *global,
|
|
|
|
ShellSessionType session_type);
|
|
|
|
|
2011-08-24 14:06:13 +00:00
|
|
|
/* Used for async screenshot grabbing */
|
|
|
|
typedef struct _screenshot_data {
|
|
|
|
ShellGlobal *global;
|
|
|
|
|
|
|
|
char *filename;
|
|
|
|
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
|
2012-01-22 09:57:42 +00:00
|
|
|
cairo_surface_t *image;
|
|
|
|
|
2011-08-24 14:06:13 +00:00
|
|
|
ShellGlobalScreenshotCallback callback;
|
|
|
|
} _screenshot_data;
|
|
|
|
|
2009-10-24 17:40:13 +00:00
|
|
|
#endif /* __SHELL_GLOBAL_PRIVATE_H__ */
|