comparison src/layout_image.c @ 1580:24ef7b610ed6

Backed out changeset 3d9f5c078521
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 01 May 2009 15:45:54 +0900
parents 3d9f5c078521
children 9a64eda3e020
comparison
equal deleted inserted replaced
1566:3d9f5c078521 1580:24ef7b610ed6
329 AlterType type; 329 AlterType type;
330 330
331 lw = submenu_item_get_data(widget); 331 lw = submenu_item_get_data(widget);
332 type = (AlterType)GPOINTER_TO_INT(data); 332 type = (AlterType)GPOINTER_TO_INT(data);
333 333
334 image_alter_orientation(lw->image, type); 334 image_alter(lw->image, type);
335 } 335 }
336 336
337 static void li_pop_menu_new_cb(GtkWidget *widget, gpointer data) 337 static void li_pop_menu_new_cb(GtkWidget *widget, gpointer data)
338 { 338 {
339 LayoutWindow *lw = data; 339 LayoutWindow *lw = data;
882 if (lw->split_images[i] && lw->split_images[i] != lw->image) 882 if (lw->split_images[i] && lw->split_images[i] != lw->image)
883 image_zoom_set_fill_geometry(lw->split_images[i], vertical); 883 image_zoom_set_fill_geometry(lw->split_images[i], vertical);
884 } 884 }
885 } 885 }
886 886
887 void layout_image_alter_orientation(LayoutWindow *lw, AlterType type) 887 void layout_image_alter(LayoutWindow *lw, AlterType type)
888 { 888 {
889 if (!layout_valid(&lw)) return; 889 if (!layout_valid(&lw)) return;
890 890
891 image_alter_orientation(lw->image, type); 891 image_alter(lw->image, type);
892 } 892 }
893
894 void layout_image_set_desaturate(LayoutWindow *lw, gboolean desaturate)
895 {
896 if (!layout_valid(&lw)) return;
897
898 image_set_desaturate(lw->image, desaturate);
899 }
900
901 gboolean layout_image_get_desaturate(LayoutWindow *lw)
902 {
903 if (!layout_valid(&lw)) return FALSE;
904
905 return image_get_desaturate(lw->image);
906 }
907
908
909 893
910 const gchar *layout_image_get_path(LayoutWindow *lw) 894 const gchar *layout_image_get_path(LayoutWindow *lw)
911 { 895 {
912 if (!layout_valid(&lw)) return NULL; 896 if (!layout_valid(&lw)) return NULL;
913 897