screenshot: Split into separate file / class

Split the screenshot functionality from ShellGlobal into its own class.

https://bugzilla.gnome.org/show_bug.cgi?id=670086
This commit is contained in:
Adel Gadllah
2012-02-14 20:33:56 +01:00
parent b2ec340f9e
commit 4516e4cc3b
7 changed files with 475 additions and 382 deletions

View File

@ -29,6 +29,7 @@ GType shell_global_get_type (void) G_GNUC_CONST;
ShellGlobal *shell_global_get (void);
ClutterStage *shell_global_get_stage (ShellGlobal *global);
MetaScreen *shell_global_get_screen (ShellGlobal *global);
GdkScreen *shell_global_get_gdk_screen (ShellGlobal *global);
MetaDisplay *shell_global_get_display (ShellGlobal *global);
@ -140,28 +141,6 @@ void shell_global_reexec_self (ShellGlobal *global);
void shell_global_launch_calendar_server (ShellGlobal *global);
typedef void (*ShellGlobalScreenshotCallback) (ShellGlobal *global,
gboolean success,
cairo_rectangle_int_t *screenshot_area);
void shell_global_screenshot_area (ShellGlobal *global,
int x,
int y,
int width,
int height,
const char *filename,
ShellGlobalScreenshotCallback callback);
void shell_global_screenshot_window (ShellGlobal *global,
gboolean include_frame,
gboolean include_cursor,
const char *filename,
ShellGlobalScreenshotCallback callback);
void shell_global_screenshot (ShellGlobal *global,
gboolean include_cursor,
const char *filename,
ShellGlobalScreenshotCallback callback);
typedef enum {
SHELL_SESSION_USER,
SHELL_SESSION_GDM