Mercurial > geeqie
diff src/img-view.c @ 1566:3d9f5c078521
separated Orientation and Grayscale functions
moved Grayscale to Color management menu
author | nadvornik |
---|---|
date | Sat, 25 Apr 2009 22:08:09 +0000 |
parents | c9ed5a43c576 |
children | 1d7941c147be |
line wrap: on
line diff
--- a/src/img-view.c Sat Apr 25 20:55:11 2009 +0000 +++ b/src/img-view.c Sat Apr 25 22:08:09 2009 +0000 @@ -448,16 +448,16 @@ switch (event->keyval) { case 'R': case 'r': - image_alter(imd, ALTER_ROTATE_180); + image_alter_orientation(imd, ALTER_ROTATE_180); break; case 'M': case 'm': - image_alter(imd, ALTER_MIRROR); + image_alter_orientation(imd, ALTER_MIRROR); break; case 'F': case 'f': - image_alter(imd, ALTER_FLIP); + image_alter_orientation(imd, ALTER_FLIP); break; case 'G': case 'g': - image_alter(imd, ALTER_DESATURATE); + image_set_desaturate(imd, !image_get_desaturate(imd)); break; case 'P': case 'p': { @@ -558,10 +558,10 @@ view_overlay_toggle(vw); break; case ']': - image_alter(imd, ALTER_ROTATE_90); + image_alter_orientation(imd, ALTER_ROTATE_90); break; case '[': - image_alter(imd, ALTER_ROTATE_90_CC); + image_alter_orientation(imd, ALTER_ROTATE_90_CC); break; case GDK_Delete: case GDK_KP_Delete: if (options->file_ops.enable_delete_key) @@ -1094,7 +1094,7 @@ type = GPOINTER_TO_INT(data); if (!vw) return; - image_alter(vw->imd, type); + image_alter_orientation(vw->imd, type); } static void view_wallpaper_cb(GtkWidget *widget, gpointer data)