Version 0.6
-----------
* There's a totally new Bonobo component which uses the core EOG
code to display things (Martin, Michael). The old component has
been moved into Nautilus.
* Requires Bonobo 0.35, GConf 0.12, gnome-print 0.25 and OAF 0.6.2.
2000-08-18 Federico Mena Quintero <federico@helixcode.com>
Another attempt at fixing auto-sizing; it seems to work now.
Maybe GtkScrollFrame is not *that* broken...
* window.c (window_construct): Do not set the default size of the
window.
(window_init): Set the window policy to allow_shrink.
(auto_size): Set the usize of the image view to our preferred size.
(window_open_image_dialog): Add a grab on the dialog so that the
user cannot invoke commands on the window!
(hide_cb): Remove the grab when the dialog is hidden.
(window_open_image_dialog): Sigh. Add an accel group so that
pressing Escape can close the open dialog.
* gtkscrollframe.c (gtk_scroll_frame_size_request): Do pay
attention to the child's requisition; this restores the code to
its original state.
(gtk_scroll_frame_size_allocate): Make sure the the
child_allocation is nonnegative (bugfix merge from Evolution).
* image-view.c (image_view_size_request): Request a size of zero.
* image-view.c (paint_rectangle): Special-case zoom == 1.0 to
unconditionally use GDK_INTERP_NEAREST. Pixops should optimize
this itself, but things seem to be slower if you use other
interpolation types even when the zoom is 1.0. Also,
short-circuit the fastest case to not create a temporary pixbuf
and thus avoid a memcpy().
(request_paint_area): Short-circuit NEAREST interpolation and zoom
== 1.0 to paint synchronously.
(scroll_to): Use request_paint_area() instead of calling
uta_add_rect() directly. This lets us do the short-circuiting
there.
(ImageViewPrivate): Added a second microtile array for
interpolated drawing.
(remove_dirty_region): Free both utas.
(paint_iteration_idle): Handle both utas. This is the core of
two-pass scrolling: when a rectangle is pulled from the first
uta, add it to the second uta.
(scroll_to): Handle both utas.