geeqie.git
15 years agoOptionnally display directory's date in list view.
Laurent Monin [Fri, 13 Jun 2008 11:11:57 +0000 (11:11 +0000)]
Optionnally display directory's date in list view.
It can be set through Preferences > Advanced > Behavior and
is saved to rc file as layout.show_directory_date option.

15 years agoload_options_from():
Laurent Monin [Thu, 12 Jun 2008 22:43:32 +0000 (22:43 +0000)]
load_options_from():
- do not copy option name and value anywhere, only copy value_all to a separate buffer
- allow more relaxed syntax on read, so we can correctly read option name and value
  even if user made some errors like replacing ':' by '=' or inserting a space before ':'.
- minor aesthetical changes

15 years agoAdd a comment about relative positions of image overlay in the rc file.
Laurent Monin [Thu, 12 Jun 2008 21:21:32 +0000 (21:21 +0000)]
Add a comment about relative positions of image overlay in the rc file.

15 years agoAllow to set image overlay info position through options:
Laurent Monin [Thu, 12 Jun 2008 20:33:51 +0000 (20:33 +0000)]
Allow to set image overlay info position through options:
- image_overlay.common.x
- image_overlay.common.y

For now, there are only editable through rc file.

15 years agoMove some functions from image.[ch] to image-overlay.c and make them static:
Laurent Monin [Thu, 12 Jun 2008 20:17:22 +0000 (20:17 +0000)]
Move some functions from image.[ch] to image-overlay.c and make them static:
- image_overlay_add()
- image_overlay_set()
- image_overlay_remove()
- image_overlay_get() (unused)

15 years agoreverted changes in layout_close made in rev. 890 and 901
Vladimir Nadvornik [Thu, 12 Jun 2008 18:30:33 +0000 (18:30 +0000)]
reverted changes in layout_close made in rev. 890 and 901

15 years agofixed vdtree_sort_cb
Vladimir Nadvornik [Tue, 10 Jun 2008 19:25:21 +0000 (19:25 +0000)]
fixed vdtree_sort_cb

15 years agofixed segfault in vd_rename_cb
Vladimir Nadvornik [Tue, 10 Jun 2008 18:39:19 +0000 (18:39 +0000)]
fixed segfault in vd_rename_cb

15 years agodropped vficon_sync, use vficon_refresh everywhere
Vladimir Nadvornik [Tue, 10 Jun 2008 18:19:17 +0000 (18:19 +0000)]
dropped vficon_sync, use vficon_refresh everywhere

15 years agocollection_from_dnd_data(): simplify and optimize.
Laurent Monin [Tue, 10 Jun 2008 11:55:18 +0000 (11:55 +0000)]
collection_from_dnd_data(): simplify and optimize.

15 years agocollection_info_list_to_dnd_data(): simplify and optimize.
Laurent Monin [Tue, 10 Jun 2008 11:27:35 +0000 (11:27 +0000)]
collection_info_list_to_dnd_data(): simplify and optimize.

15 years agomoved notification to view_file.c
Vladimir Nadvornik [Mon, 9 Jun 2008 20:27:39 +0000 (20:27 +0000)]
moved notification to view_file.c

15 years agorun idle function just once
Vladimir Nadvornik [Mon, 9 Jun 2008 19:43:56 +0000 (19:43 +0000)]
run idle function just once

15 years agouse vficon_refresh for updating
Vladimir Nadvornik [Mon, 9 Jun 2008 19:41:37 +0000 (19:41 +0000)]
use vficon_refresh for updating

15 years agohandle deletion of selected files
Vladimir Nadvornik [Mon, 9 Jun 2008 19:00:47 +0000 (19:00 +0000)]
handle deletion of selected files

15 years agooptimized vficon_refresh_real
Vladimir Nadvornik [Mon, 9 Jun 2008 18:28:28 +0000 (18:28 +0000)]
optimized vficon_refresh_real

15 years agoMinor fixes and add a note about variable declaration.
Laurent Monin [Mon, 9 Jun 2008 10:10:34 +0000 (10:10 +0000)]
Minor fixes and add a note about variable declaration.

15 years agoUse unsigned type for marks since it is used as a bitfield.
Laurent Monin [Mon, 9 Jun 2008 07:14:46 +0000 (07:14 +0000)]
Use unsigned type for marks since it is used as a bitfield.

15 years agofixed saving options on exit
Vladimir Nadvornik [Mon, 9 Jun 2008 07:06:53 +0000 (07:06 +0000)]
fixed saving options on exit

15 years agoTidy up: add/remove white lines, minor code changes.
Laurent Monin [Sun, 8 Jun 2008 23:42:51 +0000 (23:42 +0000)]
Tidy up: add/remove white lines, minor code changes.

15 years agoimproved vficon_populate
Vladimir Nadvornik [Sun, 8 Jun 2008 21:21:13 +0000 (21:21 +0000)]
improved vficon_populate

15 years agovficon_sync speed-up
Vladimir Nadvornik [Sun, 8 Jun 2008 20:24:46 +0000 (20:24 +0000)]
vficon_sync speed-up

15 years agobetter check for notify type
Vladimir Nadvornik [Sun, 8 Jun 2008 19:09:44 +0000 (19:09 +0000)]
better check for notify type

15 years agofixed switching thumbnails in listview on and off - bug 1984825
Vladimir Nadvornik [Sun, 8 Jun 2008 09:25:39 +0000 (09:25 +0000)]
fixed switching thumbnails in listview on and off - bug 1984825

15 years agovarious refresh and notification fixes
Vladimir Nadvornik [Sat, 7 Jun 2008 22:44:17 +0000 (22:44 +0000)]
various refresh and notification fixes

15 years agovarious notification improvements
Vladimir Nadvornik [Sat, 7 Jun 2008 15:08:33 +0000 (15:08 +0000)]
various notification improvements

15 years agouse the new notification for collections
Vladimir Nadvornik [Sat, 7 Jun 2008 10:45:33 +0000 (10:45 +0000)]
use the new notification for collections

15 years agoDisplay Lirc state in config log.
Laurent Monin [Sat, 7 Jun 2008 10:18:30 +0000 (10:18 +0000)]
Display Lirc state in config log.
Re-organize the config log a bit.

15 years agouse new notification in img-view
Vladimir Nadvornik [Sat, 7 Jun 2008 09:36:12 +0000 (09:36 +0000)]
use new notification in img-view

15 years agouse new notification in layout and layout_image
Vladimir Nadvornik [Sat, 7 Jun 2008 09:10:01 +0000 (09:10 +0000)]
use new notification in layout and layout_image

15 years agoused new notification in search.c
Vladimir Nadvornik [Sat, 7 Jun 2008 08:13:22 +0000 (08:13 +0000)]
used new notification in search.c

15 years agoused new notification in dupe.c
Vladimir Nadvornik [Sat, 7 Jun 2008 07:45:08 +0000 (07:45 +0000)]
used new notification in dupe.c

15 years agoused new notification in cache_maint
Vladimir Nadvornik [Fri, 6 Jun 2008 22:34:15 +0000 (22:34 +0000)]
used new notification in cache_maint

15 years agoadded NotifyType
Vladimir Nadvornik [Fri, 6 Jun 2008 22:11:03 +0000 (22:11 +0000)]
added NotifyType

15 years agorealtime file monitor
Vladimir Nadvornik [Fri, 6 Jun 2008 21:50:09 +0000 (21:50 +0000)]
realtime file monitor

15 years agozero-lenght path must be allowed for now
Vladimir Nadvornik [Fri, 6 Jun 2008 20:59:03 +0000 (20:59 +0000)]
zero-lenght path must be allowed for now

15 years agoFrench translation was updated.
Laurent Monin [Fri, 6 Jun 2008 08:01:19 +0000 (08:01 +0000)]
French translation was updated.

15 years agoFix "No newline at end of file" warning.
Laurent Monin [Thu, 5 Jun 2008 23:31:22 +0000 (23:31 +0000)]
Fix "No newline at end of file" warning.

15 years agouse new notification in vficon
Vladimir Nadvornik [Thu, 5 Jun 2008 18:43:44 +0000 (18:43 +0000)]
use new notification in vficon

15 years agoCompare paths using utf8_collate_key() since paths are utf8-encoded.
Laurent Monin [Thu, 5 Jun 2008 09:24:42 +0000 (09:24 +0000)]
Compare paths using utf8_collate_key() since paths are utf8-encoded.
It fixes bug 1959854.

15 years agoUse uft8_collate_key() to sort utf8 strings.
Laurent Monin [Thu, 5 Jun 2008 08:41:02 +0000 (08:41 +0000)]
Use uft8_collate_key() to sort utf8 strings.
Modify file_data_set_path() to sync collate keys and file_data_pool
on path change.

Partially fix bug 1959854.

15 years agonew notification system (used only in vflist for now)
Vladimir Nadvornik [Wed, 4 Jun 2008 21:12:47 +0000 (21:12 +0000)]
new notification system (used only in vflist for now)

15 years agoreplaced directory path with FileData* dir_fd
Vladimir Nadvornik [Tue, 3 Jun 2008 19:44:19 +0000 (19:44 +0000)]
replaced directory path with FileData* dir_fd

15 years agoAllow to modify the aspect of Geeqie through the use of a
Laurent Monin [Tue, 3 Jun 2008 15:54:05 +0000 (15:54 +0000)]
Allow to modify the aspect of Geeqie through the use of a
gtkrc file that may be present in the geeqie rc directory.
Patch by Aldric RENAUDIN and me.

15 years agoReplace hardcoded collection filename extension by a macro (GQ_COLLECTION_EXT).
Laurent Monin [Tue, 3 Jun 2008 13:54:22 +0000 (13:54 +0000)]
Replace hardcoded collection filename extension by a macro (GQ_COLLECTION_EXT).

15 years agoDrop initialization to NULL since filelist_read() will take care of it.
Laurent Monin [Tue, 3 Jun 2008 11:24:16 +0000 (11:24 +0000)]
Drop initialization to NULL since filelist_read() will take care of it.

15 years agofilelist_read_real(): optimize and clean up.
Laurent Monin [Tue, 3 Jun 2008 09:41:00 +0000 (09:41 +0000)]
filelist_read_real(): optimize and clean up.

15 years agoReduce indentation level.
Laurent Monin [Tue, 3 Jun 2008 09:03:33 +0000 (09:03 +0000)]
Reduce indentation level.

15 years agoReduce indentation level.
Laurent Monin [Tue, 3 Jun 2008 08:57:46 +0000 (08:57 +0000)]
Reduce indentation level.

15 years agocollection_table_find_data_by_coord(): tidy up.
Laurent Monin [Tue, 3 Jun 2008 08:53:53 +0000 (08:53 +0000)]
collection_table_find_data_by_coord(): tidy up.

15 years agovflist_maint(): only allocate memory and compare strings if needed.
Laurent Monin [Tue, 3 Jun 2008 07:37:24 +0000 (07:37 +0000)]
vflist_maint(): only allocate memory and compare strings if needed.

15 years agolayout_real_renamed(), layout_real_removed(), layout_real_moved():
Laurent Monin [Tue, 3 Jun 2008 07:32:13 +0000 (07:32 +0000)]
layout_real_renamed(), layout_real_removed(), layout_real_moved():
simplify code.

15 years agodo not change original FileData on copy
Vladimir Nadvornik [Sat, 31 May 2008 19:46:26 +0000 (19:46 +0000)]
do not change original FileData on copy

15 years agoreplaced vflist_maint functions by vflist_refresh - it allows to follow
Vladimir Nadvornik [Sat, 31 May 2008 19:44:41 +0000 (19:44 +0000)]
replaced vflist_maint functions by vflist_refresh - it allows to follow
changes made by external editors more precisely

15 years agovflist_populate_view: better handle selected files that are renamed or deleted
Vladimir Nadvornik [Fri, 30 May 2008 21:41:46 +0000 (21:41 +0000)]
vflist_populate_view: better handle selected files that are renamed or deleted

15 years agofixed thumb index (thumbnails are shown again)
Vladimir Nadvornik [Fri, 30 May 2008 20:13:16 +0000 (20:13 +0000)]
fixed thumb index (thumbnails are shown again)

15 years agosimplified vflist_populate_view
Vladimir Nadvornik [Fri, 30 May 2008 19:53:52 +0000 (19:53 +0000)]
simplified vflist_populate_view

15 years agoUse functions to set editors name and command and ensure they are
Laurent Monin [Fri, 30 May 2008 08:39:52 +0000 (08:39 +0000)]
Use functions to set editors name and command and ensure they are
utf8-encoded.
Previously, non-utf8 strings from rc file caused some issues.

15 years agoMake utf8_validate_or_convert() to always allocate a new string.
Laurent Monin [Fri, 30 May 2008 08:36:23 +0000 (08:36 +0000)]
Make utf8_validate_or_convert() to always allocate a new string.

15 years agoCheck for existing editor command using is_valid_editor_command().
Laurent Monin [Fri, 30 May 2008 07:20:25 +0000 (07:20 +0000)]
Check for existing editor command using is_valid_editor_command().

15 years agoPreserve properties window width and height during session even when
Laurent Monin [Thu, 29 May 2008 07:58:34 +0000 (07:58 +0000)]
Preserve properties window width and height during session even when
layout.save_window_positions is not set.
It restores the pre revision 858 behavior.

15 years agoSave properties window width and height to rc file and restore
Laurent Monin [Thu, 29 May 2008 07:52:05 +0000 (07:52 +0000)]
Save properties window width and height to rc file and restore
them on next session if layout.save_window_positions is set to TRUE.

15 years agoimproved infrastructure for tracing changes, optimized vflist_populate_view
Vladimir Nadvornik [Wed, 28 May 2008 22:12:10 +0000 (22:12 +0000)]
improved infrastructure for tracing changes, optimized vflist_populate_view

15 years agomeasure time of filelist update
Vladimir Nadvornik [Tue, 27 May 2008 18:46:34 +0000 (18:46 +0000)]
measure time of filelist update

15 years agoanother fix in notification
Vladimir Nadvornik [Tue, 27 May 2008 18:37:15 +0000 (18:37 +0000)]
another fix in notification

15 years agoFix histogram grid - patch by Uwe Ohse
Vladimir Nadvornik [Mon, 26 May 2008 18:32:04 +0000 (18:32 +0000)]
Fix histogram grid - patch by Uwe Ohse

15 years agouse fputs instead of printf - patch by Uwe Ohse
Vladimir Nadvornik [Mon, 26 May 2008 18:22:08 +0000 (18:22 +0000)]
use fputs instead of printf - patch by Uwe Ohse

15 years agofixed bug in notification code
Vladimir Nadvornik [Mon, 26 May 2008 17:06:30 +0000 (17:06 +0000)]
fixed bug in notification code

15 years agoTidy up: indentation fixes, typo fixes, ...
Laurent Monin [Sun, 25 May 2008 20:17:07 +0000 (20:17 +0000)]
Tidy up: indentation fixes, typo fixes, ...

15 years agoTypo fix.
Laurent Monin [Sun, 25 May 2008 19:54:00 +0000 (19:54 +0000)]
Typo fix.

15 years agoTypo fix.
Laurent Monin [Sun, 25 May 2008 19:13:04 +0000 (19:13 +0000)]
Typo fix.

15 years agobar_sort_set_filter_cb(): filter_idx was set as uint so get it as uint.
Laurent Monin [Sun, 25 May 2008 19:03:30 +0000 (19:03 +0000)]
bar_sort_set_filter_cb(): filter_idx was set as uint so get it as uint.

15 years agorewritten utilops.h:
Vladimir Nadvornik [Sat, 24 May 2008 22:44:18 +0000 (22:44 +0000)]
rewritten utilops.h:
- better integration of external commands
- filter commands

15 years agoAllow to escape star characters in the template string with a \.
Laurent Monin [Sat, 24 May 2008 20:01:59 +0000 (20:01 +0000)]
Allow to escape star characters in the template string with a \.
One can insert a \ by escaping it with another \.
Fix deletion of empty parts when using | trick.
Append the separator " - " only if data is neither NULL nor empty.
Patch by Uwe Ohse and Laurent Monin.

15 years agoimproved filedata interface
Vladimir Nadvornik [Sat, 24 May 2008 09:18:09 +0000 (09:18 +0000)]
improved filedata interface

16 years agoFix display of libpthread detection.
Laurent Monin [Fri, 23 May 2008 23:40:12 +0000 (23:40 +0000)]
Fix display of libpthread detection.
Fix display of lirc support, do not test for headers if disabled.

16 years agoSilent few warnings that appeared when using --disable-exiv2 configure option.
Laurent Monin [Fri, 23 May 2008 23:18:40 +0000 (23:18 +0000)]
Silent few warnings that appeared when using --disable-exiv2 configure option.

16 years agoFrench translation was updated.
Laurent Monin [Fri, 23 May 2008 22:57:51 +0000 (22:57 +0000)]
French translation was updated.

16 years agoUse the same label for toolbar buttons tooltip than in main menu.
Laurent Monin [Fri, 23 May 2008 22:55:23 +0000 (22:55 +0000)]
Use the same label for toolbar buttons tooltip than in main menu.

16 years agoAdd -Wstrict-prototypes to gcc options only in developer mode
Laurent Monin [Fri, 23 May 2008 15:07:30 +0000 (15:07 +0000)]
Add -Wstrict-prototypes to gcc options only in developer mode
since it clutters the compilation log with unfixable warnings.
Add -Wall in developer mode to display even more warnings.
Fix display of --enable-deprecated at end of configure (yes
and no were inversed).

16 years agoslideshow_next(), slideshow_prev(): move code to common slideshow_move(), reducing...
Laurent Monin [Fri, 23 May 2008 12:27:28 +0000 (12:27 +0000)]
slideshow_next(), slideshow_prev(): move code to common slideshow_move(), reducing code redundancy.

16 years agoMove code from slideshow_timer_reset() to new slideshow_timer_stop() and simplify...
Laurent Monin [Fri, 23 May 2008 12:19:42 +0000 (12:19 +0000)]
Move code from slideshow_timer_reset() to new slideshow_timer_stop() and simplify calls.

16 years agoTry to load a system-wide rc file if any, before per-user rc file.
Laurent Monin [Fri, 23 May 2008 00:20:56 +0000 (00:20 +0000)]
Try to load a system-wide rc file if any, before per-user rc file.
For now, system-wide rc file path is set to /etc/geeqie/geeqierc
(defined by GQ_SYSTEM_WIDE_DIR in main.h).
filter_parse() was modified to replace entries having the same key,
needed since it may be called more than once.

Please test heavily.

16 years agoPass ConfOptions * to save_options() and load_options().
Laurent Monin [Thu, 22 May 2008 23:22:12 +0000 (23:22 +0000)]
Pass ConfOptions * to save_options() and load_options().

16 years agoMove code from save_options() to new save_options_to() which takes
Laurent Monin [Thu, 22 May 2008 23:17:26 +0000 (23:17 +0000)]
Move code from save_options() to new save_options_to() which takes
the destination path as parameter.

16 years agoMove setup_default_options() and sync_options_with_current_state() to options.[ch].
Laurent Monin [Thu, 22 May 2008 23:09:53 +0000 (23:09 +0000)]
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
Pass ConfOptions * to these instead of directly using global variable.
Cleanup #include in main.c.

16 years agoMove code from exit_program_final() to new sync_options_with_current_state().
Laurent Monin [Thu, 22 May 2008 22:49:07 +0000 (22:49 +0000)]
Move code from exit_program_final() to new sync_options_with_current_state().

16 years agoSeparate path building code from options loading code.
Laurent Monin [Thu, 22 May 2008 22:43:07 +0000 (22:43 +0000)]
Separate path building code from options loading code.
Most code of load_options() is moved to new load_options_from().
ExifUIList initialization is moved to setup_default_options().

16 years agoMake shell command and its option rc file options instead of hardcoded strings.
Laurent Monin [Thu, 22 May 2008 20:22:13 +0000 (20:22 +0000)]
Make shell command and its option rc file options instead of hardcoded strings.
This allows users to modify the shell command that execute "editors".
Two new options appear in rc file:
- shell.path (default to "/bin/sh")
- shell.options (default to "-c")

These options can only be changed from the rc file, not at runtime.
Tests are made to check that shell.path is not empty and lead to
an executable file.

16 years agoFix signed vs unsigned warnings.
Laurent Monin [Thu, 22 May 2008 13:00:45 +0000 (13:00 +0000)]
Fix signed vs unsigned warnings.
In most cases, gint was used instead of guint.

16 years agoComment out unused static function extension_truncate().
Laurent Monin [Thu, 22 May 2008 11:28:35 +0000 (11:28 +0000)]
Comment out unused static function extension_truncate().

16 years agoFix up some types, make some signed vs unsigned warnings quiet.
Laurent Monin [Thu, 22 May 2008 11:27:43 +0000 (11:27 +0000)]
Fix up some types, make some signed vs unsigned warnings quiet.

16 years agoModify set_default_image_overlay_template_string() to accept the pointer to
Laurent Monin [Thu, 22 May 2008 10:09:07 +0000 (10:09 +0000)]
Modify set_default_image_overlay_template_string() to accept the pointer to
the string to modify and add a generic function to set template_string value.

16 years agoFrench translation was updated.
Laurent Monin [Thu, 22 May 2008 09:22:29 +0000 (09:22 +0000)]
French translation was updated.

16 years agoIntroduce an helper function that returns the name of an editor.
Laurent Monin [Thu, 22 May 2008 09:12:36 +0000 (09:12 +0000)]
Introduce an helper function that returns the name of an editor.
It helps to reduce code redundancy.

16 years agoUse a struct to handle editor's properties.
Laurent Monin [Thu, 22 May 2008 08:49:52 +0000 (08:49 +0000)]
Use a struct to handle editor's properties.

16 years agoMake stricter match for option's names consisting of a prefix and a number.
Laurent Monin [Wed, 21 May 2008 19:37:18 +0000 (19:37 +0000)]
Make stricter match for option's names consisting of a prefix and a number.
It allows to have names like "prefix_12" and "prefix_something" in the same file.
Using strtol() was wrong since it allowed names like "prefix_-0xa", leading
to unpredictable results. It was wrong too with "prefix_something", which
was equivalent to "prefix_0", instead of being an option of its own.

16 years agoReplace hardcoded "/" by G_DIR_SEPARATOR_S where applicable.
Laurent Monin [Wed, 21 May 2008 11:46:19 +0000 (11:46 +0000)]
Replace hardcoded "/" by G_DIR_SEPARATOR_S where applicable.

16 years agoUse g_build_filename().
Laurent Monin [Wed, 21 May 2008 11:45:29 +0000 (11:45 +0000)]
Use g_build_filename().

16 years agoUse G_DIR_SEPARATOR where applicable.
Laurent Monin [Wed, 21 May 2008 11:07:23 +0000 (11:07 +0000)]
Use G_DIR_SEPARATOR where applicable.