Mercurial > geeqie.yaz
comparison src/image.c @ 334:df868b947aa0
Rename image-related options.
author | zas_ |
---|---|
date | Sat, 12 Apr 2008 15:04:58 +0000 |
parents | 049d6b00cc14 |
children | 0226daf8c30b |
comparison
equal
deleted
inserted
replaced
333:767b53cd9ab7 | 334:df868b947aa0 |
---|---|
425 { | 425 { |
426 ExifData *exif = NULL; | 426 ExifData *exif = NULL; |
427 | 427 |
428 if (!image_get_pixbuf(imd)) return; | 428 if (!image_get_pixbuf(imd)) return; |
429 | 429 |
430 if (options->exif_rotate_enable || | 430 if (options->image.exif_rotate_enable || |
431 (imd->color_profile_enable && imd->color_profile_use_image) ) | 431 (imd->color_profile_enable && imd->color_profile_use_image) ) |
432 { | 432 { |
433 exif = exif_read_fd(imd->image_fd, (imd->color_profile_enable && imd->color_profile_use_image)); | 433 exif = exif_read_fd(imd->image_fd, (imd->color_profile_enable && imd->color_profile_use_image)); |
434 } | 434 } |
435 | 435 |
436 if (options->exif_rotate_enable && exif) | 436 if (options->image.exif_rotate_enable && exif) |
437 { | 437 { |
438 gint orientation; | 438 gint orientation; |
439 | 439 |
440 if (exif_get_integer(exif, "Exif.Image.Orientation", &orientation)) | 440 if (exif_get_integer(exif, "Exif.Image.Orientation", &orientation)) |
441 { | 441 { |
936 imd->collection = cd; | 936 imd->collection = cd; |
937 imd->collection_info = info; | 937 imd->collection_info = info; |
938 | 938 |
939 pixbuf = image_get_pixbuf(imd); | 939 pixbuf = image_get_pixbuf(imd); |
940 | 940 |
941 if (options->enable_read_ahead && imd->image_fd && pixbuf) | 941 if (options->image.enable_read_ahead && imd->image_fd && pixbuf) |
942 { | 942 { |
943 if (imd->il) | 943 if (imd->il) |
944 { | 944 { |
945 /* current image is not finished */ | 945 /* current image is not finished */ |
946 prev_clear = TRUE; | 946 prev_clear = TRUE; |
1088 imd->title = g_strdup(title); | 1088 imd->title = g_strdup(title); |
1089 g_free(imd->title_right); | 1089 g_free(imd->title_right); |
1090 imd->title_right = g_strdup(title_right); | 1090 imd->title_right = g_strdup(title_right); |
1091 imd->title_show_zoom = show_zoom; | 1091 imd->title_show_zoom = show_zoom; |
1092 | 1092 |
1093 if (!options->fit_window) window = NULL; | 1093 if (!options->image.fit_window_to_image) window = NULL; |
1094 | 1094 |
1095 pixbuf_renderer_set_parent((PixbufRenderer *)imd->pr, (GtkWindow *)window); | 1095 pixbuf_renderer_set_parent((PixbufRenderer *)imd->pr, (GtkWindow *)window); |
1096 | 1096 |
1097 image_update_title(imd); | 1097 image_update_title(imd); |
1098 } | 1098 } |
1661 else | 1661 else |
1662 { | 1662 { |
1663 pixbuf_renderer_get_scaled_size((PixbufRenderer *)imd->pr, &width, &height); | 1663 pixbuf_renderer_get_scaled_size((PixbufRenderer *)imd->pr, &width, &height); |
1664 } | 1664 } |
1665 | 1665 |
1666 pb = gdk_pixbuf_scale_simple(pixbuf, width, height, (GdkInterpType)options->zoom_quality); | 1666 pb = gdk_pixbuf_scale_simple(pixbuf, width, height, (GdkInterpType)options->image.zoom_quality); |
1667 | 1667 |
1668 gdk_pixbuf_render_pixmap_and_mask (pb, &pixmap, NULL, 128); | 1668 gdk_pixbuf_render_pixmap_and_mask (pb, &pixmap, NULL, 128); |
1669 gdk_window_set_back_pixmap(rootwindow, pixmap, FALSE); | 1669 gdk_window_set_back_pixmap(rootwindow, pixmap, FALSE); |
1670 gdk_window_clear(rootwindow); | 1670 gdk_window_clear(rootwindow); |
1671 g_object_unref(pb); | 1671 g_object_unref(pb); |
1713 *------------------------------------------------------------------- | 1713 *------------------------------------------------------------------- |
1714 */ | 1714 */ |
1715 | 1715 |
1716 static void image_options_set(ImageWindow *imd) | 1716 static void image_options_set(ImageWindow *imd) |
1717 { | 1717 { |
1718 g_object_set(G_OBJECT(imd->pr), "zoom_quality", options->zoom_quality, | 1718 g_object_set(G_OBJECT(imd->pr), "zoom_quality", options->image.zoom_quality, |
1719 "zoom_2pass", options->two_pass_zoom, | 1719 "zoom_2pass", options->image.zoom_2pass, |
1720 "zoom_expand", options->zoom_to_fit_expands, | 1720 "zoom_expand", options->image.zoom_to_fit_allow_expand, |
1721 "dither_quality", options->dither_quality, | 1721 "dither_quality", options->image.dither_quality, |
1722 "scroll_reset", options->scroll_reset_method, | 1722 "scroll_reset", options->image.scroll_reset_method, |
1723 "cache_display", options->tile_cache_max, | 1723 "cache_display", options->image.tile_cache_max, |
1724 "window_fit", (imd->top_window_sync && options->fit_window), | 1724 "window_fit", (imd->top_window_sync && options->image.fit_window_to_image), |
1725 "window_limit", options->limit_window_size, | 1725 "window_limit", options->image.limit_window_size, |
1726 "window_limit_value", options->max_window_size, | 1726 "window_limit_value", options->image.max_window_size, |
1727 "autofit_limit", options->limit_autofit_size, | 1727 "autofit_limit", options->image.limit_autofit_size, |
1728 "autofit_limit_value", options->max_autofit_size, | 1728 "autofit_limit_value", options->image.max_autofit_size, |
1729 | 1729 |
1730 NULL); | 1730 NULL); |
1731 | 1731 |
1732 pixbuf_renderer_set_parent((PixbufRenderer *)imd->pr, (GtkWindow *)imd->top_window); | 1732 pixbuf_renderer_set_parent((PixbufRenderer *)imd->pr, (GtkWindow *)imd->top_window); |
1733 } | 1733 } |