2002-07-10 Jens Finke <jens@triq.net>
Fixes#85690.
* libeog/eog-file-selection.[ch]: New files. An extended
GtkFileSelection dialog, which shows the list of supported file
types.
* libeog/Makefile.am (SOURCES): Added new files.
* shell/eog-window.c (eog_window_open_dialog): Use new file
selector.
* viewer/eog-image-view.c (filesel_ok_cb): Removed.
(save_image_as_file): New function.
(filesel_cancel_cb): Removed.
(verb_SaveAs_cb): Use new file selector.
2002-07-09 Federico Mena Quintero <federico@ximian.com>
* idl/Eog.idl (GNOME::EOG::Interpolation): Removed tiles
interpolation, as it does not make sense for EOG.
* viewer/eog-image-view.c (listener_Interpolation_cb): Likewise.
(ui_id_strings_interp_type): Likewise.
(eog_image_view_get_prop): Likewise.
(eog_image_view_set_prop): Likewise.
* viewer/eog-preview.c (eog_preview_update): Likewise.
* viewer/preferences.c (prefs_interpolation): Likewise.
* viewer/eog-image-view-ui.xml: Likewise.
* viewer/eog-image-view.c (eog_image_view_create_ui): Use the
computed number of elements for the interpolation types array, not
a hardcoded constant.
(eog_image_view_create_ui): Convert the interpolation value to a
menu index before using it.
(interp_type_changed_cb): Likewise.
* viewer/eog-control.c (eog_control_construct): Do not add a
property control interface. The preferences code is highly
convoluted and broken, so I'm removing it.
* viewer/eog-imagew-view.c (eog_image_view_get_property_control):
Removed.
* viewer/Makefile.am (eog_image_viewer_SOURCES): Removed
preferences.[ch].
* viewer/preferences.[ch]: Removed.
* shell/eog-shell-ui.xml: Removed the Edit/Preferernces item.
* shell/eog-window.c: Removed the preferences machinery.
* shell/Makefile.am (eog_SOURCES): Removed eog-preferences.[ch].
2002-06-26 Federico Mena Quintero <federico@ximian.com>
Fixes#86469.
* shell/eog-window.c (eog_window_close_all): New function.
(verb_FileExit_cb): Use eog_window_close_all(); this function was
fantastically buggy.
* shell/main.c (client_die_cb): Use eog_window_close_all().
2002-06-26 Yanko Kaneti <yaneti@declera.com>
2002-06-25 Federico Mena Quintero <federico@ximian.com>
Fixes#75889.
* viewer/eog-image-view.c (setup_item_factory): Set up a
GtkItemFactory for the image view's popup menu.
(image_view_button_press_event_cb): Added a button press handler
so that we can present a popup menu.
(eog_image_view_class_init): Created a "close_item_activated"
signal.
* viewer/eog-full-screen.c (eog_full_screen_new): Connect to the
"close_item_activated" signal of the image view.
* libeog/image-view.c (image_view_button_press_event): Use
IMAGE_VIEW_ZOOM_MULTIPLIER.
(image_view_key_press_event): Likewise.
(image_view_set_zoom): Added arguments to specify the zoom anchor.
(image_view_set_zoom): Queue a resize even if we did not need to
change the zoom factor. This makes things work even when 1:1 and
then zoom-fit would produce the same results.
2002-06-21 Jens Finke <jens@triq.net>
Fixes#72352 and #75713.
* libeog/ui-image.c (ui_image_fit_to_screen): Removed.
* shell/eog-window.c (adapt_shell_size_to_control): New function
which tries to read the desired size of the control and to adapt
the size of the eog window to it.
(add_control_to_ui): Call adapt_shell_size_to_control.
* viewer/eog-image-view.c (image_set_image_cb): Don't call
ui_image_fit_to_screen.
2002-06-20 Federico Mena Quintero <federico@ximian.com>
* libeog/image-view.c: Removed obsolete comment.
* libeog/GNOME_EOG.server.in: Make the nautilus:view_as_name be
"Image" so that Nautilus will say, "View as Image". Fixes#73651.
2002-06-20 Federico Mena Quintero <federico@ximian.com>
* viewer/eog-image.c (load_image_from_file): Initialize the loader
and rsvg_handle variables, otherwise we'll b0rk if we can't open
the URI. Fixes#85263.
2002-06-13 Federico Mena Quintero <federico@ximian.com>
Fixes#85216.
* shell/eog-window.c (eog_window_destroy): Remove the window from
the window list here, not in eog_window_close().
* shell/main.c (client_die_cb): Use eog_window_close() rather than
gtk_widget_destroy() to close the windows. This will terminate
the main loop when appropriate.