Commit graph

22,208 commits

Author SHA1 Message Date
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
2d1ba49ab4 build: disable GNU visibility aliases on Apple platforms
Based on the MacPorts patch-aliases.diff.

Keep the existing GNU visibility alias generation on other platforms, but avoid it on Apple targets where this alias mechanism is not suitable.
2026-05-13 09:15:53 +02:00
385df5517b gtkrc: search XDG data dirs for themes
Based on the Guix gtk2-theme-paths.patch by Jookia.

Keep the existing ~/.themes and gtk_rc_get_theme_dir() lookup paths, but check g_get_system_data_dirs() in between so profile- and prefix-based theme installations can be found.
2026-05-13 08:38:30 +02:00
a221e0da4c tests: fix GtkBuilder signal callback prototypes
Based on the Guix gtk2-fix-builder-test.patch.

The callbacks are connected to notify-style signals and must take a
GParamSpec pointer, not a GParamSpec by value. This avoids stack/register
ABI problems on platforms such as ppc64el.
2026-05-13 08:38:20 +02:00
50c1160403 docs: add no-op test targets for reference manuals 2026-05-12 15:40:30 +02:00
48d463fc63 tests: ignore storage-derived GdkPixbuf defaults 2026-05-12 15:40:30 +02:00
5e0672af7d gtk: harden GtkListStore iter validation 2026-05-12 15:40:30 +02:00
greenjeans
3ec9341d19 greenjeans-patch-1 (#13)
Added build depends to readme for Devuan/Debian/Ubuntu

Reviewed-on: https://git.devuan.org/Daemonratte/gtk2-ng/pulls/13
Co-authored-by: greenjeans <greenjeans@noreply.localhost>
Co-committed-by: greenjeans <greenjeans@noreply.localhost>
2026-05-11 15:08:23 +00:00
d666b46c9e gtk: document text layout draw layout as opaque pointer 2026-05-10 20:10:30 +02:00
a02c3d7a0e gtk: document callback return values as opaque pointers 2026-05-10 20:09:17 +02:00
325c1bd6c9 gtk: document rc scanner return ownership 2026-05-10 20:05:46 +02:00
62b890820c gtk: annotate binding set return ownership 2026-05-10 19:55:14 +02:00
f15a4c6160 gdk: document legacy gdkx visual accessor 2026-05-10 13:35:12 +02:00
f8ba1ea507 gdk: document font X display return in header 2026-05-10 13:30:00 +02:00
67ca31e04d gdk: document font X display as opaque pointer 2026-05-10 13:27:05 +02:00
fa307cbc3d gdk: document Xlib returns as opaque pointers 2026-05-10 13:24:26 +02:00
de062c3034 gdk: document drawable X display as opaque pointer 2026-05-10 13:22:36 +02:00
e289f105ae gdk: document bitmap constructor return type 2026-05-10 13:16:49 +02:00
2bb67cb1db gdk: register GdkAtom as boxed type 2026-05-10 13:11:14 +02:00
81b3cb9331 gdk: register GdkRgbCmap as boxed type 2026-05-10 13:04:19 +02:00
f1737316ef gtk: align container focus child vfunc parameter 2026-05-10 12:36:00 +02:00
71e0fbadc5 gtk: register GtkStockItem as boxed type 2026-05-10 12:29:26 +02:00
1261be3bb9 gtk: document text layout draw widgets 2026-05-10 12:17:28 +02:00
0c7c29afd2 gdk: fix pixmap and drawable impl annotations 2026-05-10 11:48:29 +02:00
536ba57b78 gtk: document accel group query array 2026-05-10 11:26:07 +02:00
fdaa60375e gdk: document spawn child setup callback scope 2026-05-10 10:42:05 +02:00
13c769d061 gdk: document input callback scope 2026-05-10 10:40:38 +02:00
2635ef3607 gdk: document client message filter callback scope 2026-05-10 10:38:36 +02:00
096d05ce30 gdk: fix display device list annotation 2026-05-10 10:36:05 +02:00
af6636eb99 gdk: fix pixmap lookup return annotations 2026-05-10 10:34:45 +02:00
15572c97b4 gdk: fix drag begin return annotation 2026-05-10 10:33:04 +02:00
d5f3df6c62 gdk: document selection owner accessor 2026-05-10 10:30:26 +02:00
1a34671a55 gdk: document font display accessor 2026-05-10 10:29:07 +02:00
cfedad83f3 gdk: document pixmap data constructor 2026-05-10 10:28:05 +02:00
118f0599cd gdk: fix selection owner wrapper docs 2026-05-10 10:23:21 +02:00