[Goodies-commits] r6857 - in xfce4-screenshooter/trunk: . src
Jerome Guelfucci
jeromeg at xfce.org
Sat Mar 7 14:04:35 CET 2009
Author: jeromeg
Date: 2009-03-07 13:04:35 +0000 (Sat, 07 Mar 2009)
New Revision: 6857
Modified:
xfce4-screenshooter/trunk/ChangeLog
xfce4-screenshooter/trunk/NEWS
xfce4-screenshooter/trunk/src/main.c
Log:
Add a CLI option to hide the mouse pointer on screenshots.
Modified: xfce4-screenshooter/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter/trunk/ChangeLog 2009-03-06 23:36:53 UTC (rev 6856)
+++ xfce4-screenshooter/trunk/ChangeLog 2009-03-07 13:04:35 UTC (rev 6857)
@@ -1,3 +1,7 @@
+2009-03-07 jeromeg
+
+ * src/main.c: add a CLI option not to capture the mouse pointer.
+
2009-03-05 jeromeg
* Fix a build problem caused by the bumping of the dependencies.
Modified: xfce4-screenshooter/trunk/NEWS
===================================================================
--- xfce4-screenshooter/trunk/NEWS 2009-03-06 23:36:53 UTC (rev 6856)
+++ xfce4-screenshooter/trunk/NEWS 2009-03-07 13:04:35 UTC (rev 6857)
@@ -1,7 +1,7 @@
=== Version x.x.x ===
* Enhancements:
- - Add an option to hide the mouse cursor on screenshots.
+ - Add a CLI option to hide the mouse cursor on screenshots.
=== Version 1.5.1 ===
Modified: xfce4-screenshooter/trunk/src/main.c
===================================================================
--- xfce4-screenshooter/trunk/src/main.c 2009-03-06 23:36:53 UTC (rev 6856)
+++ xfce4-screenshooter/trunk/src/main.c 2009-03-07 13:04:35 UTC (rev 6857)
@@ -31,6 +31,7 @@
gboolean region = FALSE;
gboolean fullscreen = FALSE;
gboolean no_save_dialog = FALSE;
+gboolean hide_mouse = FALSE;
gchar *screenshot_dir;
gchar *application;
gint delay = 0;
@@ -66,6 +67,10 @@
N_("Do not display the save dialog"),
NULL
},
+ { "mouse", 'm', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, &hide_mouse,
+ N_("Do not display the mouse on the screenshot"),
+ NULL
+ },
{ "save", 's', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_FILENAME, &screenshot_dir,
N_("Directory where the screenshot will be saved"),
NULL
@@ -226,6 +231,15 @@
sd->show_save_dialog = 1;
}
+ if (hide_mouse)
+ {
+ sd->show_mouse = 0;
+ }
+ else
+ {
+ sd->show_mouse = 1;
+ }
+
sd->delay = delay;
if (application != NULL)
More information about the Goodies-commits
mailing list