geeqie.git
16 years agocollection_load(): replace official by limit_failures (and
Laurent Monin [Mon, 14 Apr 2008 22:50:50 +0000 (22:50 +0000)]
collection_load(): replace official by limit_failures (and
invert the tests).

16 years agoIncrease collection_load() buffer size and do not activate
Laurent Monin [Mon, 14 Apr 2008 22:45:53 +0000 (22:45 +0000)]
Increase collection_load() buffer size and do not activate
error limiting for GQview collections.

16 years agoMerge collection_load_only_geometry() into collection_load().
Laurent Monin [Mon, 14 Apr 2008 22:28:29 +0000 (22:28 +0000)]
Merge collection_load_only_geometry() into collection_load().

16 years agoUse flags for collection_load*().
Laurent Monin [Mon, 14 Apr 2008 22:05:47 +0000 (22:05 +0000)]
Use flags for collection_load*().

16 years agoApply exif display config (Never/If set/Always) to pan view too.
Laurent Monin [Sun, 13 Apr 2008 20:33:45 +0000 (20:33 +0000)]
Apply exif display config (Never/If set/Always) to pan view too.

16 years agoRename show_dot_files to show_hidden_files.
Laurent Monin [Sun, 13 Apr 2008 19:21:13 +0000 (19:21 +0000)]
Rename show_dot_files to show_hidden_files.
There is no need to expose the underlying method to hide
files.

16 years agoLet toggle the visibility of hidden files from directories list
Laurent Monin [Sun, 13 Apr 2008 18:56:24 +0000 (18:56 +0000)]
Let toggle the visibility of hidden files from directories list
or tree contextual menu.

16 years agoAdd a button to reset fullscreen info string to default value.
Laurent Monin [Sun, 13 Apr 2008 12:24:42 +0000 (12:24 +0000)]
Add a button to reset fullscreen info string to default value.

16 years agoFix a typo, READ_CHAR() must use value_all.
Laurent Monin [Sun, 13 Apr 2008 12:12:44 +0000 (12:12 +0000)]
Fix a typo, READ_CHAR() must use value_all.

16 years agoUse convenient macros to read options, it will ensure options
Laurent Monin [Sun, 13 Apr 2008 09:10:38 +0000 (09:10 +0000)]
Use convenient macros to read options, it will ensure options
names are matching (in the rc file and internally).

16 years agoSimplify read_*_option() stuff by passing pointer to option value.
Laurent Monin [Sun, 13 Apr 2008 08:36:17 +0000 (08:36 +0000)]
Simplify read_*_option() stuff by passing pointer to option value.
Introduce read_uint_option() to read enum values and read_int_option_clamp()
to read clamped values.

16 years agoPartly rewrite option parser to accept whitespaces at start
Laurent Monin [Sat, 12 Apr 2008 23:59:31 +0000 (23:59 +0000)]
Partly rewrite option parser to accept whitespaces at start
of lines.

16 years agoexif_* -> exif.display.*
Laurent Monin [Sat, 12 Apr 2008 23:41:35 +0000 (23:41 +0000)]
exif_* -> exif.display.*

16 years agoAdd a note in the rc file about special editor slots.
Laurent Monin [Sat, 12 Apr 2008 23:32:08 +0000 (23:32 +0000)]
Add a note in the rc file about special editor slots.

16 years agosidecar_ext -> sidecar.ext
Laurent Monin [Sat, 12 Apr 2008 23:16:41 +0000 (23:16 +0000)]
sidecar_ext -> sidecar.ext

16 years agoUnify names of options between variables and rc file.
Laurent Monin [Sat, 12 Apr 2008 23:07:04 +0000 (23:07 +0000)]
Unify names of options between variables and rc file.

16 years agoUse tree_descend_subdirs everywhere.
Laurent Monin [Sat, 12 Apr 2008 23:02:00 +0000 (23:02 +0000)]
Use tree_descend_subdirs everywhere.

16 years agoUse startup_path_enable everywhere.
Laurent Monin [Sat, 12 Apr 2008 22:22:11 +0000 (22:22 +0000)]
Use startup_path_enable everywhere.

16 years agoRename recent_list_max/open_recent_max to open_recent_list_maxsize.
Laurent Monin [Sat, 12 Apr 2008 22:17:14 +0000 (22:17 +0000)]
Rename recent_list_max/open_recent_max to open_recent_list_maxsize.

16 years agoRename dupe_custom_threshold option to duplicates_similarity_threshold.
Laurent Monin [Sat, 12 Apr 2008 22:10:38 +0000 (22:10 +0000)]
Rename dupe_custom_threshold option to duplicates_similarity_threshold.

16 years agoMove safe_delete* and in place rename options to file_ops
Laurent Monin [Sat, 12 Apr 2008 22:04:29 +0000 (22:04 +0000)]
Move safe_delete* and in place rename options to file_ops
struct.
Re-order rc file a bit.

16 years agoRename option thumbnails.enabled to layout.show_thumbnails as it makes
Laurent Monin [Sat, 12 Apr 2008 21:45:30 +0000 (21:45 +0000)]
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
more sense.

16 years agoRename user_specified_window_background and window_background_color
Laurent Monin [Sat, 12 Apr 2008 21:38:55 +0000 (21:38 +0000)]
Rename user_specified_window_background and window_background_color
to image.use_custom_border_color and image.border_color.
Rename pref_background_color_set_cb() to pref_color_button_set_cb().
Rename pref_colorbutton_new() to pref_color_button_new().

16 years agoRename window options (moved to layout) and re-order rc file.
Laurent Monin [Sat, 12 Apr 2008 19:33:59 +0000 (19:33 +0000)]
Rename window options (moved to layout) and re-order rc file.

16 years agoFix bad image option name in the rc file.
Laurent Monin [Sat, 12 Apr 2008 17:20:34 +0000 (17:20 +0000)]
Fix bad image option name in the rc file.

16 years agoFix display bug when using "Limit image size when autofitting" option.
Laurent Monin [Sat, 12 Apr 2008 17:09:20 +0000 (17:09 +0000)]
Fix display bug when using "Limit image size when autofitting" option.

16 years agoBeautify rc file, adding sub-sections titles.
Laurent Monin [Sat, 12 Apr 2008 15:13:00 +0000 (15:13 +0000)]
Beautify rc file, adding sub-sections titles.

16 years agoRename image-related options.
Laurent Monin [Sat, 12 Apr 2008 15:04:58 +0000 (15:04 +0000)]
Rename image-related options.

16 years agoRename thumbnails related options.
Laurent Monin [Sat, 12 Apr 2008 09:41:44 +0000 (09:41 +0000)]
Rename thumbnails related options.

16 years agoRename file filtering options.
Laurent Monin [Sat, 12 Apr 2008 09:12:37 +0000 (09:12 +0000)]
Rename file filtering options.

16 years agoDrop unused stuff.
Laurent Monin [Sat, 12 Apr 2008 08:59:52 +0000 (08:59 +0000)]
Drop unused stuff.

16 years agoRename collection options.
Laurent Monin [Sat, 12 Apr 2008 08:40:02 +0000 (08:40 +0000)]
Rename collection options.

16 years agoRename file sorting options.
Laurent Monin [Sat, 12 Apr 2008 08:35:58 +0000 (08:35 +0000)]
Rename file sorting options.

16 years agoRe-order and try to group options.
Laurent Monin [Sat, 12 Apr 2008 08:28:08 +0000 (08:28 +0000)]
Re-order and try to group options.

16 years agoRename color profile options.
Laurent Monin [Sat, 12 Apr 2008 08:05:44 +0000 (08:05 +0000)]
Rename color profile options.

16 years agoRename slideshow options.
Laurent Monin [Sat, 12 Apr 2008 07:46:01 +0000 (07:46 +0000)]
Rename slideshow options.

16 years agoOnly display defined exif tags by default.
Laurent Monin [Sat, 12 Apr 2008 07:09:19 +0000 (07:09 +0000)]
Only display defined exif tags by default.

16 years agoDrop redundant code.
Laurent Monin [Sat, 12 Apr 2008 07:00:14 +0000 (07:00 +0000)]
Drop redundant code.

16 years agoAdd Exif.Photo.ColorSpace tag in Preferences > Properties > Exif.
Laurent Monin [Sat, 12 Apr 2008 06:42:47 +0000 (06:42 +0000)]
Add Exif.Photo.ColorSpace tag in Preferences > Properties > Exif.
Requested by Frédéric Mantegazza.

16 years agoRationalize fullscreen options naming.
Laurent Monin [Fri, 11 Apr 2008 23:32:22 +0000 (23:32 +0000)]
Rationalize fullscreen options naming.

16 years agooptions_c -> c_options
Laurent Monin [Fri, 11 Apr 2008 23:01:00 +0000 (23:01 +0000)]
options_c -> c_options

16 years agoMove more options to ConfOptions.
Laurent Monin [Fri, 11 Apr 2008 22:52:22 +0000 (22:52 +0000)]
Move more options to ConfOptions.

16 years agoMove file_sort_case_sensitive to ConfOptions.
Laurent Monin [Fri, 11 Apr 2008 22:27:54 +0000 (22:27 +0000)]
Move file_sort_case_sensitive to ConfOptions.

16 years agoAdd a new struct ConfOptions to handle options.
Laurent Monin [Fri, 11 Apr 2008 22:14:36 +0000 (22:14 +0000)]
Add a new struct ConfOptions to handle options.
Changes were made among the code to use only one global var
named "options" of type ConfOptions *.
Initialization takes place in new init_options().

16 years agoMake thumbnail standard fail directory after current application
Laurent Monin [Fri, 11 Apr 2008 20:35:37 +0000 (20:35 +0000)]
Make thumbnail standard fail directory after current application
name and version.

16 years agoDefine drag and drop target string in dnd.h.
Laurent Monin [Fri, 11 Apr 2008 20:01:29 +0000 (20:01 +0000)]
Define drag and drop target string in dnd.h.
Make it use the current name of the application.

16 years agoUse secure save in history_list_save().
Laurent Monin [Fri, 11 Apr 2008 19:43:36 +0000 (19:43 +0000)]
Use secure save in history_list_save().

16 years agoUse secure save in comment_file_write().
Laurent Monin [Fri, 11 Apr 2008 17:11:14 +0000 (17:11 +0000)]
Use secure save in comment_file_write().

16 years agoSecure save now unlinks temporary file on error by default.
Laurent Monin [Fri, 11 Apr 2008 16:46:21 +0000 (16:46 +0000)]
Secure save now unlinks temporary file on error by default.
It will prevent left-behind temporary files, but also prevent
potential data recovery from partially written files (it
should not be a problem here).

16 years agoUse secure save feature when saving collections.
Laurent Monin [Fri, 11 Apr 2008 16:04:37 +0000 (16:04 +0000)]
Use secure save feature when saving collections.

16 years agoPreserve permissions of the destination file when using secure save.
Laurent Monin [Fri, 11 Apr 2008 16:02:33 +0000 (16:02 +0000)]
Preserve permissions of the destination file when using secure save.

16 years agoRevert part of the previous patch, let the caller take care
Laurent Monin [Fri, 11 Apr 2008 15:27:08 +0000 (15:27 +0000)]
Revert part of the previous patch, let the caller take care
of calling path_from_utf8().

16 years agoUse path_from_utf8() on the passed filename.
Laurent Monin [Fri, 11 Apr 2008 14:27:55 +0000 (14:27 +0000)]
Use path_from_utf8() on the passed filename.
Add const attribute.

16 years agoui_icons.h and icons_inline.h depend on gdk-pixbuf-csource,
Laurent Monin [Fri, 11 Apr 2008 13:07:48 +0000 (13:07 +0000)]
ui_icons.h and icons_inline.h depend on gdk-pixbuf-csource,
so add a test for it in configure.
Wrap generated headers files with #ifdef/#endif and add
a comment related to their auto-generated nature.
Make the generation itself quiet, but display a message
on error.
Make these targets depend on respective Makefile.in.

16 years agoMove secure save code to its own files: secure_save.{c,h}.
Laurent Monin [Fri, 11 Apr 2008 12:31:32 +0000 (12:31 +0000)]
Move secure save code to its own files: secure_save.{c,h}.

16 years agoAdd missing #ifdef/#endif.
Laurent Monin [Fri, 11 Apr 2008 12:25:36 +0000 (12:25 +0000)]
Add missing #ifdef/#endif.

16 years agoEnsure that gcc flag -Wall is set.
Laurent Monin [Fri, 11 Apr 2008 10:46:52 +0000 (10:46 +0000)]
Ensure that gcc flag -Wall is set.

16 years agoSilent some gcc warnings.
Laurent Monin [Fri, 11 Apr 2008 10:45:37 +0000 (10:45 +0000)]
Silent some gcc warnings.

16 years agoPrevent multiple insertion of the same file in a collection.
Laurent Monin [Fri, 11 Apr 2008 09:02:20 +0000 (09:02 +0000)]
Prevent multiple insertion of the same file in a collection.
Use a hash table to speed up existence tests.

16 years agoOnly display these messages if debug mode is enabled.
Laurent Monin [Fri, 11 Apr 2008 08:10:40 +0000 (08:10 +0000)]
Only display these messages if debug mode is enabled.

16 years agofixed dates in pan-calendar
Vladimir Nadvornik [Thu, 10 Apr 2008 19:27:42 +0000 (19:27 +0000)]
fixed dates in pan-calendar

16 years agoFix fCamera even more.
Laurent Monin [Thu, 10 Apr 2008 12:07:34 +0000 (12:07 +0000)]
Fix fCamera even more.

16 years agoDo not display ... if not truncated.
Laurent Monin [Thu, 10 Apr 2008 11:31:20 +0000 (11:31 +0000)]
Do not display ... if not truncated.

16 years agoAdd the possibility to truncate overlay infos displayed:
Laurent Monin [Thu, 10 Apr 2008 10:43:15 +0000 (10:43 +0000)]
Add the possibility to truncate overlay infos displayed:
%fCamera:20% will truncate data displayed to 20 characters
and add 3 dots at the end.
For example, %name% -> some_file, %name:4% -> some...

16 years agoFix broken remove_common_prefix(), fCamera didn't display model as it should.
Laurent Monin [Thu, 10 Apr 2008 00:09:43 +0000 (00:09 +0000)]
Fix broken remove_common_prefix(), fCamera didn't display model as it should.

16 years agoResync .po files. French translation was updated (100% made).
Laurent Monin [Wed, 9 Apr 2008 22:47:43 +0000 (22:47 +0000)]
Resync .po files. French translation was updated (100% made).

16 years agoAdd 3 missing files to POTFILES.in.
Laurent Monin [Wed, 9 Apr 2008 22:36:43 +0000 (22:36 +0000)]
Add 3 missing files to POTFILES.in.

16 years agoSimple helper script to display translation statistics.
Laurent Monin [Wed, 9 Apr 2008 22:33:06 +0000 (22:33 +0000)]
Simple helper script to display translation statistics.

16 years agoFix a typo: "while fluorescent" -> "white fluorescent"
Laurent Monin [Wed, 9 Apr 2008 22:13:11 +0000 (22:13 +0000)]
Fix a typo: "while fluorescent" -> "white fluorescent"

16 years agoResync .po files. Update french translation.
Laurent Monin [Wed, 9 Apr 2008 22:01:52 +0000 (22:01 +0000)]
Resync .po files. Update french translation.

16 years agofixed crash in pan_calendar
Vladimir Nadvornik [Wed, 9 Apr 2008 21:14:50 +0000 (21:14 +0000)]
fixed crash in pan_calendar

16 years agoimproved histogram drawing
Vladimir Nadvornik [Wed, 9 Apr 2008 20:49:32 +0000 (20:49 +0000)]
improved histogram drawing

16 years agoSimplify and unify gtk_window creation with the help of
Laurent Monin [Wed, 9 Apr 2008 16:37:54 +0000 (16:37 +0000)]
Simplify and unify gtk_window creation with the help of
the new window_new() function, that wraps gtk_window_new()
call.
Subclass, title and icon are set in the same call.

16 years agoReplace occurences of Geeqie / geeqie by constants defined in main.h.
Laurent Monin [Wed, 9 Apr 2008 13:53:01 +0000 (13:53 +0000)]
Replace occurences of Geeqie / geeqie by constants defined in main.h.

16 years agoint -> gint
Laurent Monin [Tue, 8 Apr 2008 23:41:01 +0000 (23:41 +0000)]
int -> gint

16 years agoMake xmp debug info only appears when debug >= 2.
Laurent Monin [Tue, 8 Apr 2008 23:39:27 +0000 (23:39 +0000)]
Make xmp debug info only appears when debug >= 2.

16 years agoEnable image rotation depending on EXIF by default.
Laurent Monin [Tue, 8 Apr 2008 23:33:49 +0000 (23:33 +0000)]
Enable image rotation depending on EXIF by default.
New users shouldn't have to search for it.

16 years agoFix missing header files inclusions.
Laurent Monin [Tue, 8 Apr 2008 23:25:46 +0000 (23:25 +0000)]
Fix missing header files inclusions.

16 years agoGQVIEW_* -> GQ_*
Laurent Monin [Tue, 8 Apr 2008 23:16:12 +0000 (23:16 +0000)]
GQVIEW_* -> GQ_*

16 years agoGQVIEW_H -> MAIN_H
Laurent Monin [Tue, 8 Apr 2008 23:07:09 +0000 (23:07 +0000)]
GQVIEW_H -> MAIN_H

16 years agogqview.h -> main.h
Laurent Monin [Tue, 8 Apr 2008 23:02:33 +0000 (23:02 +0000)]
gqview.h -> main.h

16 years agoRemove obsolete prototype.
Laurent Monin [Tue, 8 Apr 2008 22:31:42 +0000 (22:31 +0000)]
Remove obsolete prototype.

16 years agogqview_remote -> remote_connection
Laurent Monin [Tue, 8 Apr 2008 22:28:55 +0000 (22:28 +0000)]
gqview_remote -> remote_connection
gqview_command_collection -> command_collection
gqview_remote_control() -> remote_control()
gqview_remote_help() -> remote_help()
gqview_remote_command_find() -> remote_command_find()
gqview_remote_build_list() -> remote_build_list()
gqview_remote_cb() -> remote_cb()

16 years agoexit_gqview() renamed to exit_program().
Laurent Monin [Tue, 8 Apr 2008 22:16:56 +0000 (22:16 +0000)]
exit_gqview() renamed to exit_program().
exit_gqview_final() renamed to exit_program_final().

16 years agoAdd support for some Samsung raw files (.pef).
Laurent Monin [Tue, 8 Apr 2008 22:05:04 +0000 (22:05 +0000)]
Add support for some Samsung raw files (.pef).

Samsung raw not strongly differ from Pentax raw.
The only difference in header (manufacturer, camera name and etc).
Tested on Samsung GX-1S and Pentax *ist DS.
Patch by Max Lushnikov.

16 years agoImplement secure rc file saving.
Laurent Monin [Tue, 8 Apr 2008 21:55:58 +0000 (21:55 +0000)]
Implement secure rc file saving.
First data is written to a temporary file, then if nothing
was wrong, this file is renamed to the final name.
This way the risk of corrupted rc file is greatly reduced.
The code is borrowed from ELinks (http://elinks.cz).

16 years agofixed histogram label
Vladimir Nadvornik [Tue, 8 Apr 2008 21:52:04 +0000 (21:52 +0000)]
fixed histogram label

16 years agoFix the "continuous display" of tooltips in the collection view
Laurent Monin [Tue, 8 Apr 2008 21:33:29 +0000 (21:33 +0000)]
Fix the "continuous display" of tooltips in the collection view
(before the tooltip delay occured once, then changing icon to icon never hide the
tooltip again, now the tip is displayed shortly after the cursor moved on the icon,
but disappears when moving cursor to another icon).

Display the full path to the file when Show filename text is on (before nothing
was displayed).

When Show filename text is off, behavior is unchanged, the (short) filename is
displayed.

16 years agoreworked the histogram patch by Uwe Ohse, most of the code is in
Vladimir Nadvornik [Tue, 8 Apr 2008 20:56:50 +0000 (20:56 +0000)]
reworked the histogram patch by Uwe Ohse, most of the code is in
separate files

16 years agofixed file delete notification in view_file_icon
Vladimir Nadvornik [Tue, 8 Apr 2008 17:26:13 +0000 (17:26 +0000)]
fixed file delete notification in view_file_icon

16 years agogtk_notebook_set_tab_reorderable() is only available sinc gtk+ 2.10.
Laurent Monin [Tue, 8 Apr 2008 16:22:21 +0000 (16:22 +0000)]
gtk_notebook_set_tab_reorderable() is only available sinc gtk+ 2.10.

16 years agoMove active variable affectation after the test.
Laurent Monin [Tue, 8 Apr 2008 15:53:03 +0000 (15:53 +0000)]
Move active variable affectation after the test.

16 years agoSimplify layout_color_name_parse() using g_strdelimit().
Laurent Monin [Tue, 8 Apr 2008 14:52:42 +0000 (14:52 +0000)]
Simplify layout_color_name_parse() using g_strdelimit().

16 years agoTidy up, whitespaces and indentation fix.
Laurent Monin [Tue, 8 Apr 2008 14:50:14 +0000 (14:50 +0000)]
Tidy up, whitespaces and indentation fix.

16 years agoRemove dependency on GTK 2.12, reported by John Vodden and Vladimir
Laurent Monin [Tue, 8 Apr 2008 11:53:35 +0000 (11:53 +0000)]
Remove dependency on GTK 2.12, reported by John Vodden and Vladimir
Nadvornik.
gtk_set_tooltip_markup() calls were disabled for GTK+ versions < 2.12.
gdk_color_to_string() was replaced by a equivalent function.

16 years agoAdd the possibility to print file names with path.
Laurent Monin [Mon, 7 Apr 2008 19:47:22 +0000 (19:47 +0000)]
Add the possibility to print file names with path.
A checkbox was added to the Text tab in the Print dialog.

Name checked and Path unchecked  -> filename.jpg
Name checked and Path checked    -> /some/dir/filename.jpg
Name unchecked and Path checked  -> /some/dir/

Patch by Michael Mokeev and Laurent Monin.

16 years agoFix a segfault on fullscreen file deletion reported by Frédéric Mantegazza.
Laurent Monin [Mon, 7 Apr 2008 19:06:17 +0000 (19:06 +0000)]
Fix a segfault on fullscreen file deletion reported by Frédéric Mantegazza.

16 years agoAdd the possibility to match duplicates on the name but ignoring the case.
Laurent Monin [Mon, 7 Apr 2008 18:52:54 +0000 (18:52 +0000)]
Add the possibility to match duplicates on the name but ignoring the case.
A new item was added to types of match combo box in the Find duplicates dialog.

16 years agoDisplay marks in overlay info only if at least one is set.
Laurent Monin [Mon, 7 Apr 2008 08:09:39 +0000 (08:09 +0000)]
Display marks in overlay info only if at least one is set.
Fix a missing g_string_free().

16 years agoMark all exif labels as translatable.
Laurent Monin [Sun, 6 Apr 2008 10:17:41 +0000 (10:17 +0000)]
Mark all exif labels as translatable.
Before only some of them were enclosed by N_().