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
Laurent Monin [Mon, 19 May 2008 08:43:11 +0000 (08:43 +0000)]
Typo fixes.
Laurent Monin [Mon, 19 May 2008 08:36:06 +0000 (08:36 +0000)]
Create auxdir if needed.
Laurent Monin [Mon, 19 May 2008 08:24:10 +0000 (08:24 +0000)]
Fix spurious end of line introduced in revision 780.
Petr Ostadal [Mon, 19 May 2008 01:15:17 +0000 (01:15 +0000)]
configure.in was rewritten:
- uses PKG_CHECK_MODULES everywhere
- added --enable-debug (enable debugging support)
- added --enable-developer (developer mode, checks depreceated code ...)
- removed obsoleted INCLUDES from Makefile.am
Fixed src/debug.h (added glib.h).
Fixed src/exiv2.c compilation with libexiv2 v0.15.
Added src/trash.h to src/Makefile.am (fixed generating 'make dist').
Petr Ostadal [Mon, 19 May 2008 00:54:59 +0000 (00:54 +0000)]
Updated CODING (GPL header, macros, svn change-log, ...).
Laurent Monin [Sun, 18 May 2008 21:14:01 +0000 (21:14 +0000)]
Save order of Properties dialog tabs to rc file.
Users of GTK+ <2.10 can set tabs order directly in the rc file,
others can move tabs using drag'n drop.
The option is named properties.tabs_order, its default value
is "123" which is General, Keywords, Exif tabs (left to right).
Laurent Monin [Sun, 18 May 2008 12:56:18 +0000 (12:56 +0000)]
Cleanup and code redundancy reduction.
Laurent Monin [Sun, 18 May 2008 11:39:58 +0000 (11:39 +0000)]
Memorize text to display in the log window when the window is
not yet created. On log window display, the memorized text
is then recalled and displayed.
Laurent Monin [Sun, 18 May 2008 07:36:57 +0000 (07:36 +0000)]
Do not create log window more than once.
Laurent Monin [Sat, 17 May 2008 22:37:04 +0000 (22:37 +0000)]
Fix formatted.SubjectDistance appearing twice in exif bar configuration.
Laurent Monin [Sat, 17 May 2008 21:28:02 +0000 (21:28 +0000)]
Update POTFILES.in.
Laurent Monin [Sat, 17 May 2008 21:26:45 +0000 (21:26 +0000)]
Add a log window that shows normal and debug messages. For now, it was added to Help menu.
Vladimir Nadvornik [Fri, 16 May 2008 20:12:11 +0000 (20:12 +0000)]
fixed exiv2 version test
Vladimir Nadvornik [Fri, 16 May 2008 20:09:32 +0000 (20:09 +0000)]
get processed values from exiv2
http://sourceforge.net/tracker/index.php?func=detail&aid=
1962444&group_id=222125&atid=
1054680
Laurent Monin [Fri, 16 May 2008 14:59:45 +0000 (14:59 +0000)]
Fix redundant application name in window titles.
It simplifies code.
Laurent Monin [Fri, 16 May 2008 14:38:05 +0000 (14:38 +0000)]
French translation was updated.
Laurent Monin [Fri, 16 May 2008 12:16:49 +0000 (12:16 +0000)]
Do not use printf() directly but use new wrapper function log_printf() instead.
Laurent Monin [Fri, 16 May 2008 12:08:51 +0000 (12:08 +0000)]
Drop include "debug.h".
Laurent Monin [Fri, 16 May 2008 10:02:56 +0000 (10:02 +0000)]
Include debug.h from main.h since debug macros may be used anywhere in the code.
Laurent Monin [Fri, 16 May 2008 09:10:56 +0000 (09:10 +0000)]
Improve editor commands error display:
- display all errors (not only syntax errors)
- display errors from Preferences (checks are made on Apply or OK)
Laurent Monin [Fri, 16 May 2008 08:37:07 +0000 (08:37 +0000)]
Improve editors a bit:
- allow whitespaces before and after %v, %V, %w
- allow % escaping using %% (mandatory to use shell commands than contain % characters)
- display a dialog on execution if a syntax error is detected (only for generic editors)
- update README editors section
Laurent Monin [Wed, 14 May 2008 18:12:11 +0000 (18:12 +0000)]
The Encoding key is now deprecated by the FreeDesktop standard and all
strings are required to be encoded in UTF-8. This desktop entry
explicitly specifies an Encoding of UTF-8, which is harmless but no longer
necessary.
See http://standards.freedesktop.org/desktop-entry-spec/1.0/apc.html
Patch #
1963689.
Laurent Monin [Wed, 14 May 2008 18:09:05 +0000 (18:09 +0000)]
Patch #
1963690 was applied.
It fixes hyphens/minus confusion in the man page.
Laurent Monin [Wed, 14 May 2008 17:00:25 +0000 (17:00 +0000)]
Simplify thumb_std_maint_moved(), since g_list_append knows
how to append to a NULL list. Patch by Uwe Ohse.
Laurent Monin [Wed, 14 May 2008 16:52:55 +0000 (16:52 +0000)]
Simplify collect_manager_add_action(), since g_list_append knows
how to append to a NULL list. Patch by Uwe Ohse.
Laurent Monin [Wed, 14 May 2008 12:59:00 +0000 (12:59 +0000)]
Merge vflist_row_by_path() into vflist_index_by_path().
Laurent Monin [Wed, 14 May 2008 10:40:43 +0000 (10:40 +0000)]
Fix some typos. Thanks to Michal \u010ciha\u0159 and James R. Van Zandt.
Patch #
1963691.
Laurent Monin [Wed, 14 May 2008 08:56:08 +0000 (08:56 +0000)]
Make vf_pop_menu_*_cb static.
Laurent Monin [Tue, 13 May 2008 20:31:35 +0000 (20:31 +0000)]
French translation fixes.
Laurent Monin [Tue, 13 May 2008 20:21:00 +0000 (20:21 +0000)]
Resync POTFILES.in and *.po, update french translation and
regenerate statistics in README.
Laurent Monin [Tue, 13 May 2008 20:13:44 +0000 (20:13 +0000)]
Merge vflist_pop_menu() and vficon_pop_menu() into vf_pop_menu().
Laurent Monin [Tue, 13 May 2008 19:56:52 +0000 (19:56 +0000)]
Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
Laurent Monin [Tue, 13 May 2008 19:54:13 +0000 (19:54 +0000)]
vficon_pop_menu(): drop "gint active" parameter, use stored click_id instead.
Laurent Monin [Tue, 13 May 2008 19:51:22 +0000 (19:51 +0000)]
vflist_pop_menu(): drop FileData * parameter, use stored click_fd instead.
Laurent Monin [Tue, 13 May 2008 19:45:04 +0000 (19:45 +0000)]
Fix last patch, only set vf->clicked_mark for a valid mark.
Laurent Monin [Tue, 13 May 2008 19:32:25 +0000 (19:32 +0000)]
Get rid of vflist_pop_menu() col_idx parameter, use new Viewfile field
named clicked_mark.
Marks numbering is now consistent with menus (starting at 1, 0 is an
invalid mark), assertions were modified accordingly.
Laurent Monin [Tue, 13 May 2008 16:09:43 +0000 (16:09 +0000)]
Expand tilde with file: and view: remote parameters.
Now these are working:
geeqie -r file:~/dir
geeqie -r view:~user/file
Laurent Monin [Tue, 13 May 2008 14:49:38 +0000 (14:49 +0000)]
Display a message when invalid remote options are used.
Laurent Monin [Tue, 13 May 2008 14:35:51 +0000 (14:35 +0000)]
Comparing tag id is not sufficient, check the tag name too.
Laurent Monin [Tue, 13 May 2008 11:58:47 +0000 (11:58 +0000)]
Keywords and comment can now be displayed in OSD info using %keywords% and %comment%.
Laurent Monin [Tue, 13 May 2008 08:53:26 +0000 (08:53 +0000)]
Move all remote stuff from main.c to remote.[ch].
Laurent Monin [Tue, 13 May 2008 08:02:46 +0000 (08:02 +0000)]
Move some functions from main.[ch] to new window.[ch].
Laurent Monin [Tue, 13 May 2008 07:34:37 +0000 (07:34 +0000)]
Ensure that we end with UTF8 encoded comment and keywords.
Laurent Monin [Mon, 12 May 2008 23:26:00 +0000 (23:26 +0000)]
Reading of Iptc.Application2.Keywords should now be fixed.
Use uft8_validate_or_convert() on exif's text data to be safe.
Laurent Monin [Mon, 12 May 2008 23:21:35 +0000 (23:21 +0000)]
Rename bar_exif_validate_text() to utf8_validate_or_convert() and move it to main.[ch].
Laurent Monin [Mon, 12 May 2008 23:00:04 +0000 (23:00 +0000)]
bar_exif_validate_text(): use computed length and cleanup.
Laurent Monin [Mon, 12 May 2008 19:56:28 +0000 (19:56 +0000)]
Disable non-working Iptc.Application2.Keywords reading introduced in revision 736.
Laurent Monin [Mon, 12 May 2008 17:10:40 +0000 (17:10 +0000)]
Extract and append keywords from Iptc.Application2.Keywords tags.
A function was added to make the keywords unique in the list.
Note: Iptc.Application2.Keywords is only read, not written.
Laurent Monin [Mon, 12 May 2008 10:46:23 +0000 (10:46 +0000)]
When an option was successfully read, just continue to next line.
Laurent Monin [Mon, 12 May 2008 10:37:37 +0000 (10:37 +0000)]
Minor formatting fix in rc file header.
Laurent Monin [Mon, 12 May 2008 08:52:17 +0000 (08:52 +0000)]
Rework read_*_option():
- read_u?int_option() now interpret a value of "true" as 1
- read_bool_option() now interpret any value different from 0 as true.
- make functions return TRUE on successful read, FALSE else
Theses changes will help to maintain compatibility when options are modified.
Laurent Monin [Mon, 12 May 2008 08:11:27 +0000 (08:11 +0000)]
Rename option image_overlay.common.enabled to image_overlay.common.state
since it is not a boolean anymore.
Laurent Monin [Mon, 12 May 2008 00:22:38 +0000 (00:22 +0000)]
Add some wrapper functions for not yet common code.
Laurent Monin [Sun, 11 May 2008 23:56:40 +0000 (23:56 +0000)]
Make vf_pop_menu_toggle_view_type_cb() independent of FILEVIEW_LIST/FILEVIEW_ICON real values.
Laurent Monin [Sun, 11 May 2008 23:47:59 +0000 (23:47 +0000)]
Move a part of pop up menu common code to view_file.[ch].
Laurent Monin [Sun, 11 May 2008 23:09:39 +0000 (23:09 +0000)]
Introduce vf_pop_menu_file_list() as a wrapper to
vflist_pop_menu_file_list() and vficon_pop_menu_file_list().
Laurent Monin [Sun, 11 May 2008 21:11:54 +0000 (21:11 +0000)]
Use vf_* functions where possible.
Laurent Monin [Sun, 11 May 2008 20:38:21 +0000 (20:38 +0000)]
Drop unused layout_list_get_path() and vf*_index_get_path().
Laurent Monin [Sun, 11 May 2008 13:17:38 +0000 (13:17 +0000)]
French translation was updated.
Laurent Monin [Sun, 11 May 2008 13:14:58 +0000 (13:14 +0000)]
An option to save and restore the last path used was added.
This option appears as startup.use_last_path in rc file.
Preferences > General > Startup was modified accordingly.
Laurent Monin [Sun, 11 May 2008 12:23:26 +0000 (12:23 +0000)]
Rename options:
startup_path_enable -> startup.restore_path
startup_path -> startup.path
Geeqie is still able to read old options.
Laurent Monin [Sun, 11 May 2008 11:46:48 +0000 (11:46 +0000)]
Fix help window title.
Laurent Monin [Sun, 11 May 2008 11:44:58 +0000 (11:44 +0000)]
Use computed string length.
Laurent Monin [Sun, 11 May 2008 11:41:32 +0000 (11:41 +0000)]
Slightly increase help window's default width.
Laurent Monin [Sun, 11 May 2008 11:30:41 +0000 (11:30 +0000)]
Add an help button to OSD info configuration in Preferences dialog.
Make its own section named "Overlay Screen Display".
Laurent Monin [Sun, 11 May 2008 10:25:04 +0000 (10:25 +0000)]
Partially update main README.
A section concerning overlay info was added.
Translation statistics were updated.
Laurent Monin [Sun, 11 May 2008 09:37:46 +0000 (09:37 +0000)]
Change translations statistics formatting to match the style
use in the README file.
Here is the result for current trunk:
Translations statistics
Date: Sun, 11 May 2008 11:33:14 +0200
Note: completion % in the chart below may not be quite correct
when fuzzy translations exist but do not appear in the source.
For exact results, run make update-po with up to date POTFILES.in.
comp % = trans / (trans + fuzzy + untrans)
Language Comp(%) Trans Fuzzy Untrans Total
fr 100.00 985 0 0 985
be 90.56 892 25 68 985
eu 68.53 675 150 160 985
eo 68.22 672 153 160 985
vi 68.02 670 156 159 985
it 67.82 668 154 163 985
pt_BR 67.82 668 154 163 985
zh_TW 66.90 659 150 176 985
sk 66.50 655 158 172 985
fi 64.37 634 176 175 985
nl 64.37 634 179 172 985
sv 64.16 632 175 178 985
bg 64.06 631 175 179 985
ca 64.06 631 175 179 985
cs 64.06 631 175 179 985
de 64.06 631 175 179 985
es 64.06 631 175 179 985
ja 64.06 631 175 179 985
ru 64.06 631 175 179 985
pl 60.61 597 148 240 985
ar 42.94 423 315 247 985
ro 37.56 370 342 273 985
hu 36.14 356 332 297 985
id 19.70 194 408 383 985
et 19.29 190 407 388 985
uk 17.16 169 411 405 985
nb 15.94 157 416 412 985
zh_CN.GB2312 15.94 157 416 412 985
th 15.13 149 413 423 985
sl 14.72 145 419 421 985
da 12.99 128 402 455 985
ko 11.37 112 52 821 985
tr 6.60 65 398 522 985
Laurent Monin [Sat, 10 May 2008 21:29:53 +0000 (21:29 +0000)]
Fix display of collection in overlay info.
Due to markup escaped <i>collection</i> was displayed instead of collection's in italic.
Overlay info syntax was extended to allow the wrapping of displayed data with markup.
General syntax is: %name[:length limit][:extra]%
Extra string uses special character '*' to mark the place of the data to display.
If no '*' is present, then extra string is just appended to data.
Any "\n" is replaced by a newline on display.
Pango mark up is accepted in left and right parts.
If data is empty, nothing will be displayed.
Examples:
"%name:<i>*</i>\n%" -> name is displayed in italics ended with a newline
"%size:\n%" -> size is displayed with a newline at end
"%formatted.ISOSpeedRating:ISO *%" -> prefix iso number with "ISO " (ie. "ISO 100")
"Collection <b>*</b>\n" -> display collection name in bold prefixed by "Collection " and a newline is appended
Collection name formatting was slighly improved by not displaying the .gqv extension.
The default overlay info string was modified to use the new syntax, but older info strings should be
displayed as usual.
Laurent Monin [Sat, 10 May 2008 14:22:18 +0000 (14:22 +0000)]
image_osd_get() now returns OsdShowFlags.
Laurent Monin [Sat, 10 May 2008 13:54:25 +0000 (13:54 +0000)]
Display a simple grid with histogram.
Laurent Monin [Sat, 10 May 2008 12:33:52 +0000 (12:33 +0000)]
Initialize to correct value (OSD_SHOW_NOTHING instead of FALSE).
Laurent Monin [Sat, 10 May 2008 09:00:14 +0000 (09:00 +0000)]
Save full OSD state to rc file and restore it on startup.
It allows to restore OSD with or without histogram depending
on previous state.
Laurent Monin [Fri, 9 May 2008 12:43:10 +0000 (12:43 +0000)]
image_osd_info_render(): if there's no fd, just return.
Laurent Monin [Fri, 9 May 2008 12:33:24 +0000 (12:33 +0000)]
Move overlay histogram stuff from ImageWindow to OverlayStateData.
It simplifies things a lot and make more sense.
Note: overlay icons display is broken since a long time it seems.
Laurent Monin [Fri, 9 May 2008 11:15:56 +0000 (11:15 +0000)]
Introduce image_get_osd_data() and image_set_osd_data().
Laurent Monin [Fri, 9 May 2008 09:58:46 +0000 (09:58 +0000)]
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin [Fri, 9 May 2008 09:34:38 +0000 (09:34 +0000)]
image_osd_histogram_chan_toggle(), image_osd_histogram_log_toggle():
reduce indentation level.
Laurent Monin [Fri, 9 May 2008 08:39:18 +0000 (08:39 +0000)]
Preserve last histogram modes.
When a new histogram is displayed, it uses previously chosen
modes.
These modes are saved on exit to rc file as options:
histogram.last_channel_mode
histogram.last_log_mode