[gnome-screenshot] screenshot: update for new shell Screenshot API
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] screenshot: update for new shell Screenshot API
- Date: Thu, 26 Jan 2012 00:19:44 +0000 (UTC)
commit a77f711ce8c62bfa01c45c83a8ceb2e0bd801cf3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jan 25 14:06:02 2012 -0500
screenshot: update for new shell Screenshot API
The shell now can fire the flash for us, use this new feature.
src/screenshot-utils.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/screenshot-utils.c b/src/screenshot-utils.c
index 625a088..32c6ced 100644
--- a/src/screenshot-utils.c
+++ b/src/screenshot-utils.c
@@ -602,22 +602,24 @@ screenshot_get_pixbuf (GdkWindow *window,
if (screenshot_config->take_window_shot)
{
method_name = "ScreenshotWindow";
- method_params = g_variant_new ("(bs)",
+ method_params = g_variant_new ("(bbs)",
screenshot_config->include_border,
+ TRUE,
filename);
}
else if (rectangle != NULL)
{
method_name = "ScreenshotArea";
- method_params = g_variant_new ("(iiiis)",
+ method_params = g_variant_new ("(iiiibs)",
rectangle->x, rectangle->y,
rectangle->width, rectangle->height,
+ TRUE,
filename);
}
else
{
method_name = "Screenshot";
- method_params = g_variant_new ("(s)", filename);
+ method_params = g_variant_new ("(bs)", TRUE, filename);
}
g_dbus_connection_call_sync (connection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]