[gimp] plug-ins: screenshot: minor fix for the OS X screencapture command line
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: screenshot: minor fix for the OS X screencapture command line
- Date: Fri, 1 Apr 2016 22:06:32 +0000 (UTC)
commit 0ff6777e2cee26c78b53d8b3de0ad86886b0d377
Author: Michael Natterer <mitch gimp org>
Date: Sat Apr 2 00:04:36 2016 +0200
plug-ins: screenshot: minor fix for the OS X screencapture command line
Add the "show cursor" option only in "shot whole screen" mode.
plug-ins/screenshot/screenshot-osx.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot-osx.c b/plug-ins/screenshot/screenshot-osx.c
index 8544adf..8fdecd0 100644
--- a/plug-ins/screenshot/screenshot-osx.c
+++ b/plug-ins/screenshot/screenshot-osx.c
@@ -88,23 +88,25 @@ screenshot_osx_shoot (ScreenshotValues *shootvals,
break;
case SHOOT_WINDOW:
- mode = "-iwo";
if (shootvals->decorate)
+ mode = "-iwo";
+ else
mode = "-iw";
break;
case SHOOT_ROOT:
mode = " ";
+ if (shootvals->show_cursor)
+ cursor = "-C";
break;
default:
+ g_return_val_if_reached (GIMP_PDB_CALLING_ERROR);
break;
}
delay = g_strdup_printf ("-T %i", shootvals->select_delay);
- if (shootvals->show_cursor)
- cursor = "-C";
filename = gimp_temp_name ("png");
quoted = g_shell_quote (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]