diff --git a/src/shell-screenshot.c b/src/shell-screenshot.c index 792e73749..6295427eb 100644 --- a/src/shell-screenshot.c +++ b/src/shell-screenshot.c @@ -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_object_unref (result); } + +ShellScreenshot * +shell_screenshot_new (void) +{ + return g_object_new (SHELL_TYPE_SCREENSHOT, NULL); +} diff --git a/src/shell-screenshot.h b/src/shell-screenshot.h index 9be1574bd..26b3667ee 100644 --- a/src/shell-screenshot.h +++ b/src/shell-screenshot.h @@ -23,7 +23,7 @@ typedef struct _ShellScreenshotClass ShellScreenshotClass; GType shell_screenshot_get_type (void) G_GNUC_CONST; -ShellScreenGrabber *shell_screenshot_new (void); +ShellScreenshot *shell_screenshot_new (void); typedef void (*ShellScreenshotCallback) (ShellScreenshot *screenshot, gboolean success,