Commit graph

22,249 commits

Author SHA1 Message Date
2e454a61ba cups: release secrets task resources 2026-05-15 16:35:47 +02:00
01df2249df gtk: avoid overallocating module paths 2026-05-15 16:19:36 +02:00
7c9df99170 gtk: reuse cached module path 2026-05-15 16:11:57 +02:00
d0628c6856 gtk: avoid unused immodule query symbols 2026-05-15 15:55:10 +02:00
095225e496 gtk: preserve strftime calendar names 2026-05-15 15:48:44 +02:00
e6873c2cd5 gail: avoid formatting string attribute values 2026-05-15 15:46:15 +02:00
55d5543eed gtk: limit direct module paths to GTK_PATH 2026-05-15 15:34:32 +02:00
76a7700091 gtk: check win32 stdio lock fallbacks 2026-05-15 15:21:02 +02:00
f5bafd1b8e gtk: reject unquoted strings in immodule parser 2026-05-15 15:09:45 +02:00
fedfe60e0e treewide: fix whitespace in changed files 2026-05-15 13:11:07 +02:00
83405a2c8b gail: clarify paned value conversion 2026-05-15 13:01:13 +02:00
a0b2f2491f gail: unset temporary values in paned test 2026-05-15 12:04:10 +02:00
94f030875f gail: use modern value API in paned test 2026-05-15 11:17:48 +02:00
3591e29913 gail: implement modern paned value interface 2026-05-15 11:07:09 +02:00
10e7514987 gail: use component extents in tests 2026-05-15 10:41:08 +02:00
839ed23770 gtk: use component extents for accessible positions 2026-05-15 10:33:12 +02:00
9eb83c3501 gail: use component extents for image positions 2026-05-15 10:15:55 +02:00
dbe993a4dd gtk: use returned text btree string buffer 2026-05-15 10:08:06 +02:00
d7a517a0b0 Merge branch 'vendor-patch-imports-2026-05' into warning-cleanups 2026-05-15 09:42:12 +02:00
f6142b10c9 Merge remote-tracking branch 'origin/master' into warning-cleanups 2026-05-15 09:40:48 +02:00
9423346201 gtk: include local module path fallback 2026-05-15 09:39:48 +02:00
de9f5196fa configure: add rpath-link flags for custom library prefixes
When building with a custom library prefix, GNU ld may find a directly
linked shared library through -L but fail to locate that library's indirect
DT_NEEDED dependencies from the same prefix.

Derive -Wl,-rpath-link entries from existing LDFLAGS -L paths on Linux.
This improves configure tests for musl, cross-toolchain and custom-prefix
builds without changing the pkg-config dependency set.
2026-05-15 08:56:41 +02:00
greenjeans
278bfcecd4 Update README.md
Added new development/testing links
2026-05-14 14:58:33 +00:00
c062dcb54d updateiconcache: sort directory entries before scanning
Based on the openSUSE gtk2-updateiconcache_sort.patch.

Sort directory entries while building the icon cache so cache output is deterministic, but keep the implementation portable by using GLib arrays instead of scandir()/alphasort(). Also free the scanned directory path before returning.
2026-05-14 15:00:25 +02:00
dda8c3764a fontsel: use insert_with_values when populating lists
Use gtk_list_store_insert_with_values() for font family, style and size list population to avoid separate append/set updates while preserving the same inserted values and row selection behavior.
2026-05-14 14:37:46 +02:00
3501d8c4f5 fontsel: defer expensive selection updates
Based on the openSUSE gtk2-bnc130159-bgo319483-async-selection-in-gtk-font-selection.diff.

Coalesce font family, style and size selection updates with short timeouts to keep GtkFontSelection responsive while preserving immediate updates for internal programmatic selection changes.
2026-05-13 13:20:06 +02:00
0c87680876 cups: wire Secret Service storage into authentication flow
Use the imported Secret Service helper to optionally store CUPS authentication data when a secrets service is available and the user enables password remembering.

Keep the GtkPrintBackend request-password signal and gtk_print_backend_set_password() ABI unchanged by passing the transient UI state through private object data.
2026-05-13 12:56:13 +02:00
dab59b874b print: add optional remember-password UI state
Prepare the print authentication dialog for backends that can store credentials without changing the request-password signal or gtk_print_backend_set_password() ABI.

This keeps the openSUSE CUPS Secret Service feature ABI-conservative for gtk2-ng.
2026-05-13 12:36:45 +02:00
0d089cd6de cups: build Secret Service authentication helper
Wire the imported CUPS Secret Service helper into the CUPS print backend build.
2026-05-13 12:31:14 +02:00
2901f63d0d cups: add Secret Service helper for print authentication
Based on the openSUSE gtk2-bgo743166-remember-printing-authentication.patch.

Add the CUPS Secret Service helper source files separately before wiring them into the print backend.
2026-05-13 12:23:35 +02:00
438c13366a fontsel: localize common font style names
Based on the openSUSE bugzilla-129753-gtk+-2.8.9-localize-font-style-name.diff.

Mark common font style names for translation and use translated names in the font selection UI when Pango returns standard style names.
2026-05-13 12:12:49 +02:00
02a2c61f2d gdk: handle 30-bit RGB drawables in GdkRGB
Based on the openSUSE gtk2-bgo625202-30-bit-drawables-remain-black.patch.

Add a dedicated conversion path for 32bpp 30-bit truecolor visuals so 8-bit RGB source data is expanded to 10-bit channels instead of producing black or overly dark output.
2026-05-13 11:54:31 +02:00
525150055d print: preserve default-printer wait during status updates
Based on the openSUSE gtk2-default-printer.patch.

Avoid treating printer status updates as user-driven printer selection changes, so the print dialog can continue waiting for a default printer that may appear later.
2026-05-13 11:46:52 +02:00
7cc56a9965 gtktrayicon: use explicit void prototypes for reserved slots
Based on the Mageia gtk+-2.24.32-warnings.patch.

Declare the reserved GtkTrayIconClass function pointers with explicit void parameter lists to avoid strict-prototype warnings without changing the class layout.
2026-05-13 11:25:19 +02:00
1ae5c7beec docs: use top_srcdir for GDK X11 header reference
Based on the MSYS2 0005-Fix-header-ref.all.patch.

Use an explicit top_srcdir-relative path for gdkx.h in the GDK reference documentation instead of a fragile relative path.
2026-05-13 10:55:56 +02:00
06974f39fc introspection: include Win32 keymap declarations
Add gdkwin32keys.h to the Win32 introspection source list so exported Win32 keymap APIs are visible in GdkWin32-2.0.gir.

The corresponding gdk_win32_keymap_get_type() and gdk_win32_keymap_check_compose() symbols are already exported, so this keeps the GIR closer to the installed Win32 API surface.
2026-05-13 10:48:39 +02:00
4cde9b16fd introspection: add GdkWin32 GIR generation
Based on the MSYS2 0011-gir-for-gdkwin32.mingw.patch.

Add Win32 backend sources to introspection when building the Win32 target and generate GdkWin32-2.0.gir alongside the common Gdk-2.0 GIR.
2026-05-13 10:48:27 +02:00
cc3ccba88d introspection: pass compiler and GTK DLL path to scanner
Based on the MSYS2 0009-give-cc-to-gir-scanner.mingw.patch and 0010-put-gtk-dll-into-path.mingw.patch.

Pass CC to g-ir-scanner and add the GTK build directory to PATH while scanning GTK, so MinGW builds can run the scanner with the just-built DLLs.
2026-05-13 10:19:49 +02:00
442630afe5 win32: quote icon cache manifest in resource file
Based on the MSYS2 0024-gtk-update-icon-cache-rc-quote.patch.

Quote the manifest path when generating the gtk-update-icon-cache resource file so windres parses it correctly.
2026-05-13 10:09:36 +02:00
45fc03183e win32: initialize key state before updating keymap
Based on the MSYS2 0023-gdkkeys-win32.c-fix-initialisation-of-key_state-in-u.patch.

Clear the key_state array before using it during keymap updates so stale state cannot affect layout handling, including Japanese IME input.
2026-05-13 10:08:01 +02:00
e42049b412 icontheme: detect SVG icons by extension on Win32
Based on the MSYS2 0022-icontheme-win32-detect-SVG-files-by-extension.patch.

Some Windows systems report .svg files with a generic or incorrect content type. On Win32, fall back to the .svg extension so SVG icons can still be detected.
2026-05-13 10:07:25 +02:00
cd4145185c win32: improve mouse window lookup through transparent children
Based on the MSYS2 0013_fix_mouse_events.patch.

Use CWP_SKIPTRANSPARENT while walking from the desktop window, but stop skipping transparent windows after the first level so transparent child windows are still considered correctly.
2026-05-13 10:06:34 +02:00
b305265dea quartz: avoid extra resize-idle updates on Big Sur and newer
Based on part of the MacPorts Big Sur performance patch for GIMP issue 5989.

Keep the existing gdk_window_process_all_updates() call for non-Quartz targets and for older macOS releases, but avoid this extra resize-idle update path on Big Sur and newer where it can contribute to expensive full-window redraw behaviour.
2026-05-13 09:59:26 +02:00
243fcad89f quartz: avoid extra content invalidation on Big Sur and newer
Based on part of the MacPorts Big Sur performance patch for GIMP issue 5989.

Keep the existing Mojave-era setNeedsDisplay workaround for macOS 10.14 and 10.15, but avoid the extra full-window invalidation on Big Sur and newer where it can cause expensive redraw behaviour.
2026-05-13 09:54:51 +02:00
3b177953c1 quartz: request 8-bit layer contents on Big Sur and newer
Based on part of the MacPorts Big Sur performance patch for GIMP issue 5989.

Use a dynamic Objective-C call to request 8-bit layer contents on macOS 11 and newer, avoiding a hard QuartzCore/CALayer compile-time dependency and preserving old behaviour on older macOS releases.
2026-05-13 09:49:48 +02:00
032c5f1efd quartz: avoid screen update suppression on Mojave and newer
Based on part of the MacPorts Big Sur performance patch for GIMP issue 5989.

NSDisableScreenUpdates and NSEnableScreenUpdates are deprecated on newer macOS releases. Keep using them for older macOS versions, but avoid them on Mojave and newer.
2026-05-13 09:41:36 +02:00
ceb158a3e1 quartz: use CGContext accessor on Yosemite and newer
Based on part of the MacPorts Big Sur performance patch for GIMP issue 5989.

Use the modern NSGraphicsContext CGContext accessor on Yosemite and newer, matching the existing Quartz window code, while preserving graphicsPort for older macOS versions.
2026-05-13 09:38:00 +02:00
35e2e048fc quartz: map macOS 11 and newer to internal OS versions
Based on part of the MacPorts Big Sur performance patch for GIMP issue 5989.

GTK2 represents macOS 10.x releases by their minor version. Read the major version as well and map macOS 11 and newer into the same sequence so Big Sur and later releases can be detected correctly.
2026-05-13 09:36:56 +02:00
eebe1148c1 quartz: avoid focus locking on Mojave and newer
Based on part of the MacPorts Big Sur performance patch for GIMP issue 5989.

The NSView focus-locking API is deprecated on newer macOS releases and can cause expensive redraw behaviour. Keep the old path for older macOS versions, but avoid lockFocusIfCanDraw/unlockFocus on Mojave and newer.
2026-05-13 09:36:56 +02:00
8347521bfd quartz: add newer macOS version constants
Based on the MacPorts patch-gdkquartz-osx-versions.diff.

Extend the Quartz OS version enum so later macOS-specific code can
distinguish Catalina, Big Sur, Monterey, Ventura, Sonoma, and Sequoia
while preserving the existing older constants.
2026-05-13 09:36:55 +02:00