2001-06-29 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* eog-full-screen.[c,h]: New file (resurrected from eog/src).
* Makefile.am: Add above files.
* eog-image-view-ui.xml: Separate menus and commands. Add entry for
full screen.
* eog-image-view.c: Callback for full screen. Formatting.
2001-06-27 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* eog-window.c: Unref the property control on destroy. Now, the
eog-image-viewer shuts down after exiting eog. Don't ref the control
widget - it'll get unref'd automatically on container_remove or exit.
All other changes to improve readability (I needed them in order to
discover above problem).
2001-06-27 Lutz Müller <urc8@rz.uni-karlsruhe.de>
Ok, I got it. eog-image-viewer now exits when unused [1]. It basically
boils down to adding stuff with bonobo_object_add_interface only when
ref_count == 1 _and_ not touching it afterwards
(i.e. _not_ bonobo_object_unref). God knows why...
[1] Using "moniker-test -c file:/path/to/file". When using eog, the
eog-image-viewer will still be alive after exiting eog. This has yet
to be investigated.
* eog-control.c: Small changes (see above).
* eog-image-view.c Small changes (see above).
2001-06-27 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* eog-control.c: Don't keep references to the widget (displayed by the
control) and the image - we simply don't need them. Unref the
image-view on destroy - we created it during construction.
2001-06-27 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* main.c: Kill 50% of all lines by using BONOBO_OAF_FACTORY_MULTI.
* eog-image.c: Initialize gnome-vfs here (if needed).
2001-06-27 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* eog-image-view.c: In an attempt to clean up in order to be able
to find the ref-leaks, remove the (unused) BonoboItemContainer.
* Makefile.am: Compile sample-container again (noinst)
* sample-container.c: Rewrite to properly clean up behind. The
eog-image-viewer is still alive after sample-container is done,
therefore the ref-leaks seem to be in the eog-image-viewer and not
in the shell.
2001-06-26 Lutz Müller <urc8@rz.uni-karlsruhe.de>
While searching why eog-image-viewer is still alive even after exiting
eog...
* eog-window.c: Fix two compile warnings (ENABLE_BONOBO_FILESEL),
use BONOBO_EX and bonobo_object_release_unref (makes code more
readable)
2001-06-25 Lutz Müller <urc8@rz.uni-karlsruhe.de>
*configure.in: Check if evolution is there, but let the user override
this check with --without-evolution.
2001-06-25 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* eog-image-view-ui.xml: Add menu entry "Send" for sending images
via email
* eog-image-view.c: (verb_Send_cb): new. Starts a composer and attaches
the current image.
(eog_image_view_create_ui): Connect signal to above function.
2001-06-25 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* acconfig.h: #undef ENABLE_EVOLUTION
* configure.in: Give the user the option to compile with evolution
support (sending images via evolution's composer).
2001-06-14 Jens Finke <jens@gnome.org>
* eog-collection-preferences.c:
(ecp_create_view_page): Merged code from
ecp_create_(layout|color)_page into this new function, so we have
all properties on one page. Also added gconf support for storing
the settings and beautified the dialog.
(ecp_create_color_page), (ecp_create_layout_page): Removed.
(ecp_activate_layout_cb), (ecp_activate_color_cb): Use gconf for
storing settings.
(eog_collection_preferences_create_page): Create only one page
through ecp_create_view_page.
* eog-collection-view.[ch]:
(prop_control_get_prop): Handle only one property page.
(layout_changed_cb), (color_changed_cb): New functions, callbacks
for changes in the gconf database.
(set_configuration_values): New function, obtain values from gconf
database and install listeners to key changes.
(eog_collection_view_construct): Init gconf, use
set_configuration_values.
(eog_collection_view_set_layout_mode),
(eog_collection_view_set_background_color): Removed.
2001-06-13 Stanislav Brabec <utx@penguin.cz>
* configure.in: Undef HAVE_STDDEF_H and HAVE_STDLIB_H in
jpeglib.h test, otherwise file is not sometimes detected.
Still causes warning while compiling in such case.
2001-06-07 jacob berkman <jacob@ximian.com>
* eog-window.c (listener_cb): callback for events emitted by the
file selector
(create_bonobo_file_sel): creates a bonobo file selector. if the
control creation fails (due to the file selector seg faulting or
not being present) a normal gtk one is created
(eog_window_open_dialog): if bonobo filesel is enabled, try to
create one instead of the gtk one
please note that this stuff leaks bonobo references probably
2001-06-05 Federico Mena Quintero <federico@ximian.com>
* Makefile.am: Removed schemadir and schema_DATA since the schemas
are *NOT* to be installed manually; they need to be installed with
GConf's tools.
2001-06-05 Jens Finke <jens@gnome.org>
* POTFILES.in: Please note: The src/ and bonobo/ directories are
dead. I've removed references to files in these dirs again, which
will save you much translation work :-).
2001-06-05 Jens Finke <jens@gnome.org>
To see the effect of these changes go into a directory with a lot
of .png's and type: eog *.png.
* eog-window.c (get_file_control): Renamed to get_viewer_control.
(get_directory_control): Renamed to get_collection_control.
(get_collection_control_list): New function, creates a collection
with a list of multiple URIs.
(add_control_to_ui): New helper function.
(eog_window_open): Use add_control_to_ui helper function.
(eog_window_open_list): New function, opens multiple URIs within a
collection.
* eog-window.h (eog_window_open_list): New function.
* main.c (create_app): Free text uri.
(create_app_list): Opens a new window with a list of URIs.
(make_canonical_uri),
(sort_startup_files),
(open_in_single_windows),
(user_wants_collection),
(handle_cmdline_args): New helper functions.
(main): Improved poptContext handling use handle_cmdline_args.
2001-06-01 Jens Finke <jens@gnome.org>
* Makefile.am (INCLUDES), (eog_collection_LDADD): Added gnome-vfs
flags.
* cimage.[ch] (cimage_new): Create GnomeVFSURI from text uri and
use cimage_new_uri.
(cimage_new_uri): New function, creates an cimage from
GnomeVFSURI.
(cimage_get_uri): Return GnomeVFSURI object.
(cimage_is_directory): Use GnomeVFS functions to determine file
type.
* eog-collection-model.c (loading_context_free): New helper
function.
(directory_visit_cb): New function, opens a single file contained
in a directory.
(real_storage_loading): Renamed to real_dir_loading, uses GnomeVFS
functions now, removed all the BonoboStorage/Stream stuff.
(directory_filter_cb): New function, determines what kind of files
we can handle within a directory.
(real_stream_loading): Renamed to real_file_loading, uses GnomeVFS
functions now, removed all the BonoboStorage/Stream stuff.
(eog_collection_model_set_uri),
(eog_collection_model_set_uri_list),
(prepare_context): Use GnomeVFS functions, removed all the
BonoboStorage/Stream stuff.
* eog-collection-view.c (eog_collection_view_get_prop): Adapted to
cimage changes.
* eog-image-loader.c (load_uri): Use GnomeVFS functions, removed
all the BonoboStorage/Stream stuff.
* eog-item-factory-simple.c (ii_factory_update_item): Adapted to
cimage changes.
* main.c (init_server_factory): Call gnome-vfs-init.
2001-05-31 Jens Finke <jens@gnome.org>
* Makefile.am (INCLUDES): Added $(EXTRA_GNOME_CFLAGS) [all these
extra flags are really a mess, maybe its time for a cleanup].
(eog_collection_LDADD): Added $(EXTAR_GNOME_LIBS).
2001-05-31 Jens Finke <jens@gnome.org>
* Makefile.am: Stop building the sample-container program.
(INCLUDES), (eog_image_viewer_LDADD): Added GnomeVFS flags.
* eog-image-view.c (load_image_from_file): The filename will be
interpreted as an URI now, using gdk_pixbuf_loader system to load
the image.
* main.c (init_server_factory): Added gnome_vfs_init call.
2001-05-30 Jens Finke <jens@gnome.org>
* cimage.[ch]: (cimage_set_dimensions),
(cimage_get_width), (cimage_get_height): New functions.
* eog-collection-model.[ch]:
(eog_collection_model_get_selected_image): New function, which
returns the single selected image.
* eog-collection-view.c:
(eog_collection_view_get_prop): If only a single image is
selected, provide detailed informations about it in the
'window/status' text.
* eog-image-loader.c (loading_finished): Set image dimensions.
2001-05-29 Jens Finke <jens@gnome.org>
* image-view.[ch]: Added new 'zoom_changed' signal.
(image_view_key_pres): Use GDK_plus key as shortcut for zooming
into an image (enables this also for non-american keyboards).
(image_view_set_zoom): Emit 'zoom_changed' signal.
2001-05-29 Jens Finke <jens@gnome.org>
* eog-image-view.c:
(eog_image_view_get_prop): Set only image filename as window
title, add handler for 'window/status' property.
(image_view_zoom_changed_cb): New function, informs listeners to
'window/status' about changed zoom factor.
(eog_image_view_construct): Connect to 'zoom_changed' signal, add
bonobo property 'window/status'.
2001-05-29 Jens Finke <jens@gnome.org>
* eog-image-view.c (eog_image_view_construct): Changed properties
to 'image/width', 'image/height' and 'window/title'. This is more
consistent with the rest of the bonobo property naming scheme.
2001-05-29 Jens Finke <jens@gnome.org>
* eog-collection-model.[ch]:
(eog_collection_model_class_init): Add 'base_uri_changed' signal.
(eog_collection_model_set_uri),
(eog_collection_model_set_uri_list): Emit 'base_uri_changed' if
neccessary.
(eog_collection_model_toggle_select_status),
(select_all_images),
(unselect_all_images): Emit 'selection_changed' signal.
(eog_collection_model_get_selected_length): New function, which
returns the number of selected images.
* eog-collection-view.c: Renamed properties to 'window/title' and
'window/status', which is more consistent with the rest of the
bonobo property naming scheme.
(eog_collection_view_get_prop): View only the base_uri of this
collection, new handler for the PROP_WINDOW_STATUS property.
(update_properties),
(update_status_text),
(update_title_text),
(model_size_changed),
(model_selection_changed),
(model_base_uri_changed): New functions (or slightly renamed),
which introduce a nice async property change client notification.
(eog_collection_view_construct): Connect to new model signals.