[gnome-shell] screenshot: add missing shell_screenshot_new()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenshot: add missing shell_screenshot_new()
- Date: Tue, 14 Feb 2012 20:58:26 +0000 (UTC)
commit c20503028a5509ca0b6fb0397fff28e560248ed9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Feb 14 15:57:34 2012 -0500
screenshot: add missing shell_screenshot_new()
And fix its declaration.
src/shell-screenshot.c | 6 ++++++
src/shell-screenshot.h | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-screenshot.c b/src/shell-screenshot.c
index 792e737..6295427 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 9be1574..26b3667 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]