screenshot: add missing shell_screenshot_new()
And fix its declaration.
This commit is contained in:
parent
4516e4cc3b
commit
c20503028a
@ -399,3 +399,9 @@ shell_screenshot_screenshot_window (ShellScreenshot *screenshot,
|
|||||||
g_simple_async_result_run_in_thread (result, write_screenshot_thread, G_PRIORITY_DEFAULT, NULL);
|
g_simple_async_result_run_in_thread (result, write_screenshot_thread, G_PRIORITY_DEFAULT, NULL);
|
||||||
g_object_unref (result);
|
g_object_unref (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShellScreenshot *
|
||||||
|
shell_screenshot_new (void)
|
||||||
|
{
|
||||||
|
return g_object_new (SHELL_TYPE_SCREENSHOT, NULL);
|
||||||
|
}
|
||||||
|
@ -23,7 +23,7 @@ typedef struct _ShellScreenshotClass ShellScreenshotClass;
|
|||||||
|
|
||||||
GType shell_screenshot_get_type (void) G_GNUC_CONST;
|
GType shell_screenshot_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
ShellScreenGrabber *shell_screenshot_new (void);
|
ShellScreenshot *shell_screenshot_new (void);
|
||||||
|
|
||||||
typedef void (*ShellScreenshotCallback) (ShellScreenshot *screenshot,
|
typedef void (*ShellScreenshotCallback) (ShellScreenshot *screenshot,
|
||||||
gboolean success,
|
gboolean success,
|
||||||
|
Loading…
Reference in New Issue
Block a user