diff src/img-view.c @ 82:a4c1b7014e6e

Thu Oct 19 15:20:51 2006 John Ellis <johne@verizon.net> * image.c, typedefs.h: Add ALTER_DESATURATE alteration type. * img-view.c, layout_image.c, layout_util.c, menu.c: Allow to grayscale the display of current image with [Shift]+[G] kyboard shortcut and 'adjust' submenu item. * pixbuf_util.[ch] (pixbuf_desaturate_rect): Implement grayscale function.
author gqview
date Thu, 19 Oct 2006 19:27:20 +0000
parents 04ff0df3ad2f
children ba3c39002a24
line wrap: on
line diff
--- a/src/img-view.c	Thu Oct 19 13:38:52 2006 +0000
+++ b/src/img-view.c	Thu Oct 19 19:27:20 2006 +0000
@@ -413,7 +413,10 @@
 			image_zoom_set_fill_geometry(imd, TRUE);
 			break;
 		case 'R': case 'r':
-			image_reload(imd);
+			if (!event->state & GDK_SHIFT_MASK)
+				{
+				image_reload(imd);
+				}
 			break;
 		case 'S': case 's':
 			if (vw->ss)
@@ -552,6 +555,10 @@
 				image_alter(imd, ALTER_FLIP);
 				stop_signal = TRUE;
 				break;
+			case 'G': case 'g':
+				image_alter(imd, ALTER_DESATURATE);
+				stop_signal = TRUE;
+				break;
 			default:
 				break;
 			}