* eog.glade, shell/eog-preferences.c, shell/eog-preferences.h:
Apply patch from Paolo Borelli <pborelli@katamail.com> to
make preferences and help dialog launch in the center of the
parent window. Closes bug #144631.
* shell/eog-window.c: Patch from Paolo Borelli to fix miscalculated
zoom amount. Closes bug #308910.
* libeog/eog-scroll-view.c, libeog/eog-scroll-view.h,
shell/eog-window.c: Another patch from Paolo Borelli to
desensitize zoom in/out buttons at max/min zoom levels.
2003-04-02 Federico Mena Quintero <federico@ximian.com>
* libeog/eog-scroll-view.c (eog_scroll_view_get_image_size):
"*width = *height = 0", not "width = height = 0".
(NUM_IMAGE_CALLBACKS): Use a macro rather than a hardcoded value
for the number of signals we connect to.
(ZoomMode): Use an enum rather than ints.
(ProgressiveState): Likewise.
(update_scrollbar_values): Use gtk_adjustment_changed() rather
than emitting signals for the adjustments directly.
(set_zoom): Use NULL, not 0, when calling
check_scrollbar_visibility().
(display_key_press_event): Likewise.
(display_map_event): Likewise.
(image_loading_update_cb): Likewise.
(image_loading_finished_cb): Likewise.
(image_changed_cb): Likewise.
(eog_scroll_view_zoom_fit): Likewise.
(eog_scroll_view_set_image): Likewise.
(check_scrollbar_visibility): We don't use the return value
anywhere, so make it return void.
(is_unity_zoom): Take in an EogScrollView, not a private
structure.
(pack_pixbuf): Removed.
(paint_rectangle): Compute the background color correctly for the
TRASNP_BACKGROUND case.
(scroll_to): Use gtk_adjustment_value_changed() rather than
emitting signals for the adjustments directly.
(compute_center_zoom_offsets): Do not allow negative offsets so
the image doesn't creep to the right when we zoom down at the
upper left corner.
(set_zoom_fit): Set the new offsets before emitting the signal.
(display_map_cb): Removed.
(eog_scroll_view_new): Do not make the whole table non-double-buffered.
* libeog/eog-scroll-view.h (TransparencyStyle): Rename
TRANSP_CHECKEDPATTERN to TRANSP_CHECKED.
New eog architecture. Moved more stuff into libeog and basically merged
image-view.[ch] and ui-image.[ch]. The result is eog-scroll-view.[ch].
* libeog/ui-image.[ch],
* libeog/image-view.[ch]: Removed.
* libeog/eog-scroll-view.[ch]: New, basic widget for displaying an
EogImage.
* libeog/eog-image-helper.[ch],
* libeog/eog-image.[ch]: Image model, provides all operations on
an image.
* libeog/eog-full-screen.[ch]: Moved from viewer. Uses a
EogScrollView widget for displaying the image.
* libeog/libeog-marshal.list: New, list of callback marshallers.
* libeog/Makefile.am: SOURES file list updated, added
libeog-marshal.[ch] generation.
* libeog/accessible-image-view.[ch]: Use EogScrollView instead of
ImageView. Fixed indention.
* libeog/eog-pixbuf-util.c (eog_pixbuf_flip_vertical): Free
pixbuf.
* libeog/eog-pixbuf-util.h: Added include guards.
* libeog/zoom.[ch] (zoom_image_has_standard_size): Removed.
* viewer/Makefile.am (SOURCES): Removed everything except main.c
and eog-image-view.[ch]
* viewer/eog-image-view.[ch]: Rewritten. This bonobo object serves
as a simple wrapper for an EogScrollView and EogImage and provides
onyl gui and glue code. It implements the PersistFile, Control and
Zoomable interfaces.
* viewer/main.c (eog_image_viewer_factory): Removed EogImage
bonobo stuff.
* shell/eog-window.c (sb_policy_changed): Removed.
(eog_window_init): Don't register for policy changes.
(adapt_window_size): New function.
(property_changed_cb): New window/width, window/height properties.
(adapt_window_size_to_control): Simplified, call
adapt_window_size.
* configure.in: Bumped version to 2.3.0.