gnome-utils r8176 - trunk/gnome-screenshot
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r8176 - trunk/gnome-screenshot
- Date: Sat, 8 Nov 2008 14:39:44 +0000 (UTC)
Author: cosimoc
Date: Sat Nov 8 14:39:43 2008
New Revision: 8176
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8176&view=rev
Log:
2008-11-08 Cosimo Cecchi <cosimoc gnome org>
* gnome-screenshot.c: (finish_prepare_screenshot):
Simplify the code a bit. Thanks to Paolo Borelli.
Modified:
trunk/gnome-screenshot/ChangeLog
trunk/gnome-screenshot/gnome-screenshot.c
Modified: trunk/gnome-screenshot/gnome-screenshot.c
==============================================================================
--- trunk/gnome-screenshot/gnome-screenshot.c (original)
+++ trunk/gnome-screenshot/gnome-screenshot.c Sat Nov 8 14:39:43 2008
@@ -716,22 +716,22 @@
if (!take_window_shot)
screenshot = screenshot_get_pixbuf (window, include_pointer, FALSE);
else
- screenshot = screenshot_get_pixbuf (window, include_pointer, include_border);
+ {
+ screenshot = screenshot_get_pixbuf (window, include_pointer, include_border);
- if (take_window_shot) {
- switch (border_effect[0])
- {
- case 's': /* shadow */
- screenshot_add_shadow (&screenshot);
- break;
- case 'b': /* border */
- screenshot_add_border (&screenshot);
- break;
- case 'n': /* none */
- default:
- break;
- }
- }
+ switch (border_effect[0])
+ {
+ case 's': /* shadow */
+ screenshot_add_shadow (&screenshot);
+ break;
+ case 'b': /* border */
+ screenshot_add_border (&screenshot);
+ break;
+ case 'n': /* none */
+ default:
+ break;
+ }
+ }
/* release now the lock, it was acquired when we were finding the window */
screenshot_release_lock ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]