Release history

Release history — Major changes between versions of GtkImageView.

This chapter lists all major changes that has occured in GtkImageView. Each version is sorted in reverse chronological order.

Major changes in 1.3.0

  • The GtkImageView widget has undergone major internal reconstruction work. I wanted to support making rectangular selections on the view area. Selections are useful for many reasons -- selecting, cutting, cropping etc. I want to support exactly the kind of selection tool that gThumb's image crop dialog has.

    To implement this feature GtkImageView has been made extensible via aggregation. It now uses an interface called GtkIImageTool which encapsulats certain behaviour. This means that it will be possible to extend GtkImageView with other tools too, such as drawing tools.

    The feature isn't completed yet, but I'm checking it in anyway to avoid having to check in a super-large changeset at an even later date. See this blog post for even more details.

    There is currently two tools implemented, GtkImageToolDragger and GtkImageToolSelector. See their respective manual pages.

  • The function gtk_image_view_set_offset_invalidating() was added. The function has the same purpose as gtk_image_view_set_offset(), but queues the redraw by invalidating the whole widget instead of immidiately repainting. The effect is that superfluous redraws can sometimes be avoided at the expense of more cpu usage.

Major changes in 1.2.0

  • The functions gtk_image_view_get_check_colors() and gtk_image_view_set_transp() was added. These additions enable users to define how GtkImageView should render transparent parts of images with an alpha channel. See ./tests/interactive.c for an example.

Major changes in 1.1.0

  • gtk_image_view_set_pixbuf() was changed to accept three parameters. The third parameter is a gboolean that defines whether to reset fit mode or not. It should almost always be TRUE.

    This change replaces the old (and undocumented) gtk_image_view_set_pixbuf_no_repaint() function.