Sync from SUSE:SLFO:Main gtk4 revision 1bf4fc2d67cb081afe7af731f4345f14

This commit is contained in:
Adrian Schröter 2024-11-12 12:12:47 +01:00
parent e2e69f2880
commit 700cdffd0f
8 changed files with 688 additions and 94 deletions

View File

@ -13,11 +13,11 @@ This reverts commit 802bf4199911c811938b0454a876089bafa97dba.
meson.build | 47 +++++++++++++++++++++++++++++++++--------------
1 file changed, 33 insertions(+), 14 deletions(-)
Index: gtk-4.12.1/meson.build
Index: gtk-4.15.5/meson.build
===================================================================
--- gtk-4.12.1.orig/meson.build
+++ gtk-4.12.1/meson.build
@@ -430,6 +430,9 @@ if not os_win32
--- gtk-4.15.5.orig/meson.build
+++ gtk-4.15.5/meson.build
@@ -456,6 +456,9 @@ if not os_win32
endif
endif
@ -27,7 +27,7 @@ Index: gtk-4.12.1/meson.build
cairo_backends = []
foreach backend: [ ['cairo-xlib', cairo_req, x11_enabled],
['cairo-win32', cairo_req, win32_enabled],
@@ -562,14 +565,26 @@ if x11_enabled
@@ -586,14 +589,26 @@ if x11_enabled
cdata.set('HAVE_RANDR15', xrandr15_dep.found())
endif
@ -54,7 +54,7 @@ Index: gtk-4.12.1/meson.build
# Check whether libepoxy is built with EGL support on Windows
endif
@@ -837,6 +852,7 @@ pkg_config.generate(libgtk,
@@ -878,6 +893,7 @@ pkg_config.generate(libgtk,
name: 'GTK',
description: 'GTK Graphical UI Library',
requires: gdk_packages + gsk_packages + gtk_packages,
@ -62,7 +62,7 @@ Index: gtk-4.12.1/meson.build
subdirs: ['gtk-@0@'.format(gtk_api_version)],
)
meson.override_dependency('gtk4', libgtk_dep)
@@ -859,10 +875,10 @@ if os_unix
@@ -912,10 +928,10 @@ if os_unix
unescaped_variables: common_pc_variables,
name: 'GTK',
description: 'GTK Unix print support',

View File

@ -1,48 +0,0 @@
From d1f36c7b7ad6b5bb6869143806b52205b00c3f37 Mon Sep 17 00:00:00 2001
From: "gayathri.berli@ibm.com" <gayathri.berli@ibm.com>
Date: Fri, 5 Apr 2024 14:00:10 +0530
Subject: [PATCH] changes to fix the memorytexture regression
---
gsk/gl/gskglglyphlibrary.c | 4 ++--
gsk/gl/gskgliconlibrary.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gsk/gl/gskglglyphlibrary.c b/gsk/gl/gskglglyphlibrary.c
index 2e6d4da7fb..8a7dae473a 100644
--- a/gsk/gl/gskglglyphlibrary.c
+++ b/gsk/gl/gskglglyphlibrary.c
@@ -131,7 +131,7 @@ gsk_gl_glyph_library_init_atlas (GskGLTextureLibrary *self,
else
{
gl_format = GL_BGRA;
- gl_type = GL_UNSIGNED_BYTE;
+ gl_type = GL_UNSIGNED_INT_8_8_8_8_REV;
}
glBindTexture (GL_TEXTURE_2D, atlas->texture_id);
@@ -297,7 +297,7 @@ gsk_gl_glyph_library_upload_glyph (GskGLGlyphLibrary *self,
{
pixel_data = cairo_image_surface_get_data (surface);
gl_format = GL_BGRA;
- gl_type = GL_UNSIGNED_BYTE;
+ gl_type = GL_UNSIGNED_INT_8_8_8_8_REV;
}
glPixelStorei (GL_UNPACK_ROW_LENGTH, stride / 4);
diff --git a/gsk/gl/gskgliconlibrary.c b/gsk/gl/gskgliconlibrary.c
index 9040d8e1d9..ffb07ff224 100644
--- a/gsk/gl/gskgliconlibrary.c
+++ b/gsk/gl/gskgliconlibrary.c
@@ -129,7 +129,7 @@ gsk_gl_icon_library_add (GskGLIconLibrary *self,
{
pixel_data = surface_data;
gl_format = GL_BGRA;
- gl_type = GL_UNSIGNED_BYTE;
+ gl_type = GL_UNSIGNED_INT_8_8_8_8_REV;
}
texture_id = GSK_GL_TEXTURE_ATLAS_ENTRY_TEXTURE (icon_data);
--
2.45.1

19
_service Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://gitlab.gnome.org/GNOME/gtk.git</param>
<param name="revision">4.16.5</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">disable</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">zst</param>
</service>
<service name="set_version" mode="manual" />
</services>

BIN
gtk-4.12.4.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
gtk-4.16.5.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

4
gtk.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: gtk
version: 4.16.5
mtime: 1730483449
commit: 08238a39a208af107688f938af398eb030b6f537

View File

@ -1,10 +1,645 @@
-------------------------------------------------------------------
Fri May 31 00:50:36 UTC 2024 - Federico Mena Quintero <federico@suse.com>
Fri Nov 1 20:12:23 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Add 0001-changes-to-fix-the-memorytexture-regression.patch for
bsc#1221052 - Fix icon rendering on big-endian s390x. This
corresponds to
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7111
- Update to version 4.16.5:
+ Clean up debug spew.
-------------------------------------------------------------------
Fri Nov 1 18:25:25 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.16.4:
+ GtkTextView:
- Fix some missing CSS invalidation
- Handle charsets in clipboard datatypes
+ GtkApplication: Respect GDK_DEBUG=no-portals
+ Printing:
- Avoid warnings for avahi errors
- Fix a segfault in the print dialog setup code
+ Accessibility: Handle NULL values in more places
+ Gdk:
- vulkan: Fix validation errors
- Fix 32bit build for the jpeg loader
+ Wayland: Fix a possible deadlock with high-priority sources
triggering Wayland roundtrips
+ Updated translations.
-------------------------------------------------------------------
Fri Oct 4 18:19:59 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.16.3:
+ GtkScrolledWindow: Fix criticals in size allocation code
+ GtkFileChooser: Fix a crash in the portal code
+ GtkPicture: Avoid unnecessary resizes
+ GtkVideo: Make dmabufs work without GL
+ Accessibility: Always realized non-widget accessibles
+ Wayland:
- Improve settings portal handling
- Improve fallback for cursor themes
- Sync default values for settings with schema defaults
+ Updated translations.
-------------------------------------------------------------------
Tue Oct 01 10:02:52 UTC 2024 - bjorn.lie@gmail.com
- Update to version 4.16.2+10:
* wayland: Look for default cursor theme in XDG directories
* wayland: Clear settings_portal when going to fallback with no
portal settings
* wayland: Use the same default cursor size as gsettings schema
* Updated translations.
-------------------------------------------------------------------
Tue Sep 24 06:51:43 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.16.2:
+ GtkLabel: Fix centered text in RTL
+ Gsk:
- Speed up some Vulkan operations
- Improve startup speed by avoiding initialization of GL and
Vulkan in most cases
- Reduce critials at startup to warnings
- Fix a crash on startup with some Vulkan drivers
- Fix a big texture leak in NGL
+ Gdk: Speed up memory format conversions
+ Wayland: Be more careful with mimetypes during DND or
copy-paste
+ Tools: builder-tool: Improve conversion of boxes
+ Updated translations.
-------------------------------------------------------------------
Fri Sep 13 14:39:14 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.16.1:
+ GtkFileChooser: Plug a memory leak
+ GtkCalendar: Avoid ending up with invalid dates
+ Printing: Fix initial printer selection in the print dialog
+ Gsk:
- Fix shadows for opaque textures
- Fix a crash in a corner case
+ Css: Make relative paths work again in theme files
+ Accessibility: Fix detection of the Flatpak portal
+ Updated translations.
-------------------------------------------------------------------
Sat Sep 7 08:00:50 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.16.0:
+ Note: This release changes the default GSK renderer to be
Vulkan, on Wayland. Other platforms still use ngl. The intent
of this change is to use the best available platform APIs. You
can still override the renderer choice using the GSK_RENDERER
environment variable.
+ We believe that most of the problems reported with the new
renderers during the 4.13 and 4.15 development cycles have been
addressed by now.
+ But the new renderers and dmabuf support are using graphics
drivers in different ways than the old gl renderer, and trigger
new driver bugs. Therefore, it is recommended to use the latest
mesa release (24.2) with the new renderers.
+ GtkScale: Fix positioning of scale values
+ GtkEmojiChooser: Make Control-clicks work for the recent
section
+ GtkPopover: Make sure focus lands on the right widget when
cascading
+ GtkSpinButton: Disable Emoji input for numeric spin buttons
+ GtkSingleSelection: Implement unselect_all
+ Accssibility:
- Fix roles for radio buttons
- Check if ATs are listening before exporting trees
- Add a check for sandboxed accessibility bus
- Fix handling of the error message relation
- Turn criticals into debug messages
- Set expanded states properly in menus
+ CSS:
- Fix a few issues on bigendian systems
- Avoid a crash with relative colors
+ GSK:
- Use the right GL context when exporting textures
- Don't let colors influence depth decisions
- Allow uploading of mipmap levels when tiling textures
+ GDK:
- Update keysyms from libX11 1.8.10
- Implement cpu-side mipmapping
- Use a thread pool for color conversions and mipmapping
+ Vulkan: Fix drag surface offsets
+ Wayland:
- Fix a crash
- Associate EGL windows with context later
+ X11:
- Fix initial EGL context creation
- Fix a problem with GL context creation
+ Broadway: Implement compute_size and request_layout
+ MacOS: Set transparent backgroiund for toplevel windows
+ Windows:
- Improve debug output
- Detect Mesas d3d12 driver and request GDI compat
+ Demos:
- Set window icons in demos
- Add a 64k x 64k image to the image scaling demo
+ Updated translations.
-------------------------------------------------------------------
Tue Aug 27 07:15:53 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.15.6:
+ GtkCheckButton: Add a grouped style class for radio buttons
+ GtkScale: Fix alignment and positioning problems
+ Css: Fix crashes in the variable support
+ Gsk:
- Make graphics offloading work better with kwin
- Make colorstate transfer functions more robust
- GC dead textures more agressively
- Only use a single render pass per frame
+ GL:
- Round damage rectangles properly
- Use the shared context when creating textures
- Fix a file descriptor leak in dmabuf export
+ Vulkan: Round damage rectangles properly
+ Wayland: Work with the kwin implementation of
xx-color-management-v4
+ Debugging:
- Show color state information in the inspector
- Collect input event traces in the recorder
- Add shortcuts for toggling recording: Super-r and for
screenshots: Super-c
- Split the GDK_DEBUG env var into GDK_DEBUG and GDK_DISABLE
- Add GDK_DISABLE=color-mgmt and GDK_DISABLE=offload
+ Tools: Add a 'Paste as node' action in gtk4-node-editor
+ Updated translations.
-------------------------------------------------------------------
Wed Aug 21 13:11:18 UTC 2024 - bjorn.lie@gmail.com
- Update to version 4.15.5+115:
* gpu:
- Be more aggressive about GC'ing dead textures
- The colorstate op doesn't need a colorstates arg
* win32: Adapt to default flag changes
* docs: Remove outdated information
* gdk: Beef up gdk_parse_debug_var
* egl: Don't bind to NULL surface unless surfaceless
* wayland: Create EGL window in make_current() if necessary
* gl: Use the shared GL context when creating GL textures
* emojichooser: Resize according to screen height
* GdkWin32: Drop unused variable
* WGL:
- Report paint region when presenting (SwapBuffers)
- Report backbuffer's damage to GDK
- Search pixel format with defined swap method (opengl32)
- Search pixel format with defined swap method (arb)
* Updated translations.
-------------------------------------------------------------------
Thu Aug 15 12:05:29 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Rebase 0001-Revert-Meson-Simplify-pkgconfig-file-generator.patch
with quilt.
-------------------------------------------------------------------
Mon Aug 12 07:06:16 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.15.5:
+ GtkTextView: ADd GtkTextBufferCommitNotify
+ CSS: Propagate color state information to GSK for many
features: colors, borders, shadows, text
+ Gdk:
- Fix an fd leak in the Vulkan code
- Fix a leak of EGLSurfaces and DMA buffers
- Set the opaque region of surfaces automatically based on
their content
+ Gsk:
- Fix Emoji rendering in Vulkan
- Rework color handling to take color states into account
- Implement more powerful occlusion culling
- Minimize our use of renderpasses
+ Debugging: The inspector shows details about color states
+ Deprecations:
- gdk_draw_context_begin/end_frame
- gdk_surface_set_opaque_region
+ Build: Require gstreamer 1.24
+ Updated translations.
- Drop 0002-Revert-no-pointer-viewport.patch: Fixed upstream.
-------------------------------------------------------------------
Fri Aug 2 20:17:08 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
- Add 0002-Revert-no-pointer-viewport.patch:
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6620
-------------------------------------------------------------------
Thu Aug 1 04:33:31 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Add missed optflags to CFLAGS.
-------------------------------------------------------------------
Wed Jul 31 13:29:25 UTC 2024 - Filip Kastl <filip.kastl@suse.com>
- Add -Wno-int-conversion to CFLAGS to enable compilation with
GCC 14.
-------------------------------------------------------------------
Tue Jul 30 19:42:09 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.15.4:
+ GtkPopover: Fix size allocation with wrapping labels
+ GtkColumnView: Check column visibility when measuring
+ CSS:
- Fix fallout from recent changes
- Make implementation of currentcolor inheritance match browsers
+ Gdk:
- Introduce GdkColorState for encoding color space information.
Currently, we support srgb, srgb-linear, rec2100-pq and
rec2100-linear
- Add color states to GdkTexture, as well as to the texture
builder and downloader objects, and convert as necessary
- Add GdkMemoryTextureBuilder
- Attach color states when loading or saving textures
- Add GdkCicpParams to create color state objects for cicp
tuples
- Drop GDK_DEBUG=vulkan-validate. Use
VK_INSTEANCE_LAYERS=VK_LAYER_KHRONOS_validation instead
+ Gsk:
- Improve caching of glyphs and textures
- Remove the uber shader
- Numerous bug fixes
- Fix corner cases in offload handling
- Implement occlusion culling for opaque content
- Allow offloading (some) transformed textures
- Take colorstate into account when compositing
- Add GDK_DEBUG=linear to opt into linear compositing
- Implement tiling for large textures
- Stop using descriptors and go back to simpler texture
management that should work better with older GL
- Use correct shader clip mode for glyphs
- Improve shadow rendering
+ Media: Attach color states to textures obtained from gstreamer
+ Wayland:
- Allow offloading GL textures via dmabuf export
- Suppot the xx-color-management-v4 protocol
+ Deprecations: GskGLShader and the render node
+ Tools:
- Improve the rendernode tool extract command
- Add an image tool that is about manipulating textures
+ Build: GTK now requires a C11 compiler
+ Updated translations.
-------------------------------------------------------------------
Mon Jul 1 10:45:41 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.15.3 (bsc#1221052):
+ Accessibility:
- Only emit notifications when cursor positions change in
GtkText.
- Fix handling of help text properties.
+ CSS: Fix some crashes introduced in recent currentcolor
changes.
+ DND: Avoid a critical.
+ Documentation: Fix many oversights and missing docs.
- Changes from version 4.15.2:
+ GtkFileChooserWidget:
- Plug some memory leaks.
- Make Ctrl-Shift-N create a new folder.
+ GtkPopover: Handle resizing and position changes better.
+ CSS:
- Support color(), oklab().
- Support color-mix() (https://www.w3.org/TR/css-color-5/).
- Support relative colors (https://www.w3.org/TR/css-color-5/).
- Support more colorspaces in color().
- Allow percentages for opacity.
- Handle currentcolor more correctly.
+ Accessibility: Avoid markup when reading labels.
+ GSK:
- Subset fonts when serializing node trees.
- Make ngl export render_texture results as dmabufs.
+ Wayland: Use xdg-dialog protocol for attached dialogs.
+ Documentation: Widget shortcuts and actions are now described
in the docs.
+ Debugging: Add GTK_DEBUG=css for warning about deprecated css
syntax.
+ Tools: rendernode-tool: Add an extract command for data urls.
+ Deprecations:
- CSS Color functions shade(), lighter(), darker(), alpha(),
mix().
+ Updated translations.
-------------------------------------------------------------------
Fri Jun 21 14:50:55 UTC 2024 - joan.torres@suse.com
- Update to version 4.15.1:
+ GtkGraphicsOffload: Don't crash without a child.
+ GtkSpinner: Don't animate when unmapped.
+ CSS:
- Support the :root selector.
- Support variables and custom properties.
- Implement math functions.
- Support modern syntax and calc in rgb() and hsl().
+ Icontheme:
- Make symbolic svg loading more efficient.
- Handle color-free symbolics more efficiently.
+ Accessibility:
- Make the gtk-demo sidebar search more accessible.
- Stop emitting focus events.
- Realize child contexts when necessary.
+ GDK:
- Support XDG_ACTIVATION_TOKEN.
- dmabuf: Be more defensive when importing unknown formats to
GL.
- dmabuf: Use narrow range for YUV.
- vulkan: Recreate swapchains when necessary or beneficial.
+ GSK:
- Improve logging for GDK_DEBUG=offload.
- Improve logging for GSK_DEBUG=renderer.
- gpu: Warn about inefficient texture import.
- gpu: Handle tiny offscreens correctly.
- vulkan: Add profiler marks in various places.
- vulkan: Fix a problem with imported dmabufs showing up black.
- cairo: Speed up mask nodes, since we use them for symbolic
icons.
+ Wayland: Use wl_compositor version 6.
+ X11: Implement a missing method.
+ Build: Fix many ubsan warnings.
+ Debugging:
- Show more texture details in the recorder.
- Use GTK_DEBUG=css to see CSS deprecations.
+ Deprecations: Use of @name colors in CSS.
+ Updated translations.
-------------------------------------------------------------------
Fri May 3 14:40:14 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.14.4:
+ GtkGraphicsOffload: Don't crash without a child.
+ Icontheme:
- Make symbolic svg loading more efficient.
- Handle color-free symbolics more efficiently.
+ Accessibility:
- Make the gtk-demo sidebar search more accessible.
- Stop emitting focus events.
+ GDK:
- Support XDG_ACTIVATION_TOKEN.
- dmabuf: Be more defensive when importing unknown formats.
- dmabuf: Use narrow range for YUV.
+ GSK: gpu: Handle tiny offscreens correctl.
+ Build: Fix many ubsan warning.
+ Updated translations.
-------------------------------------------------------------------
Fri Apr 19 12:57:02 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.14.3:
+ GtkShortcutManager: Track the propagation phase of added
controllers.
+ Accessibility: Implement GtkAccessibleRange for scrollbars.
+ X11:
- Fix some confusing debug messages
- Drop a no-longer-relevant optimization that was interfering
with getting the current window manager capabilities.
+ Tools: Support generating pdf in gtk4-rendernode-tool.
+ Updated translations.
-------------------------------------------------------------------
Thu Apr 4 08:17:21 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.14.2:
+ GtkScale: Improve positioning of values in some cases.
+ Theme: Make progress in entries visible.
+ Accessibility: Fix text insertion handling.
+ GDK:
- dnd: Use the default cursor durion motion
- dnd: Use a better cursor for indicating the move action
+ GSK:
- gl: Handle offloads in offscreen context better
- Fix text rendering problems with some fonts
+ Wayland:
- Tighten up some protocol version checks
- Use the presentation time protocol
- Fix a crash with subsurfaces
- Improve settings portal handling
+ Debugging: Add font settings in the inspector.
+ Demos:
- Clean up the application demo
- Update cursor images for the cursor demo
+ Updated translations.
-------------------------------------------------------------------
Sun Mar 17 09:43:01 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.14.1:
+ GtkTextView: Fix a mixup of cursor and anchor when retrieving
surrounding text in input methods.
+ Printing: Avoid accessing freed printers.
+ Accessibility: Fix memory leaks.
+ GDK:
- Rename the GDK_VULKAN_SKIP environment variable to
GDK_VULKAN_DISABLE.
- Add a GDK_GL_DISABLE environment variable.
+ GSK:
- Rename the GSK_GPU_SKIP environment variable to
GSK_GPU_DISABLE.
- Speed up handling of repeated ops, which should help for
text.
- Speed up the inner loop of text node conversion.
- Drop the glyph-align optimization flag.
- ngl: Avoid reusing frames while they are in use.
- Fix flickering thumbnails in nautilus.
- Speed up buffer handling in both ngl and Vulkan.
+ Demos: Skip demos using gl shaders when we're not using the gl
renderer.
+ Build:
- Fix some ubsan warnings.
- Avoid zink in ci since it spams stderr.
+ Updated translations.
-------------------------------------------------------------------
Tue Mar 12 13:38:30 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.14.0:
+ GtkTextView:
- Don't snapshot children twice.
- Don't blink the cursor when hidden.
+ GtkEmojiChooser: Fix presentation selector handling.
+ GtkSnapshot: Fix wrong nodes with transformed shadows.
+ GtkIMContext: Make gtk_im_context_activate_osk public.
+ Accessibility:
- Implement get_contents_at for all our text widgets.
- Add GtkAccessibleText.get_default_attributes.
+ GSK:
- Don't fall back to cairo for software rendering. gl+llvmpipe
is better.
- Round vertical glyph position to a device pixel position if
the font is hinted.
- Fix problems with clip handling.
- Make vulkan and ngl match their font handling.
- Fix some corner-cases with offloading and clips.
- Fix problem with rendering of missing glyphs in hinted fonts.
+ Updated translations.
-------------------------------------------------------------------
Mon Mar 4 08:08:06 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.13.9:
+ GtkEditable: Fix preconditions to be not too strict.
+ GtkEmojiChooser: Support search in the locale as well as in
English.
+ GtkIconTheme: Make gtk_icon_paintable_new_for_file support
symbolics.
+ GtkVideo: Fix a problem with cursor handling that could lead to
crashes.
+ Accessibility:
- Fix GetCharacterAtOffset implementation.
- Add a Terminal role.
- Make TextCaretMoved match gtk3.
- Support multiple levels of GtkEditable delegates.
+ GSK:
- Make the node parser more flexible for text nodes.
- Change the way font scaling is handled to avoid clipping.
- Fix handling of missing glyphs in the new renderers.
+ X11: Don't claim to support shadows without a compositor.
+ Wayland: Fix handling of output scales.
+ Tools: Add a compare command to gtk4-rendernode-tool.
+ Build: Fix some ubsan complaints.
-------------------------------------------------------------------
Thu Feb 22 11:17:20 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.13.8.1+7:
+ Fix Crash in gtk_file_dialog_save() with initial filename.
+ x11: Shadows require compositing
-------------------------------------------------------------------
Wed Feb 21 07:59:25 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.13.8:
+ Accessibility:
- Add a GtkAccessibleText interface for allowing 3rd party.
text widgets (notably vte) to be accessible.
- Avoid duplicate accessible descriptions.
- Fix GetAccessibleAtPoint.
+ GSK:
- Avoid offscreens for disjoint containers.
- Don't use the gpu renderers with llvmpipe.
- Fix various rendering issues found by tests.
- Allow unnormalized node bounds again.
- Fix a broken case of rounded-rect intersection.
- Fix handling of external textures in gpu renderers.
- Make gpu renderers work with WGL on Windows.
+ build: Allow building without dmabuf support on (old) Linux.
+ X11: Fix monitor enter/leave signals.
+ Updated translations.
-------------------------------------------------------------------
Mon Feb 12 16:50:02 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.13.7:
+ GtkFileChooser: Speed up opening.
+ GtkCalendar: Add some missing setters and getters.
+ Accessibility:
- Add socket support for webkit accessibility.
- Implement AT-SPI text for GtkText.
- Implement AT-SPI component generically.
- Add an announce API.
+ GSK:
- Fix a crash in the vulkan renderer.
- Make nodeparser allow aliases for fonts again.
- Implement cache eviction for glyph and texture caches.
- Fix ngl shaders to work on GL < 4.0.
- Require GL 3.3 for the ngl renderer.
- Fix problems with scaled shadows.
- Fix problems with holes for underlaid subsurfaces.
- Improve handling of scales and glyph cache efficiency.
+ Media:
- Support dmabufs in the gstreamer backend. This allows
zero-copy video playback on Wayland when paired with
hardware video decoding.
- Drop the experimental ffmpeg backend. It hasn't been
building for a year.
+ Wayland:
- Commit empty frames if and double-buffered state is pending.
- Fix monitor size information when using mutter without
the scale-monitor-framebuffer setting.
- Clear the current tablet on tab leave, fixing a crash.
+ Tools: Make the crash handling in gtk4-node-editor more robust.
+ Updated translations.
-------------------------------------------------------------------
Thu Feb 8 15:30:34 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.13.6:
+ GtkColumnView:
- Fix infinite loops in dispose.
- Fix problems with weak ref cycles in GtkExpression.
+ GtkListView:
- Fix some corner cases with sections during insertions and
deletions.
- Don't double-recycle widgets.
+ GtkStack: Add automatic cleanup for GtkStackPage.
+ GDK:
- Use standard cursor names for drag cursors.
- Enable fractional scaling with gl by default.
+ GSK:
- Many fixes and improvements to the unified renderers:
- Fix text rendering with the uber shader.
- Fix rounding issues with fractional scales.
- Fix some memory leaks.
- Many text rendering fixes.
- Implement subpixel positioning for glyphs.
- Support custom fonts in node files.
- Add tests for font rendering.
- Fix drawing of repeat nodes.
- Implement subpixels positioning.
- Evict stale textures, glyphs and atlases from the cache.
- Some fixes and improvements to the GL renderer:
- Fix problems with GLES on Nvidia.
- Avoid a crash in the mask demo.
- Respect opacity of the first child node in containers.
- Some fixes and improvements to the fallback renderer:
- Fix drawing of repeat nodes.
- Make ngl the default renderer.
+ Wayland:
- Fix problems with tablet cursors.
- Fix problems without seats.
+ Accessibility:
- Respect a separate "show-status-shapes setting.
- Fix change notification for accessible names on some widgets.
+ Inspector: Show the git commit in devel builds.
+ Tools:
- Make gtk4-node-editor autosave its contents.
- Add a benchmark command to gtk4-rendernode-tool.
+ Updated translations.
- Changes from version 4.13.5:
+ This release adds two new GSK renderers called vulkan and ngl,
that are built from the same sources. The new renderers can
handle many corner cases correctly that the current gl renderer
does not handle, and they offer advantages such as antialiasing
and supersampled gradients.
+ GtkDropdown: Fix display of initial selection
+ GtkShortcutsWindow: Make the window adapt to smaller screen
widths
+ GtkTextView: Fix a possible NULL dereference in history
+ GDK: Make the png loader safer against overflows
+ GL: Fix some errors in handling of texture formats and mipmaps
- Switch to source-service managed sources.
- Enable sassc BuildRequires, as we're now building from git.
- Enable pkgconfig(vulkan) BuildRequires: upstream recommends
enabling vulkan by now.
- Add shaderc BuildRequires: new dependency for the vulkan
renderer.
-------------------------------------------------------------------
Thu Feb 8 15:28:10 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.12.5:
+ GtkColumnView: Fix a crash on dispose.
+ GtkEmojiChooser:
- Update to CLDR v44.
- Add more translations.
+ GtkFileDialog:
- Return an error if no file is selected.
- Make closing the portal file chooser work.
+ GtkDropDown: Fix display of the initial checkmark.
+ GtkShortcutsWindow: Reduce the minimum width.
+ GDK: Make the png loader safer against overflow.
+ Wayland: Fix cursor handling with graphics tablets.
-------------------------------------------------------------------
Fri Dec 1 11:05:59 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package gtk4
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2010 Dominique Leuenebrger, Amsterdam, Netherlands
#
# All modifications and additions to the file contributed by third parties
@ -17,7 +17,6 @@
#
# When updating the binary version, do not forget to also update baselibs.conf
%define gtk_binary_version 4.0.0
%define _name gtk
@ -29,14 +28,14 @@
%endif
Name: gtk4
Version: 4.12.4
Version: 4.16.5
Release: 0
Summary: The GTK+ toolkit library (version 4)
License: LGPL-2.1-or-later
Group: Development/Libraries/X11
URL: https://www.gtk.org/
Source: https://download.gnome.org/sources/gtk/4.12/%{_name}-%{version}.tar.xz
Source: %{_name}-%{version}.tar.zst
Source2: settings.ini
Source3: macros.gtk4
Source99: gtk4-rpmlintrc
@ -47,9 +46,6 @@ Source99: gtk4-rpmlintrc
# PATCH-FIX-OPENSUSE 0001-Revert-Meson-Simplify-pkgconfig-file-generator.patch -- Revert "Meson: Simplify pkgconfig file generator"
Patch0: 0001-Revert-Meson-Simplify-pkgconfig-file-generator.patch
# PATCH-FIX-OPENSUSE 0001-changes-to-fix-the-memorytexture-regression.patch -- bsc#1221052 Fix icon rendering on big-endian s390x
Patch1: 0001-changes-to-fix-the-memorytexture-regression.patch
BuildRequires: cups-devel >= 2.0
# We do not support building against cups 2.3 betas
BuildConflicts: (cups-devel > 2.3 with cups-devel < 2.3.0)
@ -65,10 +61,8 @@ BuildRequires: gettext-tools >= 0.19.7
BuildRequires: hicolor-icon-theme
BuildRequires: meson >= 0.50.1
BuildRequires: pkgconfig
# sassc is ONLY needed when building gitcheckouts, and not when using tarball releases
#BuildRequires: sassc
# Disabled until upstream enables vulkan support by default
# BuildRequires: vulkan-devel
BuildRequires: sassc
BuildRequires: shaderc
BuildRequires: xsltproc
BuildRequires: pkgconfig(atk) >= 2.15.1
BuildRequires: pkgconfig(atk-bridge-2.0)
@ -86,6 +80,7 @@ BuildRequires: pkgconfig(gobject-2.0) >= 2.53.7
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.72.0
BuildRequires: pkgconfig(graphene-1.0) >= 1.10.0
BuildRequires: pkgconfig(graphene-gobject-1.0) >= 1.10.0
BuildRequires: pkgconfig(vulkan)
%if %{with gst}
BuildRequires: pkgconfig(gstreamer-gl-1.0)
BuildRequires: pkgconfig(gstreamer-player-1.0)
@ -104,7 +99,7 @@ BuildRequires: pkgconfig(tracker-sparql-3.0)
BuildRequires: pkgconfig(wayland-client) >= 1.21.0
BuildRequires: pkgconfig(wayland-cursor) >= 1.9.91
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-protocols) >= 1.25
BuildRequires: pkgconfig(wayland-protocols) >= 1.36
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xcursor)
@ -238,8 +233,6 @@ Requires: %{name}-tools = %{version}
Requires: gettext-its-%{name} >= %{version}
Requires: libgtk-4-1 = %{version}
Requires: typelib-1_0-Gtk-4_0 = %{version}
# # Disabled until upstream enables vulkan support by default
# Requires: vulkan-devel
%description devel
GTK+ is a multi-platform toolkit for creating graphical user interfaces.
@ -264,6 +257,7 @@ This package enhances gettext with an International Tag Set for GTK+ 4
%autosetup -p1 -n %{_name}-%{version}
%build
export CFLAGS="%{optflags} -Wno-int-conversion"
%meson \
-Ddocumentation=true \
-Dbroadway-backend=true \
@ -338,25 +332,11 @@ cp %{SOURCE3} %{buildroot}%{_rpmmacrodir}
%files tools
%{_bindir}/gtk4-broadwayd
%{_bindir}/gtk4-launch
%{_bindir}/gtk4-path-tool
%{_bindir}/gtk4-query-settings
%{_bindir}/gtk4-update-icon-cache
%dir %{_datadir}/gtk-4.0/emoji
%{_datadir}/gtk-4.0/emoji/da.gresource
%{_datadir}/gtk-4.0/emoji/de.gresource
%{_datadir}/gtk-4.0/emoji/es.gresource
%{_datadir}/gtk-4.0/emoji/fr.gresource
%{_datadir}/gtk-4.0/emoji/hu.gresource
%{_datadir}/gtk-4.0/emoji/it.gresource
%{_datadir}/gtk-4.0/emoji/ko.gresource
%{_datadir}/gtk-4.0/emoji/lt.gresource
%{_datadir}/gtk-4.0/emoji/ms.gresource
%{_datadir}/gtk-4.0/emoji/nl.gresource
%{_datadir}/gtk-4.0/emoji/pl.gresource
%{_datadir}/gtk-4.0/emoji/pt.gresource
%{_datadir}/gtk-4.0/emoji/ru.gresource
%{_datadir}/gtk-4.0/emoji/sv.gresource
%{_datadir}/gtk-4.0/emoji/uk.gresource
%{_datadir}/gtk-4.0/emoji/zh.gresource
%{_datadir}/gtk-4.0/emoji/*.gresource
%{_mandir}/man1/gtk4-broadwayd.1%{?ext_man}
%{_mandir}/man1/gtk4-launch.1%{?ext_man}
%{_mandir}/man1/gtk4-query-settings.1%{?ext_man}
@ -373,6 +353,7 @@ cp %{SOURCE3} %{buildroot}%{_rpmmacrodir}
%{_bindir}/gtk4-demo-application
%{_bindir}/gtk4-encode-symbolic-svg
%{_bindir}/gtk4-icon-browser
%{_bindir}/gtk4-image-tool
%{_bindir}/gtk4-node-editor
%{_bindir}/gtk4-print-editor
%{_bindir}/gtk4-rendernode-tool
@ -404,11 +385,13 @@ cp %{SOURCE3} %{buildroot}%{_rpmmacrodir}
%{_datadir}/metainfo/org.gtk.PrintEditor4.appdata.xml
%{_datadir}/metainfo/org.gtk.WidgetFactory4.appdata.xml
%{_mandir}/man1/gtk4-builder-tool.1%{?ext_man}
%{_mandir}/man1/gtk4-demo.1%{?ext_man}
%{_mandir}/man1/gtk4-demo-application.1%{?ext_man}
%{_mandir}/man1/gtk4-demo.1%{?ext_man}
%{_mandir}/man1/gtk4-encode-symbolic-svg.1%{?ext_man}
%{_mandir}/man1/gtk4-icon-browser.1%{?ext_man}
%{_mandir}/man1/gtk4-image-tool.1%{?ext_man}
%{_mandir}/man1/gtk4-node-editor.1%{?ext_man}
%{_mandir}/man1/gtk4-path-tool.1%{?ext_man}
%{_mandir}/man1/gtk4-rendernode-tool.1%{?ext_man}
%{_mandir}/man1/gtk4-widget-factory.1%{?ext_man}
@ -433,6 +416,7 @@ cp %{SOURCE3} %{buildroot}%{_rpmmacrodir}
%{_datadir}/gir-1.0/*.gir
%{_includedir}/gtk-4.0/
%{_libdir}/pkgconfig/gtk4.pc
%{_libdir}/pkgconfig/gtk4-atspi.pc
%{_libdir}/pkgconfig/gtk4-broadway.pc
%{_libdir}/pkgconfig/gtk4-wayland.pc
%{_libdir}/pkgconfig/gtk4-unix-print.pc