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

@@ -19,18 +19,4 @@ gboolean _shell_global_check_xdnd_event (ShellGlobal *global,
void _shell_global_set_session_type (ShellGlobal *global,
ShellSessionType session_type);
/* Used for async screenshot grabbing */
typedef struct _screenshot_data {
ShellGlobal *global;
char *filename;
cairo_surface_t *image;
cairo_rectangle_int_t screenshot_area;
gboolean include_cursor;
ShellGlobalScreenshotCallback callback;
} _screenshot_data;
#endif /* __SHELL_GLOBAL_PRIVATE_H__ */