Laurent Monin [Fri, 6 Jun 2008 08:01:19 +0000 (08:01 +0000)]
French translation was updated.
Laurent Monin [Thu, 5 Jun 2008 23:31:22 +0000 (23:31 +0000)]
Fix "No newline at end of file" warning.
Vladimir Nadvornik [Thu, 5 Jun 2008 18:43:44 +0000 (18:43 +0000)]
use new notification in vficon
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.
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.
Vladimir Nadvornik [Wed, 4 Jun 2008 21:12:47 +0000 (21:12 +0000)]
new notification system (used only in vflist for now)
Vladimir Nadvornik [Tue, 3 Jun 2008 19:44:19 +0000 (19:44 +0000)]
replaced directory path with FileData* dir_fd
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.
Laurent Monin [Tue, 3 Jun 2008 13:54:22 +0000 (13:54 +0000)]
Replace hardcoded collection filename extension by a macro (GQ_COLLECTION_EXT).
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.
Laurent Monin [Tue, 3 Jun 2008 09:41:00 +0000 (09:41 +0000)]
filelist_read_real(): optimize and clean up.
Laurent Monin [Tue, 3 Jun 2008 09:03:33 +0000 (09:03 +0000)]
Reduce indentation level.
Laurent Monin [Tue, 3 Jun 2008 08:57:46 +0000 (08:57 +0000)]
Reduce indentation level.
Laurent Monin [Tue, 3 Jun 2008 08:53:53 +0000 (08:53 +0000)]
collection_table_find_data_by_coord(): tidy up.
Laurent Monin [Tue, 3 Jun 2008 07:37:24 +0000 (07:37 +0000)]
vflist_maint(): only allocate memory and compare strings if needed.
Laurent Monin [Tue, 3 Jun 2008 07:32:13 +0000 (07:32 +0000)]
layout_real_renamed(), layout_real_removed(), layout_real_moved():
simplify code.
Vladimir Nadvornik [Sat, 31 May 2008 19:46:26 +0000 (19:46 +0000)]
do not change original FileData on copy
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
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
Vladimir Nadvornik [Fri, 30 May 2008 20:13:16 +0000 (20:13 +0000)]
fixed thumb index (thumbnails are shown again)
Vladimir Nadvornik [Fri, 30 May 2008 19:53:52 +0000 (19:53 +0000)]
simplified vflist_populate_view
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.
Laurent Monin [Fri, 30 May 2008 08:36:23 +0000 (08:36 +0000)]
Make utf8_validate_or_convert() to always allocate a new string.
Laurent Monin [Fri, 30 May 2008 07:20:25 +0000 (07:20 +0000)]
Check for existing editor command using is_valid_editor_command().
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.
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.
Vladimir Nadvornik [Wed, 28 May 2008 22:12:10 +0000 (22:12 +0000)]
improved infrastructure for tracing changes, optimized vflist_populate_view
Vladimir Nadvornik [Tue, 27 May 2008 18:46:34 +0000 (18:46 +0000)]
measure time of filelist update
Vladimir Nadvornik [Tue, 27 May 2008 18:37:15 +0000 (18:37 +0000)]
another fix in notification
Vladimir Nadvornik [Mon, 26 May 2008 18:32:04 +0000 (18:32 +0000)]
Fix histogram grid - 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
Vladimir Nadvornik [Mon, 26 May 2008 17:06:30 +0000 (17:06 +0000)]
fixed bug in notification code
Laurent Monin [Sun, 25 May 2008 20:17:07 +0000 (20:17 +0000)]
Tidy up: indentation fixes, typo fixes, ...
Laurent Monin [Sun, 25 May 2008 19:54:00 +0000 (19:54 +0000)]
Typo fix.
Laurent Monin [Sun, 25 May 2008 19:13:04 +0000 (19:13 +0000)]
Typo fix.
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.
Vladimir Nadvornik [Sat, 24 May 2008 22:44:18 +0000 (22:44 +0000)]
rewritten utilops.h:
- better integration of external commands
- filter commands
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.
Vladimir Nadvornik [Sat, 24 May 2008 09:18:09 +0000 (09:18 +0000)]
improved filedata interface
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.
Laurent Monin [Fri, 23 May 2008 23:18:40 +0000 (23:18 +0000)]
Silent few warnings that appeared when using --disable-exiv2 configure option.
Laurent Monin [Fri, 23 May 2008 22:57:51 +0000 (22:57 +0000)]
French translation was updated.
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.
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).
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.
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.
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.
Laurent Monin [Thu, 22 May 2008 23:22:12 +0000 (23:22 +0000)]
Pass ConfOptions * to save_options() and load_options().
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.
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.
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().
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().
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.
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.
Laurent Monin [Thu, 22 May 2008 11:28:35 +0000 (11:28 +0000)]
Comment out unused static function extension_truncate().
Laurent Monin [Thu, 22 May 2008 11:27:43 +0000 (11:27 +0000)]
Fix up some types, make some signed vs unsigned warnings quiet.
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.
Laurent Monin [Thu, 22 May 2008 09:22:29 +0000 (09:22 +0000)]
French translation was updated.
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.
Laurent Monin [Thu, 22 May 2008 08:49:52 +0000 (08:49 +0000)]
Use a struct to handle editor's properties.
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.
Laurent Monin [Wed, 21 May 2008 11:46:19 +0000 (11:46 +0000)]
Replace hardcoded "/" by G_DIR_SEPARATOR_S where applicable.
Laurent Monin [Wed, 21 May 2008 11:45:29 +0000 (11:45 +0000)]
Use g_build_filename().
Laurent Monin [Wed, 21 May 2008 11:07:23 +0000 (11:07 +0000)]
Use G_DIR_SEPARATOR where applicable.
Laurent Monin [Wed, 21 May 2008 11:00:13 +0000 (11:00 +0000)]
Use G_DIR_SEPARATOR_S where applicable.
Laurent Monin [Wed, 21 May 2008 10:52:38 +0000 (10:52 +0000)]
Use g_build_filename() and G_DIR_SEPARATOR_S.
Laurent Monin [Wed, 21 May 2008 10:46:33 +0000 (10:46 +0000)]
Use g_build_filename() instead of g_strconcat().
Laurent Monin [Wed, 21 May 2008 10:11:56 +0000 (10:11 +0000)]
tab_completion_do(): use g_build_filename(), G_DIR_SEPARATOR, G_DIR_SEPARATOR_S.
Laurent Monin [Wed, 21 May 2008 09:58:29 +0000 (09:58 +0000)]
tab_completion_popup_cb(): use g_build_filename() and simplify code.
Laurent Monin [Wed, 21 May 2008 09:50:32 +0000 (09:50 +0000)]
Use expand_tilde() instead of simple concatenation, it allows correct expansion
of ~user as well as ~dir.
Laurent Monin [Wed, 21 May 2008 09:30:53 +0000 (09:30 +0000)]
dest_change_dir(): rewrite to use g_build_filename(), g_path_get_dirname() and g_path_get_basename().
Laurent Monin [Wed, 21 May 2008 08:53:51 +0000 (08:53 +0000)]
Fix a segfault occuring when logging an empty message and there is no log window.
Laurent Monin [Wed, 21 May 2008 00:42:14 +0000 (00:42 +0000)]
Use g_build_filename().
Laurent Monin [Wed, 21 May 2008 00:39:16 +0000 (00:39 +0000)]
thumb_std_cache_path(): use g_build_filename() and simplify.
Laurent Monin [Wed, 21 May 2008 00:32:57 +0000 (00:32 +0000)]
Use g_build_filename().
Laurent Monin [Wed, 21 May 2008 00:20:13 +0000 (00:20 +0000)]
Use g_build_filename() where applicable.
Laurent Monin [Wed, 21 May 2008 00:15:41 +0000 (00:15 +0000)]
Use g_build_filename() instead of g_strconcat().
Laurent Monin [Wed, 21 May 2008 00:13:12 +0000 (00:13 +0000)]
Use g_build_filename() and get rid of "root dir fix".
Laurent Monin [Wed, 21 May 2008 00:12:19 +0000 (00:12 +0000)]
Use g_build_filename().
Laurent Monin [Wed, 21 May 2008 00:01:03 +0000 (00:01 +0000)]
Disable unused code:
- cache_maintain_home_dir()
- cache_maintain_dir()
Laurent Monin [Tue, 20 May 2008 23:41:13 +0000 (23:41 +0000)]
Build path using g_build_filename() then calculate its length.
Laurent Monin [Tue, 20 May 2008 23:11:47 +0000 (23:11 +0000)]
Use G_DIR_SEPARATOR_S instead of hardcoded "/".
Laurent Monin [Tue, 20 May 2008 23:07:09 +0000 (23:07 +0000)]
Use g_build_filename() and move location label creation from cache_manager_show() to new cache_manager_location_label().
Laurent Monin [Tue, 20 May 2008 22:47:13 +0000 (22:47 +0000)]
cache_find_location(): use g_build_filename() and move redundant code to new functions.
Laurent Monin [Tue, 20 May 2008 22:22:11 +0000 (22:22 +0000)]
Use g_build_filename().
Laurent Monin [Tue, 20 May 2008 22:13:48 +0000 (22:13 +0000)]
Use size_t instead of gint, it silents a signed vs unsigned warning.
Laurent Monin [Tue, 20 May 2008 22:11:59 +0000 (22:11 +0000)]
Use g_build_filename() instead of g_strconcat().
Laurent Monin [Tue, 20 May 2008 22:09:04 +0000 (22:09 +0000)]
Drop concat_dir_and_file() and use g_build_filename() instead.
Laurent Monin [Tue, 20 May 2008 22:00:14 +0000 (22:00 +0000)]
Use G_DIR_SEPARATOR instead of '/' where applicable.
Laurent Monin [Tue, 20 May 2008 21:51:25 +0000 (21:51 +0000)]
Use g_build_filename() to build paths.
Laurent Monin [Tue, 20 May 2008 20:11:29 +0000 (20:11 +0000)]
Do not use glib posix wrappers since they were introduced in 2.6
and we want 2.4 compatibility.
Laurent Monin [Tue, 20 May 2008 20:06:11 +0000 (20:06 +0000)]
Use access() instead of g_access() which is only available in 2.8.
Laurent Monin [Tue, 20 May 2008 19:14:36 +0000 (19:14 +0000)]
Use utf-8 charset instead of iso-8859-1.
Minor cleanup.
Vladimir Nadvornik [Tue, 20 May 2008 17:43:37 +0000 (17:43 +0000)]
updated ru.po by Alexandre Prokoudine
Laurent Monin [Tue, 20 May 2008 08:18:30 +0000 (08:18 +0000)]
French translation was updated.
Laurent Monin [Tue, 20 May 2008 08:14:35 +0000 (08:14 +0000)]
Sort out log_printf() vs printf_term() mix up.
Laurent Monin [Tue, 20 May 2008 07:52:49 +0000 (07:52 +0000)]
Use print_term() instead of printf(), since it handles charset conversion
from utf8 to locale if needed.
Laurent Monin [Mon, 19 May 2008 11:09:23 +0000 (11:09 +0000)]
Remove C-specific gcc options from CXXFLAGS.
Add few more warnings.
Laurent Monin [Mon, 19 May 2008 09:27:30 +0000 (09:27 +0000)]
Fix some incomplete initialization warnings.
Laurent Monin [Mon, 19 May 2008 08:46:37 +0000 (08:46 +0000)]
depreceated -> deprecated