screenshot: add missing shell_screenshot_new()

And fix its declaration.
This commit is contained in:
Cosimo Cecchi 2012-02-14 15:57:34 -05:00
parent 4516e4cc3b
commit c20503028a
2 changed files with 7 additions and 1 deletions

View File

@ -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);
}

View File

@ -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,