geeqie.git
10 months agoRun github delete workflows once a week
Colin Clark [Tue, 27 Jun 2023 15:25:35 +0000 (16:25 +0100)]
Run github delete workflows once a week

10 months agoBug fix: gtk-builder-tool needs a gui
Colin Clark [Tue, 27 Jun 2023 15:17:42 +0000 (16:17 +0100)]
Bug fix: gtk-builder-tool needs a gui

10 months agoBug fix: gtk-builder-tool operates on a single file
Colin Clark [Tue, 27 Jun 2023 14:42:27 +0000 (15:42 +0100)]
Bug fix: gtk-builder-tool operates on a single file

10 months agoInstall github workflow libgtk-3-bin for gtk-builder-tool
Colin Clark [Tue, 27 Jun 2023 14:24:57 +0000 (15:24 +0100)]
Install github workflow libgtk-3-bin for gtk-builder-tool

10 months agoConvert search-and-run window to GtkBuilder .ui file
Colin Clark [Tue, 27 Jun 2023 14:11:49 +0000 (15:11 +0100)]
Convert search-and-run window to GtkBuilder .ui file

Conversion done only for future reference.

10 months agoBug fix: Seg. fault when OSD font not set
Colin Clark [Sun, 25 Jun 2023 09:21:10 +0000 (10:21 +0100)]
Bug fix: Seg. fault when OSD font not set

If Geeqie is started with no geeqierc.xml file and OSD is selected,
there will be a seg.fault.

Set the OSD font in default options - the font set does not seem to
matter.

10 months agofix typo
Rosen Penev [Thu, 22 Jun 2023 09:47:00 +0000 (02:47 -0700)]
fix typo

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoauto with g_new
Rosen Penev [Thu, 22 Jun 2023 03:34:51 +0000 (20:34 -0700)]
auto with g_new

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoclang-tidy: more
Rosen Penev [Thu, 22 Jun 2023 02:56:08 +0000 (19:56 -0700)]
clang-tidy: more

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoRevert "undo one conversion and reduce casting"
Rosen Penev [Sat, 24 Jun 2023 15:30:30 +0000 (08:30 -0700)]
Revert "undo one conversion and reduce casting"

This change was wrong and crashes.

This reverts commit d4f7d83269fdb13acaa0e5bc25018a8bc75a0ee9.

10 months agoFix #1120: Geeqie crashes on problematic geeqie.xml config file
Colin Clark [Thu, 22 Jun 2023 08:34:42 +0000 (09:34 +0100)]
Fix #1120: Geeqie crashes on problematic geeqie.xml config file

https://github.com/BestImageViewer/geeqie/issues/1120

Object not unreffed.

10 months agoRemove exiv2 0.28.0 restriction
Colin Clark [Wed, 21 Jun 2023 13:24:41 +0000 (14:24 +0100)]
Remove exiv2 0.28.0 restriction

https://github.com/BestImageViewer/geeqie/pull/1119

The bug was fixed in the above commit.

10 months agoAdd ExifData as extra argument to exif_item_get_data_as_text().
Kevin Backhouse [Wed, 21 Jun 2023 11:23:33 +0000 (12:23 +0100)]
Add ExifData as extra argument to exif_item_get_data_as_text().

10 months agoBug fix: _XOPEN_SOURCE redefined error
Colin Clark [Tue, 20 Jun 2023 14:38:54 +0000 (15:38 +0100)]
Bug fix: _XOPEN_SOURCE redefined error

The inclusion of <stdlib.h> causes this error. One solution is just to
move the declaration.

10 months agoclang-tidy: fix readability stuff
Rosen Penev [Tue, 20 Jun 2023 12:40:37 +0000 (05:40 -0700)]
clang-tidy: fix readability stuff

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoFix #1116: meson: Disabling pandoc disables installation of all documentation
Colin Clark [Mon, 19 Jun 2023 14:33:08 +0000 (15:33 +0100)]
Fix #1116: meson: Disabling pandoc disables installation of all documentation

https://github.com/BestImageViewer/geeqie/issues/1116

10 months agoclang-tidy: more missing fixes
Rosen Penev [Sun, 18 Jun 2023 15:58:00 +0000 (08:58 -0700)]
clang-tidy: more missing fixes

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoApply feedback from Colin Clark
Thomas Klausner [Sun, 18 Jun 2023 16:10:20 +0000 (18:10 +0200)]
Apply feedback from Colin Clark

10 months agoFind and use libexecinfo (for backtrace()).
Thomas Klausner [Sun, 18 Jun 2023 12:11:50 +0000 (14:11 +0200)]
Find and use libexecinfo (for backtrace()).

Fixes build on NetBSD.

10 months agoGitHub action to purge old workflow runs
Colin Clark [Sun, 18 Jun 2023 11:56:16 +0000 (12:56 +0100)]
GitHub action to purge old workflow runs

10 months agoAdd missing header for setlocale().
Thomas Klausner [Sat, 17 Jun 2023 16:47:28 +0000 (18:47 +0200)]
Add missing header for setlocale().

10 months agoAdd missing header for setenv().
Thomas Klausner [Sat, 17 Jun 2023 16:47:14 +0000 (18:47 +0200)]
Add missing header for setenv().

10 months agoFix #ifdef for JPEG XL support
Tobias Gruetzmacher [Sun, 18 Jun 2023 07:12:39 +0000 (09:12 +0200)]
Fix #ifdef for JPEG XL support

10 months agoMinor text changes to CHECKLIST.md
Colin Clark [Sat, 17 Jun 2023 13:46:16 +0000 (14:46 +0100)]
Minor text changes to CHECKLIST.md

10 months agoRelease v2.1 files
Colin Clark [Sat, 17 Jun 2023 12:14:33 +0000 (13:14 +0100)]
Release v2.1 files

10 months agoUpdate .po files
Colin Clark [Sat, 17 Jun 2023 09:17:36 +0000 (10:17 +0100)]
Update .po files

10 months agoUpdate shortcuts documentation
Colin Clark [Sat, 17 Jun 2023 09:12:42 +0000 (10:12 +0100)]
Update shortcuts documentation

10 months agoUpdate create-shortcuts-xml.sh
Colin Clark [Sat, 17 Jun 2023 09:01:45 +0000 (10:01 +0100)]
Update create-shortcuts-xml.sh

Update to take into account change from NULL to nullptr and change to
use of static_cast.

10 months agoRemove unused declarations
Colin Clark [Fri, 16 Jun 2023 11:21:04 +0000 (12:21 +0100)]
Remove unused declarations

10 months agoadd missing stuff
Rosen Penev [Mon, 12 Jun 2023 15:10:06 +0000 (08:10 -0700)]
add missing stuff

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agomore typedef removals
Rosen Penev [Mon, 12 Jun 2023 14:02:14 +0000 (07:02 -0700)]
more typedef removals

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoclang-tidy: more C cast removals
Rosen Penev [Mon, 12 Jun 2023 11:17:20 +0000 (04:17 -0700)]
clang-tidy: more C cast removals

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoExclude exiv2 version 0.28.0 from meson.build
Colin Clark [Fri, 16 Jun 2023 09:02:58 +0000 (10:02 +0100)]
Exclude exiv2 version 0.28.0 from meson.build

Version 0.28.0 of exiv2 can cause a seg.fault in Geeqie.

See https://github.com/BestImageViewer/geeqie/issues/1090 for the
background.

10 months agoFix #1106: Split/Split pane sync - Shift+Arrow keys scrolling is out of sync on high...
Colin Clark [Thu, 15 Jun 2023 10:31:07 +0000 (11:31 +0100)]
Fix #1106: Split/Split pane sync - Shift+Arrow keys scrolling is out of sync on high zoom

https://github.com/BestImageViewer/geeqie/issues/1106

I do not know which situations the previous code was designed to handle
- there may be some problems in test cases I did not use.

10 months agoFix coding errors
Colin Clark [Wed, 14 Jun 2023 09:52:07 +0000 (10:52 +0100)]
Fix coding errors

Fix "Use of memory after it is freed" errors identified by clang-tidy

10 months agoScript to install files needed for development use
Colin Clark [Mon, 12 Jun 2023 15:35:04 +0000 (16:35 +0100)]
Script to install files needed for development use

10 months agoInclude descriptive text for Generate-ClayRGB1998-icc-h.sh
Colin Clark [Mon, 12 Jun 2023 15:01:30 +0000 (16:01 +0100)]
Include descriptive text for Generate-ClayRGB1998-icc-h.sh

10 months agoUpdate JPEG XL handling
Colin Clark [Sun, 11 Jun 2023 15:08:47 +0000 (16:08 +0100)]
Update JPEG XL handling

10 months agoclang-tify: remove void
Rosen Penev [Sun, 11 Jun 2023 11:38:51 +0000 (04:38 -0700)]
clang-tify: remove void

Found with modernize-redundant-void-args

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoRationalize shellchecks in meson.build
Colin Clark [Sun, 11 Jun 2023 10:34:22 +0000 (11:34 +0100)]
Rationalize shellchecks in meson.build

10 months agoclang-tidy: use using
Rosen Penev [Thu, 8 Jun 2023 20:44:33 +0000 (13:44 -0700)]
clang-tidy: use using

Found with modernize-use-using

Signed-off-by: Rosen Penev <rosenp@gmail.com>
10 months agoSimple script to generate doxgen documentation
Colin Clark [Sat, 10 Jun 2023 15:25:31 +0000 (16:25 +0100)]
Simple script to generate doxgen documentation

- Ignore ./subprojects folder from doxygen documentation

10 months agoRun shellcheck in meson tests
Colin Clark [Sat, 10 Jun 2023 13:58:20 +0000 (14:58 +0100)]
Run shellcheck in meson tests

10 months agoRun shellcheck on script files
Colin Clark [Sat, 10 Jun 2023 11:14:13 +0000 (12:14 +0100)]
Run shellcheck on script files

Run using:

for file in $(find . -not \( -path ./subprojects -prune \) -name "*.sh")
do
realfile=$(realpath "$file")
shellcheck --norc --format=diff --shell sh
--enable=add-default-case,avoid-nullary-conditions,check-unassigned-uppercase,deprecate-which,quote-safe-variables
"$realfile"| patch "$realfile"
done
exit

Plus manual edits.

11 months agoclang-tidy: use nullptr
Rosen Penev [Tue, 6 Jun 2023 09:40:37 +0000 (02:40 -0700)]
clang-tidy: use nullptr

Found with modernize-use-nullptr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoclang-tidy: use override
Rosen Penev [Mon, 5 Jun 2023 10:11:44 +0000 (03:11 -0700)]
clang-tidy: use override

Found with modernize-use-override

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoexiv2: use unique_ptr
Rosen Penev [Tue, 6 Jun 2023 08:48:05 +0000 (01:48 -0700)]
exiv2: use unique_ptr

Shorter and no delete needed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agomeson: set cpp standard to 14
Rosen Penev [Tue, 6 Jun 2023 08:27:16 +0000 (01:27 -0700)]
meson: set cpp standard to 14

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoclang-tidy: replace int with bool
Rosen Penev [Mon, 5 Jun 2023 10:08:46 +0000 (03:08 -0700)]
clang-tidy: replace int with bool

Found with modernize-use-bool-literals

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoRun GitHub actions also on pull_request
Colin Clark [Thu, 8 Jun 2023 14:32:25 +0000 (15:32 +0100)]
Run GitHub actions also on pull_request

11 months agomanual fixes for C casts
Rosen Penev [Mon, 5 Jun 2023 09:05:06 +0000 (02:05 -0700)]
manual fixes for C casts

clang-tidy does not fix these as they require both const and
reinterpret_cast.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoremove const_cast
Rosen Penev [Sun, 4 Jun 2023 18:59:59 +0000 (11:59 -0700)]
remove const_cast

No need for it. Nothing is modified.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoundo one conversion and reduce casting
Rosen Penev [Sun, 4 Jun 2023 18:53:51 +0000 (11:53 -0700)]
undo one conversion and reduce casting

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoclang-tidy: C to C++ casts
Rosen Penev [Sun, 4 Jun 2023 14:46:18 +0000 (07:46 -0700)]
clang-tidy: C to C++ casts

Ran with:

run-clang-tidy -fix -checks=google-readability-casting

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoFix #1100:
Colin Clark [Thu, 8 Jun 2023 09:43:55 +0000 (10:43 +0100)]
Fix #1100:

https://github.com/BestImageViewer/geeqie/issues/1100#issuecomment-1581251045

Another signature for .heic files.

11 months agoclang-tidy: modernize-use-auto
Colin Clark [Sun, 4 Jun 2023 10:16:25 +0000 (11:16 +0100)]
clang-tidy: modernize-use-auto

11 months agoclang-tidy: modernize-use-auto
Rosen Penev [Sun, 4 Jun 2023 07:55:57 +0000 (00:55 -0700)]
clang-tidy: modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoconvert loops to for range
Rosen Penev [Sat, 3 Jun 2023 13:56:44 +0000 (06:56 -0700)]
convert loops to for range

simpler

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoremove bad form in if statement
Rosen Penev [Sat, 3 Jun 2023 13:52:00 +0000 (06:52 -0700)]
remove bad form in if statement

clang-tidy suggests braces here. instead of that, fix the condition

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoremove register
Rosen Penev [Sat, 3 Jun 2023 13:50:57 +0000 (06:50 -0700)]
remove register

depricated and removed in future standards

Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 months agoFix #1093: Double click for full screen
Colin Clark [Sat, 3 Jun 2023 15:19:04 +0000 (16:19 +0100)]
Fix #1093: Double click for full screen

https://github.com/BestImageViewer/geeqie/issues/1093

11 months agoFix #1090: exiv2 0.28.0 support
Rosen Penev  [Fri, 2 Jun 2023 15:41:12 +0000 (16:41 +0100)]
Fix #1090: exiv2 0.28.0 support

https://github.com/BestImageViewer/geeqie/issues/1090

11 months agoBug fix: AppImage notification
Colin Clark [Fri, 2 Jun 2023 12:56:58 +0000 (13:56 +0100)]
Bug fix: AppImage notification

Do not check for an AppImage update if a release version is being run

11 months agoFix #1096: Debian install script fails on Debian 11.7
Colin Clark [Fri, 2 Jun 2023 10:08:24 +0000 (11:08 +0100)]
Fix #1096: Debian install script fails on Debian 11.7

https://github.com/BestImageViewer/geeqie/issues/1096

11 months agoEliminate warnings when creating .pot file
Colin Clark [Tue, 30 May 2023 11:49:54 +0000 (12:49 +0100)]
Eliminate warnings when creating .pot file

11 months agoInclude check for existence of xvfb in meson.build
Colin Clark [Sat, 27 May 2023 10:00:44 +0000 (11:00 +0100)]
Include check for existence of xvfb in meson.build

11 months agoUpdate GitHub actions file (part 2)
Colin Clark [Wed, 24 May 2023 14:50:01 +0000 (15:50 +0100)]
Update GitHub actions file (part 2)

- Run apt-get update
- Use specific Ubuntu version number

11 months agoUpdate GitHub actions file
Colin Clark [Wed, 24 May 2023 14:46:37 +0000 (15:46 +0100)]
Update GitHub actions file

- Run apt-get update
- Use specific Ubuntu version number

11 months agoDocumentation: Use G_SOURCE_CONTINUE and G_SOURCE_REMOVE
Colin Clark [Wed, 24 May 2023 13:03:14 +0000 (14:03 +0100)]
Documentation: Use G_SOURCE_CONTINUE and G_SOURCE_REMOVE

11 months agoFix typo in Readme file
Colin Clark [Mon, 22 May 2023 17:23:20 +0000 (18:23 +0100)]
Fix typo in Readme file

11 months agoInclude package status in the Readme file
Colin Clark [Mon, 22 May 2023 12:25:09 +0000 (13:25 +0100)]
Include package status in the Readme file

11 months agoFix typo in previous commit
Colin Clark [Sun, 21 May 2023 15:16:07 +0000 (16:16 +0100)]
Fix typo in previous commit

11 months agoInclude executable test in GitHub action
Colin Clark [Sun, 21 May 2023 14:52:34 +0000 (15:52 +0100)]
Include executable test in GitHub action

- Include basic executable test - get version
- Use -D<option>=disabled for the no-options test

11 months agoInclude a build status badge in the Readme file
Colin Clark [Sat, 20 May 2023 10:24:26 +0000 (11:24 +0100)]
Include a build status badge in the Readme file

11 months agoInclude GitHub action to check builds
Colin Clark [Fri, 19 May 2023 15:09:26 +0000 (16:09 +0100)]
Include GitHub action to check builds

11 months agoProtect another g_memdup2 in exif.cc with ifdef
Tomasz Golinski [Mon, 15 May 2023 22:40:13 +0000 (00:40 +0200)]
Protect another g_memdup2 in exif.cc with ifdef

11 months agoReplace g_memdup with safer g_memdup2
Tomasz Golinski [Mon, 15 May 2023 21:57:13 +0000 (23:57 +0200)]
Replace g_memdup with safer g_memdup2

g_memdup is declared as deprecated in current GLib, safer replacement g_memdup2 is available since GLib-2.68.

Code is protected by GLIB_CHECK_VERSION macro, so should build on older distros as well.

See https://docs.gtk.org/glib/func.memdup2.html

11 months agoAdd missing #ifdef for DEBUG_FD
Tomasz Golinski [Mon, 15 May 2023 21:38:41 +0000 (23:38 +0200)]
Add missing #ifdef for DEBUG_FD

Amends commit cd72fa8

11 months agoRevert "FIXME: this can be rather slow and blocks until the size is known"
Colin Clark [Fri, 12 May 2023 09:01:28 +0000 (10:01 +0100)]
Revert "FIXME: this can be rather slow and blocks until the size is known"

This reverts commit 8aeeb06fa5ab39f9e58938c2a8af3029fd67cbff.

Uncomment the callbacks.

11 months agoRevert "FIXME: this can be rather slow and blocks until the size is known"
Colin Clark [Fri, 12 May 2023 08:48:25 +0000 (09:48 +0100)]
Revert "FIXME: this can be rather slow and blocks until the size is known"

This reverts commit 8aeeb06fa5ab39f9e58938c2a8af3029fd67cbff.

gdk_pixbuf_get_file_info() can only get the file info from file types that it knows.

12 months agoBug fix: Copy icon not displayed
Colin Clark [Tue, 9 May 2023 09:27:39 +0000 (10:27 +0100)]
Bug fix: Copy icon not displayed

In the Copy dialog, the Copy icon was shown as a broken icon. Reverting
from gtk_image_new_from_icon_name() to gtk_image_new_from_stock() solves
the problem. I do not know why.

12 months agoDo more casting to avoid build errors
Andreas Rönnquist [Sun, 7 May 2023 19:55:55 +0000 (21:55 +0200)]
Do more casting to avoid build errors

12 months agoUse emblems for some folder icons
Colin Clark [Mon, 8 May 2023 15:36:15 +0000 (16:36 +0100)]
Use emblems for some folder icons

- Use emblems for read-only, symlink and no-access folder icons
- Use standard folder icon for shortcuts and bookmarks
- Remove redundant GQview icons

n.b. It was not possible to get g_emblemed_icon_new() to work, so the
interim solution is to use gdk_pixbuf_composite()

12 months agoDon't use too new *_DEFAULT defines
Andreas Rönnquist [Sun, 7 May 2023 13:52:41 +0000 (15:52 +0200)]
Don't use too new *_DEFAULT defines

12 months agoRemove "dot" entry from shortcuts pane
Colin Clark [Sun, 7 May 2023 13:02:12 +0000 (14:02 +0100)]
Remove "dot" entry from shortcuts pane

The "dot" entry had no meaning in the shortcuts pane, so is removed from
the defaults.
Current users can now delete the entry with a right-click.

12 months agoFix #1080: Cannot build with meson 0.56.2
Colin Clark [Sun, 7 May 2023 10:51:14 +0000 (11:51 +0100)]
Fix #1080: Cannot build with meson 0.56.2

https://github.com/BestImageViewer/geeqie/issues/1080

12 months agoDrop stale intltool references
Sam James [Sat, 6 May 2023 11:46:40 +0000 (12:46 +0100)]
Drop stale intltool references

Moved to gettext when porting to meson.

Signed-off-by: Sam James <sam@gentoo.org>
12 months agoBug fix: Generation of translators list
Colin Clark [Mon, 1 May 2023 15:45:34 +0000 (16:45 +0100)]
Bug fix: Generation of translators list

Wrong text offset used

12 months agoFix #1079: Delete a keyboard shortcut
Colin Clark [Mon, 1 May 2023 15:31:11 +0000 (16:31 +0100)]
Fix #1079: Delete a keyboard shortcut

https://github.com/BestImageViewer/geeqie/issues/1079

Additional button on Preferences/Keyboard to clear selected shortcuts

12 months agoCredit webpage artwork
Colin Clark [Mon, 1 May 2023 09:51:43 +0000 (10:51 +0100)]
Credit webpage artwork

- Credit webpage artwork
- Remove unused variable

12 months agoRevise gresources use
Colin Clark [Sun, 30 Apr 2023 14:38:23 +0000 (15:38 +0100)]
Revise gresources use

12 months agoAuto-generate list of authors and translators
Colin Clark [Fri, 21 Apr 2023 10:01:59 +0000 (11:01 +0100)]
Auto-generate list of authors and translators

- Get list of authors from git log, ordered by number of commits
- Get list of translators from headers in the .po files

- Lists are displayed in the About dialog

12 months agoBug fix: Error in typecast
Colin Clark [Mon, 17 Apr 2023 15:38:25 +0000 (16:38 +0100)]
Bug fix: Error in typecast

13 months agoFix #1077: allow split view with user specified layout
Colin Clark [Sun, 9 Apr 2023 16:02:16 +0000 (17:02 +0100)]
Fix #1077: allow split view with user specified layout

https://github.com/BestImageViewer/geeqie/issues/1077

Additional layout - 3 horizontal panes

13 months agoFix c++ compiler warnings
Colin Clark [Fri, 7 Apr 2023 17:05:56 +0000 (18:05 +0100)]
Fix c++ compiler warnings

... and this one...

13 months agoFix c++ compiler wrnings
Colin Clark [Fri, 7 Apr 2023 17:04:29 +0000 (18:04 +0100)]
Fix c++ compiler wrnings

Most of the remaining warnings eliminated

13 months agoFix c++ compiler warnings
Colin Clark [Fri, 7 Apr 2023 09:28:02 +0000 (10:28 +0100)]
Fix c++ compiler warnings

Geeqie compiles without the -fpermissive option,

13 months agoFix c++ cmpiler warnings
Colin Clark [Mon, 3 Apr 2023 08:59:02 +0000 (09:59 +0100)]
Fix c++ cmpiler warnings

GdkModifierType cast

13 months agoFix c++ compiler warnings
Colin Clark [Mon, 3 Apr 2023 08:42:35 +0000 (09:42 +0100)]
Fix c++ compiler warnings

Bug fix for previous commit

13 months agoFix c++ compiler warnings
Colin Clark [Sun, 2 Apr 2023 09:16:00 +0000 (10:16 +0100)]
Fix c++ compiler warnings

const gchar * casts