geeqie.git
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_().

16 years agoMark strings as translatable.
Laurent Monin [Sun, 6 Apr 2008 10:03:54 +0000 (10:03 +0000)]
Mark strings as translatable.

16 years agoImprove remove_trailing_slash() so it allocates no more than
Laurent Monin [Sat, 5 Apr 2008 15:23:39 +0000 (15:23 +0000)]
Improve remove_trailing_slash() so it allocates no more than
needed bytes and remove all trailing slashes instead only one.

16 years agoComment out unused code.
Laurent Monin [Sat, 5 Apr 2008 11:59:29 +0000 (11:59 +0000)]
Comment out unused code.
Geeqie code now compiles cleanly with -Wall gcc option.

16 years agoChange default exif order a bit to move up common and useful
Laurent Monin [Fri, 4 Apr 2008 22:34:55 +0000 (22:34 +0000)]
Change default exif order a bit to move up common and useful
info.

16 years agoRe-add "What to show in properties dialog:" label before the table.
Laurent Monin [Fri, 4 Apr 2008 22:23:36 +0000 (22:23 +0000)]
Re-add "What to show in properties dialog:" label before the table.

16 years agoRename exif preferences tab to "Properties", and name the
Laurent Monin [Fri, 4 Apr 2008 22:12:28 +0000 (22:12 +0000)]
Rename exif preferences tab to "Properties", and name the
subsection "Exif".

16 years agoFix a segfault occuring when enabling debug mode.
Laurent Monin [Fri, 4 Apr 2008 18:50:52 +0000 (18:50 +0000)]
Fix a segfault occuring when enabling debug mode.
At this point il->fd can be null.

16 years agoMake the wmclass value unique among the code by defining
Laurent Monin [Thu, 3 Apr 2008 23:29:14 +0000 (23:29 +0000)]
Make the wmclass value unique among the code by defining
it in main header file as GQ_WMCLASS.
Before this patch, it was set using PACKAGE (="geeqie"),
or by the hardcoded string "Geeqie".
Now all Geeqie windows have the same value for wmclass.

16 years agoInitialize variables, clearing a gcc warning.
Laurent Monin [Thu, 3 Apr 2008 22:39:50 +0000 (22:39 +0000)]
Initialize variables, clearing a gcc warning.

16 years agoAdd missing prototype to header file.
Laurent Monin [Thu, 3 Apr 2008 22:33:28 +0000 (22:33 +0000)]
Add missing prototype to header file.

16 years agoAdd few missing prototypes to header file.
Laurent Monin [Thu, 3 Apr 2008 22:29:20 +0000 (22:29 +0000)]
Add few missing prototypes to header file.

16 years agoDrop a bunch of unused variables.
Laurent Monin [Thu, 3 Apr 2008 22:20:42 +0000 (22:20 +0000)]
Drop a bunch of unused variables.

16 years agoAdd missing #include.
Laurent Monin [Thu, 3 Apr 2008 22:14:37 +0000 (22:14 +0000)]
Add missing #include.

16 years agoRemove unused variables.
Laurent Monin [Thu, 3 Apr 2008 22:13:12 +0000 (22:13 +0000)]
Remove unused variables.

16 years agoAdd missing prototype.
Laurent Monin [Thu, 3 Apr 2008 22:09:36 +0000 (22:09 +0000)]
Add missing prototype.

16 years agoDrop 3 unused variables and comment out 2 unused functions.
Laurent Monin [Thu, 3 Apr 2008 22:06:31 +0000 (22:06 +0000)]
Drop 3 unused variables and comment out 2 unused functions.

16 years agoAdd parenthesis around affection to clear a gcc warning.
Laurent Monin [Thu, 3 Apr 2008 22:03:14 +0000 (22:03 +0000)]
Add parenthesis around affection to clear a gcc warning.

16 years agoFix a signedness warning.
Laurent Monin [Thu, 3 Apr 2008 22:01:08 +0000 (22:01 +0000)]
Fix a signedness warning.

16 years agoMain configuration file was renamed from gqviewrc to geeqierc.
Laurent Monin [Thu, 3 Apr 2008 21:54:23 +0000 (21:54 +0000)]
Main configuration file was renamed from gqviewrc to geeqierc.

16 years agoFix a segfault occuring when using --without-exiv2 and
Laurent Monin [Thu, 3 Apr 2008 21:50:53 +0000 (21:50 +0000)]
Fix a segfault occuring when using --without-exiv2 and
concerning exif stuff.

16 years agoFix missing bit of previous patch.
Laurent Monin [Thu, 3 Apr 2008 21:49:17 +0000 (21:49 +0000)]
Fix missing bit of previous patch.

16 years agoFix two more gcc warnings related to function declarations.
Laurent Monin [Thu, 3 Apr 2008 21:04:19 +0000 (21:04 +0000)]
Fix two more gcc warnings related to function declarations.

16 years agoRemove two unused variables declarations, and add a missing #include.
Laurent Monin [Thu, 3 Apr 2008 20:53:13 +0000 (20:53 +0000)]
Remove two unused variables declarations, and add a missing #include.

16 years agoDrop unused variable.
Laurent Monin [Thu, 3 Apr 2008 20:46:55 +0000 (20:46 +0000)]
Drop unused variable.

16 years agoAdd missing return at the end of editor_command_next_start().
Laurent Monin [Thu, 3 Apr 2008 20:45:55 +0000 (20:45 +0000)]
Add missing return at the end of editor_command_next_start().

16 years agoDrop unused variable.
Laurent Monin [Thu, 3 Apr 2008 20:40:15 +0000 (20:40 +0000)]
Drop unused variable.

16 years agoMake collect_manager_process_action() static.
Laurent Monin [Thu, 3 Apr 2008 20:38:59 +0000 (20:38 +0000)]
Make collect_manager_process_action() static.

16 years agoFix typos in functions names: file_list -> filelist.
Laurent Monin [Thu, 3 Apr 2008 20:34:49 +0000 (20:34 +0000)]
Fix typos in functions names: file_list -> filelist.

16 years agoRemove unused variable declarations.
Laurent Monin [Thu, 3 Apr 2008 20:25:22 +0000 (20:25 +0000)]
Remove unused variable declarations.

16 years agoFix missing header include (filelist.h).
Laurent Monin [Thu, 3 Apr 2008 20:24:20 +0000 (20:24 +0000)]
Fix missing header include (filelist.h).

16 years agoRemove unused variables declarations.
Laurent Monin [Thu, 3 Apr 2008 20:19:16 +0000 (20:19 +0000)]
Remove unused variables declarations.

16 years agoMove tabs code from config_window_create() to new smaller functions.
Laurent Monin [Thu, 3 Apr 2008 20:11:09 +0000 (20:11 +0000)]
Move tabs code from config_window_create() to new smaller functions.
Each tab has now its own function named:
config_tab_general(), config_tab_image(), config_tab_windows(),
config_tab_filtering(), config_tab_editors(), config_tab_exif(),
config_tab_advanced();

16 years agoUse more generic names for some cache manager callback functions.
Laurent Monin [Thu, 3 Apr 2008 18:20:39 +0000 (18:20 +0000)]
Use more generic names for some cache manager callback functions.

16 years agoReplace some occurences of gqview by Geeqie.
Laurent Monin [Thu, 3 Apr 2008 17:34:30 +0000 (17:34 +0000)]
Replace some occurences of gqview by Geeqie.

16 years agoAdd a debug level spinner at the end of Preferences > Advanced.
Laurent Monin [Thu, 3 Apr 2008 17:15:49 +0000 (17:15 +0000)]
Add a debug level spinner at the end of Preferences > Advanced.
One can now enable debug mode without restarting geeqie.
A possibility to disable all debugging code and related options
at compile time was added.

16 years agoFix and simplify thumbnails size combo box related code.
Laurent Monin [Thu, 3 Apr 2008 14:35:03 +0000 (14:35 +0000)]
Fix and simplify thumbnails size combo box related code.
Some variables were unused, code was buggy (spurious entry at
the end of the list). A sanity check for values coming from
rc file was added. Two constants now define the default
thumbnail size.

16 years agoMake the preferences window resizeable, and try to improve
Laurent Monin [Thu, 3 Apr 2008 13:58:20 +0000 (13:58 +0000)]
Make the preferences window resizeable, and try to improve
display of editors tab.

16 years agoTidy up. Fix indentation and missing whitespaces.
Laurent Monin [Thu, 3 Apr 2008 13:24:13 +0000 (13:24 +0000)]
Tidy up. Fix indentation and missing whitespaces.
Make editors table creation code a bit more readable.

16 years agoSetting no limit size to trash directory is now possible using zero as value.
Laurent Monin [Thu, 3 Apr 2008 08:51:32 +0000 (08:51 +0000)]
Setting no limit size to trash directory is now possible using zero as value.
A tooltip was added to the spinner to inform the user of this possibility.
When 0 is set, no remaining/free space check occurs.
Default size of the trash was set to a 128M and maximum size is now 2048MB, which
is more conform to today's standards.
The delete dialog now displays more information:
- if external command will be used
- if safe delete is on, max size and path to the trash
- if safe delete is off

16 years agovarious exif improvements based on patch by Uwe Ohse
Vladimir Nadvornik [Wed, 2 Apr 2008 20:44:40 +0000 (20:44 +0000)]
various exif improvements based on patch by Uwe Ohse
try to compute 35mm focal length

16 years agoMake properties tabs reorderable through drag'n drop.
Laurent Monin [Wed, 2 Apr 2008 12:12:50 +0000 (12:12 +0000)]
Make properties tabs reorderable through drag'n drop.
Order is preserved during the whole session.
When a new properties dialog is open, it uses the last order used.
Currently, order isn't saved to rc file.

16 years agoHonor selection while fullscreen navigation.
Laurent Monin [Wed, 2 Apr 2008 10:40:54 +0000 (10:40 +0000)]
Honor selection while fullscreen navigation.
The behavior is now consistent in full screen and windowed mode.
It fixes the fact that the selection was discarded on "Next".
Patch by Uwe Ohse. Cleanups by Laurent Monin.

16 years agoFix display of image number in properties dialog when more than one image is selected.
Laurent Monin [Tue, 1 Apr 2008 07:42:31 +0000 (07:42 +0000)]
Fix display of image number in properties dialog when more than one image is selected.

16 years agoCustomizable info overlay in fullscreen, based on the patch posted to gqview-devel...
Laurent Monin [Mon, 31 Mar 2008 22:10:25 +0000 (22:10 +0000)]
Customizable info overlay in fullscreen, based on the patch posted to gqview-devel list by Timo on 2007-09-10.

16 years agouse quoted_value everywhere
Vladimir Nadvornik [Mon, 31 Mar 2008 21:09:36 +0000 (21:09 +0000)]
use quoted_value everywhere
simplify parsing of multiple quoted values on one line

16 years agoIndentation and white lines minor fixes.
Laurent Monin [Mon, 31 Mar 2008 07:29:03 +0000 (07:29 +0000)]
Indentation and white lines minor fixes.

16 years agoMove strlen() calls outside the while loop.
Laurent Monin [Sun, 30 Mar 2008 19:26:35 +0000 (19:26 +0000)]
Move strlen() calls outside the while loop.

16 years agoComment out forgotten debugging code.
Laurent Monin [Sun, 30 Mar 2008 14:19:34 +0000 (14:19 +0000)]
Comment out forgotten debugging code.

16 years agoFix two minor compilation warnings.
Laurent Monin [Sun, 30 Mar 2008 14:18:04 +0000 (14:18 +0000)]
Fix two minor compilation warnings.