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:
@ -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
|
||||
|
Reference in New Issue
Block a user