2002-06-12 Federico Mena Quintero <federico@ximian.com>
* shell/main.c (sort_startup_files): Create a list of filenames
that had errors. Call gnome_vfs_file_info_clear() between files.
(handle_cmdline_args): If there are files with errors, show an
error dialog. Fixes bug #84890.
2002-05-30 Federico Mena Quintero <federico@ximian.com>
Fixes#83233. Note that this depends on an updated libbonoboui,
as there was a buglet there that affected this.
* shell/eog-window.c (add_control_to_ui): Do not add the control
frame's widget to the box here, as it will always return the same
socket widget.
(eog_window_construct): Add the control frame's socket to the vbox
here.
2002-05-30 Federico Mena Quintero <federico@ximian.com>
* es.po: Added translator credits. TRANSLATORS: PLEASE CHECK
THAT YOU UPDATE THE ENTRY FOR
"translator_credits-PLEASE_ADD_YOURSELF_HERE". This will
immortalize you in the About box :)
2002-05-30 Federico Mena Quintero <federico@ximian.com>
Fixes#82417.
* libeog/image-view.c (unity_zoom): Oops, this was testing zoomx
twice instead of zoomx and zoomy.
(ImageViewPrivate): Now we only use a single microtile array. It
represents the dirty region for delayed drawing, which is only
used when we are using interpolation --- the non-interpolated and
zoom==1:1 cases are handled synchronously for speed and
smoothness.
(remove_dirty_region): Handle a single microtile.
(paint_iteration_idle): Handle a single microtile. Boy, is this
simpler or what?
(scroll_to): Use gdk_window_scroll() and process exposures
synchronously. This is basically the old EOG magic but now done
cleanly with GDK stuff.
(image_view_set_pixbuf): Remove the dirty region and reset the
scrolling offsets.
(image_view_get_zoom): Return both the X and Y zoom factors.
(image_view_button_press_event): Do not grab the cursor now that
we can use implicit grabs reliably.
(image_view_button_release_event): Do not ungrab the cursor.
* viewer/eog-image-view.c (eog_image_view_get_prop): Take the
square root of the product of the X and Y zoom factors for the
actual zoom factor.
* viewer/eog-control.c (zoomable_set_zoom_level_cb): Likewise.
(zoomable_zoom_in_cb): Likewise.
(zoomable_zoom_out_cb): Likewise.
(zoomable_zoom_to_fit_cb): Likewise.
* viewer/eog-full-screen.c (eog_full_screen_button_press_event):
Removed.
* shell/eog-window.c (verb_HelpAbout_cb): Add the EOG icon and the
documenters.
2002-05-29 Federico Mena Quintero <federico@ximian.com>
* libeog/image-view.h (ScrollType): Removed.
(IMAGE_VIEW_ZOOM_MULTIPLIER): New constant. We use this as the
zoom factor multiplier when zooming. We should be using this
elsewhere in the program as well.
* libeog/image-view.c (ImageViewPrivate): Removed scroll field.
We now mandate two-pass scrolling as it Rules(tm).
(image_view_set_scroll): Removed.
(image_view_get_scroll): Removed.
(image_view_get_property): Removed handling of the scroll
property.
(image_view_set_property): Likewise.
(image_view_class_init): Likewise.
(image_view_instance_init): Initialize all fields. Set up the
rendering defaults here.
(image_view_instance_init): Set ourselves as not double buffered.
(image_view_scroll_event): New handler for scroll events. Fixes
#79351. N.B. The GIMP is on crack in the way it uses the scroll
wheel. Rationale: images are not primarily vertical, and you can
scroll the image around by dragging with some mouse button
anyways. So it is better to leave the scroll wheel for zooming.
(scroll_by): New function to generalize scrolling by some offsets.
(image_view_key_press_event): Use scroll_by().
(scroll_to): Change the adjustments here, if needed, instead of
all over the code. Also, clamp the x/y values initially.
(drag_to): Don't clamp now that scroll_to() does it.
* viewer/eog-image-view.c (eog_image_view_construct): Do not set
the scrolling method.
2002-05-28 Federico Mena Quintero <federico@ximian.com>
* shell/session.c (session_save):
(session_load): gnome-config expects a section name in addition to
the key name. Fixes#82603.
* shell/main.c (client_save_yourself_cb): Set the discard command.