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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.