Mercurial > geeqie
diff src/layout_image.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 | 7302ff300a52 |
children | 0cd2268f500b |
line wrap: on
line diff
--- a/src/layout_image.c Sat Apr 25 20:55:11 2009 +0000 +++ b/src/layout_image.c Sat Apr 25 22:08:09 2009 +0000 @@ -331,7 +331,7 @@ lw = submenu_item_get_data(widget); type = (AlterType)GPOINTER_TO_INT(data); - image_alter(lw->image, type); + image_alter_orientation(lw->image, type); } static void li_pop_menu_new_cb(GtkWidget *widget, gpointer data) @@ -884,13 +884,29 @@ } } -void layout_image_alter(LayoutWindow *lw, AlterType type) +void layout_image_alter_orientation(LayoutWindow *lw, AlterType type) +{ + if (!layout_valid(&lw)) return; + + image_alter_orientation(lw->image, type); +} + +void layout_image_set_desaturate(LayoutWindow *lw, gboolean desaturate) { if (!layout_valid(&lw)) return; - image_alter(lw->image, type); + image_set_desaturate(lw->image, desaturate); } +gboolean layout_image_get_desaturate(LayoutWindow *lw) +{ + if (!layout_valid(&lw)) return FALSE; + + return image_get_desaturate(lw->image); +} + + + const gchar *layout_image_get_path(LayoutWindow *lw) { if (!layout_valid(&lw)) return NULL;