Sync from SUSE:SLFO:Main gtk4 revision f9cf0b9f253b82ae588ccfa68a87c237

This commit is contained in:
Adrian Schröter 2024-07-22 17:09:47 +02:00
parent f82e47e8ce
commit e2e69f2880
8 changed files with 285 additions and 282 deletions

View File

@ -13,11 +13,11 @@ This reverts commit 802bf4199911c811938b0454a876089bafa97dba.
meson.build | 47 +++++++++++++++++++++++++++++++++--------------
1 file changed, 33 insertions(+), 14 deletions(-)
Index: gtk-4.10.1/meson.build
Index: gtk-4.12.1/meson.build
===================================================================
--- gtk-4.10.1.orig/meson.build
+++ gtk-4.10.1/meson.build
@@ -438,6 +438,9 @@ if not os_win32
--- gtk-4.12.1.orig/meson.build
+++ gtk-4.12.1/meson.build
@@ -430,6 +430,9 @@ if not os_win32
endif
endif
@ -27,7 +27,7 @@ Index: gtk-4.10.1/meson.build
cairo_backends = []
foreach backend: [ ['cairo-xlib', cairo_req, x11_enabled],
['cairo-win32', cairo_req, win32_enabled],
@@ -566,14 +569,26 @@ if x11_enabled
@@ -562,14 +565,26 @@ if x11_enabled
cdata.set('HAVE_RANDR15', xrandr15_dep.found())
endif
@ -54,55 +54,15 @@ Index: gtk-4.10.1/meson.build
# Check whether libepoxy is built with EGL support on Windows
endif
@@ -803,7 +818,16 @@ gsk_private_packages = [] # all already
pangoft2_pkgs = (wayland_enabled or x11_enabled) ? ['pangoft2'] : []
gtk_private_packages = pangoft2_pkgs
-pkgs = []
+gdk_extra_libs = pc_gdk_extra_libs
+gsk_extra_libs = []
+gtk_extra_libs = []
+
+gdk_extra_cflags = []
+gsk_extra_cflags = []
+gtk_extra_cflags = []
+
+pkgs = [ 'gtk4' ]
+
pkg_targets = []
display_backends = []
foreach backend: [ 'broadway', 'macos', 'wayland', 'win32', 'x11', ]
@@ -820,23 +844,18 @@ common_pc_variables = [
'gtk_host=@0@-@1@'.format(host_machine.cpu_family(), host_machine.system()), # FIXME
]
-pkg_config.generate(libgtk,
- filebase: 'gtk4',
- unescaped_variables: common_pc_variables,
- name: 'GTK',
- description: 'GTK Graphical UI Library',
- requires: gdk_packages + gsk_packages + gtk_packages,
- subdirs: ['gtk-@0@'.format(gtk_api_version)],
-)
-meson.override_dependency('gtk4', libgtk_dep)
-
foreach pkg: pkgs
pkg_config.generate(
filebase: pkg,
unescaped_variables: common_pc_variables,
@@ -837,6 +852,7 @@ pkg_config.generate(libgtk,
name: 'GTK',
description: 'GTK Graphical UI Library',
- requires: 'gtk4',
+ requires: gdk_packages + gsk_packages + gtk_packages,
+ requires_private: gdk_private_packages + gsk_private_packages + gtk_private_packages,
+ libraries: ['-L${libdir}', '-lgtk-4'],
+ libraries_private: gdk_extra_libs + gsk_extra_libs + gtk_extra_libs,
+ subdirs: ['gtk-@0@'.format(gtk_api_version)],
+ extra_cflags: gdk_extra_cflags + gsk_extra_cflags + gtk_extra_cflags,
requires: gdk_packages + gsk_packages + gtk_packages,
+ requires_private: wayland_pkgs,
subdirs: ['gtk-@0@'.format(gtk_api_version)],
)
meson.override_dependency(pkg, libgtk_dep)
endforeach
@@ -847,10 +866,10 @@ if os_unix
meson.override_dependency('gtk4', libgtk_dep)
@@ -859,10 +875,10 @@ if os_unix
unescaped_variables: common_pc_variables,
name: 'GTK',
description: 'GTK Unix print support',

View File

@ -0,0 +1,48 @@
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

View File

@ -1,118 +0,0 @@
From 966a23503a2e8bbb948270e06f3eb13ca4c06632 Mon Sep 17 00:00:00 2001
From: Benjamin Otte <otte@redhat.com>
Date: Tue, 2 May 2023 19:48:54 +0200
Subject: [PATCH] css: Don't transition to currentColor
Transition to the color that is in use instead.
Fixes crashes because currentColor is not an RGBA color and
therefor could not be queried later.
Fixes #5798
---
gtk/gtkcssfiltervalue.c | 16 ++++++++--------
gtk/gtkcssshadowvalue.c | 4 ++--
gtk/gtkcssshadowvalueprivate.h | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/gtk/gtkcssfiltervalue.c b/gtk/gtkcssfiltervalue.c
index ed334979cb6..84f581121c5 100644
--- a/gtk/gtkcssfiltervalue.c
+++ b/gtk/gtkcssfiltervalue.c
@@ -102,10 +102,10 @@ gtk_css_filter_clear (GtkCssFilter *filter)
}
static void
-gtk_css_filter_init_identity (GtkCssFilter *filter,
- GtkCssFilterType type)
+gtk_css_filter_init_identity (GtkCssFilter *filter,
+ const GtkCssFilter *other)
{
- switch (type)
+ switch (other->type)
{
case GTK_CSS_FILTER_BRIGHTNESS:
filter->brightness.value = _gtk_css_number_value_new (1, GTK_CSS_NUMBER);
@@ -135,7 +135,7 @@ gtk_css_filter_init_identity (GtkCssFilter *filter,
filter->blur.value = _gtk_css_number_value_new (0, GTK_CSS_PX);
break;
case GTK_CSS_FILTER_DROP_SHADOW:
- filter->drop_shadow.value = gtk_css_shadow_value_new_filter ();
+ filter->drop_shadow.value = gtk_css_shadow_value_new_filter (other->drop_shadow.value);
break;
case GTK_CSS_FILTER_NONE:
default:
@@ -143,7 +143,7 @@ gtk_css_filter_init_identity (GtkCssFilter *filter,
break;
}
- filter->type = type;
+ filter->type = other->type;
}
#define R 0.2126
@@ -466,7 +466,7 @@ gtk_css_value_filter_equal (const GtkCssValue *value1,
{
GtkCssFilter filter;
- gtk_css_filter_init_identity (&filter, larger->filters[i].type);
+ gtk_css_filter_init_identity (&filter, &larger->filters[i]);
if (!gtk_css_filter_equal (&larger->filters[i], &filter))
{
@@ -590,7 +590,7 @@ gtk_css_value_filter_transition (GtkCssValue *start,
{
GtkCssFilter filter;
- gtk_css_filter_init_identity (&filter, start->filters[i].type);
+ gtk_css_filter_init_identity (&filter, &start->filters[i]);
gtk_css_filter_transition (&result->filters[i],
&start->filters[i],
&filter,
@@ -602,7 +602,7 @@ gtk_css_value_filter_transition (GtkCssValue *start,
{
GtkCssFilter filter;
- gtk_css_filter_init_identity (&filter, end->filters[i].type);
+ gtk_css_filter_init_identity (&filter, &end->filters[i]);
gtk_css_filter_transition (&result->filters[i],
&filter,
&end->filters[i],
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index 66029dbff44..fead476c00a 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -331,7 +331,7 @@ gtk_css_shadow_value_new (ShadowValue *shadows,
}
GtkCssValue *
-gtk_css_shadow_value_new_filter (void)
+gtk_css_shadow_value_new_filter (const GtkCssValue *other)
{
ShadowValue value;
@@ -340,7 +340,7 @@ gtk_css_shadow_value_new_filter (void)
value.voffset = _gtk_css_number_value_new (0, GTK_CSS_NUMBER);
value.radius = _gtk_css_number_value_new (0, GTK_CSS_NUMBER);
value.spread = _gtk_css_number_value_new (0, GTK_CSS_NUMBER);
- value.color = _gtk_css_color_value_new_current_color ();
+ value.color = gtk_css_value_ref (other->shadows[0].color);
return gtk_css_shadow_value_new (&value, 1, TRUE);
}
diff --git a/gtk/gtkcssshadowvalueprivate.h b/gtk/gtkcssshadowvalueprivate.h
index 21efac19080..a2cf97688b0 100644
--- a/gtk/gtkcssshadowvalueprivate.h
+++ b/gtk/gtkcssshadowvalueprivate.h
@@ -35,7 +35,7 @@
G_BEGIN_DECLS
GtkCssValue * gtk_css_shadow_value_new_none (void);
-GtkCssValue * gtk_css_shadow_value_new_filter (void);
+GtkCssValue * gtk_css_shadow_value_new_filter (const GtkCssValue *other);
GtkCssValue * gtk_css_shadow_value_parse (GtkCssParser *parser,
gboolean box_shadow_mode);
--
GitLab

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

Binary file not shown.

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

Binary file not shown.

View File

@ -1,100 +0,0 @@
From 4f47683710bbb4b56c286c6ee6a5c394fcf2b755 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Wed, 29 Mar 2023 02:23:46 +0000
Subject: [PATCH] Merge branch 'wip/otte/trelistmodel-fixage' into 'main'
treelistmodel: Don't add items in reverse
Closes #5707
See merge request GNOME/gtk!5744
(cherry picked from commit c5a53f235a2ed1b0acd0a8c29153e62377262d04)
1718db14 treelistmodel: Don't add items in reverse
cd860beb Add a test for splicing treelistmodel
---
gtk/gtktreelistmodel.c | 2 +-
testsuite/gtk/treelistmodel.c | 46 +++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/gtk/gtktreelistmodel.c b/gtk/gtktreelistmodel.c
index dd3b3009ccc..1e55323c0a4 100644
--- a/gtk/gtktreelistmodel.c
+++ b/gtk/gtktreelistmodel.c
@@ -357,7 +357,7 @@ gtk_tree_list_model_items_changed_cb (GListModel *model,
}
tree_added = added;
- for (i = 0; i < added; i++)
+ for (i = added; i-- > 0;)
{
child = gtk_rb_tree_insert_before (node->children, child);
child->parent = node;
diff --git a/testsuite/gtk/treelistmodel.c b/testsuite/gtk/treelistmodel.c
index 941ac3d306b..98493a3ba56 100644
--- a/testsuite/gtk/treelistmodel.c
+++ b/testsuite/gtk/treelistmodel.c
@@ -261,6 +261,51 @@ test_remove_some (void)
g_object_unref (tree);
}
+static void
+splice (GListStore *store,
+ guint pos,
+ guint removed,
+ guint *numbers,
+ guint added)
+{
+ GObject **objects = g_newa (GObject *, added);
+ guint i;
+
+ for (i = 0; i < added; i++)
+ {
+ /* 0 cannot be differentiated from NULL, so don't use it */
+ g_assert_cmpint (numbers[i], !=, 0);
+ objects[i] = g_object_new (G_TYPE_OBJECT, NULL);
+ g_object_set_qdata (objects[i], number_quark, GUINT_TO_POINTER (numbers[i]));
+ }
+
+ g_list_store_splice (store, pos, removed, (gpointer *) objects, added);
+
+ for (i = 0; i < added; i++)
+ g_object_unref (objects[i]);
+}
+
+static void
+test_splice (void)
+{
+ GtkTreeListModel *tree = new_model (100, TRUE);
+ gpointer item;
+
+ assert_model (tree, "100 100 100 99 98 97 96 95 94 93 92 91 90 90 89 88 87 86 85 84 83 82 81 80 80 79 78 77 76 75 74 73 72 71 70 70 69 68 67 66 65 64 63 62 61 60 60 59 58 57 56 55 54 53 52 51 50 50 49 48 47 46 45 44 43 42 41 40 40 39 38 37 36 35 34 33 32 31 30 30 29 28 27 26 25 24 23 22 21 20 20 19 18 17 16 15 14 13 12 11 10 10 9 8 7 6 5 4 3 2 1");
+ assert_changes (tree, "");
+
+ item = g_list_model_get_item (G_LIST_MODEL (tree), 1);
+ g_assert_true (G_IS_LIST_MODEL (item));
+ splice (item, 0, 5, (guint[5]) { 300, 301, 302, 303, 304 }, 5);
+ /* expected */
+ assert_model (tree, "100 100 300 301 302 303 304 95 94 93 92 91 90 90 89 88 87 86 85 84 83 82 81 80 80 79 78 77 76 75 74 73 72 71 70 70 69 68 67 66 65 64 63 62 61 60 60 59 58 57 56 55 54 53 52 51 50 50 49 48 47 46 45 44 43 42 41 40 40 39 38 37 36 35 34 33 32 31 30 30 29 28 27 26 25 24 23 22 21 20 20 19 18 17 16 15 14 13 12 11 10 10 9 8 7 6 5 4 3 2 1");
+ /* real outcome */
+ // assert_model (tree, "100 100 304 303 302 301 300 95 94 93 92 91 90 90 89 88 87 86 85 84 83 82 81 80 80 79 78 77 76 75 74 73 72 71 70 70 69 68 67 66 65 64 63 62 61 60 60 59 58 57 56 55 54 53 52 51 50 50 49 48 47 46 45 44 43 42 41 40 40 39 38 37 36 35 34 33 32 31 30 30 29 28 27 26 25 24 23 22 21 20 20 19 18 17 16 15 14 13 12 11 10 10 9 8 7 6 5 4 3 2 1");
+ assert_changes (tree, "2-5+5");
+
+ g_object_unref (tree);
+}
+
/* Test for https://gitlab.gnome.org/GNOME/gtk/-/issues/4595 */
typedef struct _DemoNode DemoNode;
@@ -391,6 +436,7 @@ main (int argc, char *argv[])
g_test_add_func ("/treelistmodel/expand", test_expand);
g_test_add_func ("/treelistmodel/remove_some", test_remove_some);
+ g_test_add_func ("/treelistmodel/remove_splice", test_splice);
g_test_add_func ("/treelistmodel/collapse-change", test_collapse_change);
return g_test_run ();
--
GitLab

View File

@ -1,3 +1,215 @@
-------------------------------------------------------------------
Fri May 31 00:50:36 UTC 2024 - Federico Mena Quintero <federico@suse.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
-------------------------------------------------------------------
Fri Dec 1 11:05:59 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.12.4:
+ a11y: Tweak name computation for some corner cases.
+ gdk:
- gl: Improve our use of GLES a bit (use vertex arrays and
GL_BGRA if available)
- Fix some errors in our memory format tables
+ gsk:
- gl: handle texture-scale nodes more faithfully
- gl: Fix icon padding in the atlas
+ Tools: Add a --undecorated option to gtk4-rendernode-tool.
+ Updated translations.
-------------------------------------------------------------------
Thu Sep 28 14:47:46 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.12.3:
+ GtkWindow: Don't assume titlebars are GtkHeaderBar
+ GtkTreeView: Fix a crash in gtk_tree_view_is_blank_at_pos
+ printing: Fix some issues with the portal implementation
+ GSK:
- Some optimizations in the GL renderer
- Fix memory leaks in the Broadway renderer
+ demos: Fix a crash in gtk4-demo
+ Updated translations.
-------------------------------------------------------------------
Wed Sep 20 22:39:12 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>
- Update to version 4.12.2:
+ GtkTooltip: Don't cross native boundaries when looking for
tooltips.
+ GtkCenterLayout, GtkEntry, GtkSearchEntry: Fix some issues with
baseline handling.
+ GtkSwitch: Respect text direction.
+ Theme: Use relative font sizes.
+ GSK:
- Make repeated gradients match between GL and cairo.
- Make rounded rect shrinking match between Vulkan, GL and
cairo.
- Fix parsing of text nodes with color glyphs.
- Restrict an optimization to the cases where it is correct.
- Fix rendering of shadows with opacity.
+ Updated translations.
- Drop merged upstream patch: e001b421.patch.
-------------------------------------------------------------------
Wed Sep 20 18:37:13 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Add e001b421.patch: tooltip: don't cross native boundaries.
-------------------------------------------------------------------
Thu Aug 31 12:51:57 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Re-add 0001-Revert-Meson-Simplify-pkgconfig-file-generator.patch
and rebased/simplified (less correct, but sufficient for us) for
4.12.1.
-------------------------------------------------------------------
Fri Aug 25 18:14:34 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.12.1:
+ GtkGridView: Fix a crash when scrolling
+ GtkColumnView: Fix a refcounting issue in the new scroll_to api
+ GtkTreeView: Fix style classes for sort arrows
+ GtkEntry: Improve tracking of user changes (for undo)
+ GtkNotebook: Fix a critical when switching pages
+ GtkColor/FontDialogButton: Make these widgets activatable
+ GtkMenuButton:
- Fix problems with focus handling
- Fix problems with DND
+ Printing: Fix the cpdb backend build
+ GSK: Fix issues with color matrix nodes
+ Wayland: Fix a crash with compositors other than gnome-shell
+ Updated translations.
- Drop patches fixed upstream:
+ 0001-Revert-Meson-Simplify-pkgconfig-file-generator.patch
+ 6af9dc86.patch
-------------------------------------------------------------------
Mon Aug 21 11:17:26 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Add 6af9dc86.patch: print: Revert "Start sorting apart includes"
change for gtkprinteroptionprivate.h.
-------------------------------------------------------------------
Mon Aug 7 09:55:17 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.12.0:
+ List widgets: Add scroll_to APIs
+ GtkFileLauncher: Add an always-ask property
+ GtkTextView: Make backspace behavior match GtkEntry
+ gsk: Fix handling of luminance in mask nodes
+ Text rendering: Automate the setting of gtk-hint-font-metrics
from the scale factor. This improves font rendering in flatpaks
+ Wayland:
- Fix behavior of stylus buttons
- Support suspended window state
+ Vulkan: Many improvements
+ Tools: Add gtk4-rendernode-tool
+ Debugging: Drop the GTK_DEBUG_TOUCHSCREEN flag
+ Build: Some build options have been renamed:
- gtk_doc -> documentation
- update_screenshots -> screenshots
- The old names still work
+ Updated translations.
- Update option passed to meson following upstream changes.
-------------------------------------------------------------------
Sun Aug 6 15:38:02 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.11.4:
+ GtkFileChooser:
- Default to sorting folders first
- Fix a crash when visiting recent files
+ GtkTextView: Fix corner cases in word navigation
+ GtkMenuButton: Normalize label layout
+ GtkDropDown: Add support for sections
+ GtkVideo: Make the overlay icon clickable
+ GtkWindow: Clear the resize cursors to avoid artifacts
+ GtkFileDialog: Always set initial-folder
+ GtkDropDown: Update on expression changes
+ GtkMapListModel: Implement GtkSectionModel
+ Accessibility:
- Improvements all over the place: GtkButton, GtkPasswordEntry,
GtkFontChooserDialog, GtkColorChooserDialog,
GtkShortcutsWindow, GtkMenuButton, GtkAboutDialog,
GtkFileChooserDialog, GtkStackSidebar, GtkStackSwitcher,
GtkMediaControls, GtkColorDialogButton, GtkDropDown,
GtkInfoBar, GtkNotebook, GtkPrintUnixDialog, GtkModelButton
- Make name computation follow the ARIA spec more closely
- Adapt name computation for the common 'nested button'
scenario
- Change many containers to use `generic` instead of `group`
- Use `generic` as the default role
- Use `application` instead of `window` for windows
- Add properties for accessible names of not directly exposed
widgets in GtkListView, GtkGridView and GtkColumnView
+ DND: Fix criticals when drops are rejected
+ X11: Fix regressions in GLX setup
+ Windows: Center newly created transient windows
+ Vulkan:
- Add antialising for gradients
- Do less work on clipped away nodes
- Redo image uploading
- Support different image depths and formats
- Add a pipeline cache
+ Demos:
- gtk4-demo: Improve window sizing
- gtk4-demo: Improve focus behavior
- gtk4-demo: Add many missing a11y properties
+ Tools: gtk4-builder-tool: Make render an alias screenshot
+ Inspector:
- Show more information in the a11y tab
- Add an accessibility overlay with warnings and
recommendations
- Limit the width of the a11y tab
+ Build:
- Require GLib 2.76
- Make asan builds work again
- Fix the build if ld is not ld.bdf
+ Updated translations.
-------------------------------------------------------------------
Sat Aug 5 10:16:46 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.10.5:
+ Fix ordering problems with filter model signals
+ Avoid lingering resize cursors
+ Fix alignment issues on sparc
+ Fix a problem with CSS corner values
+ Updated translations.
-------------------------------------------------------------------
Mon Jun 5 18:58:41 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 4.10.4:
+ GtkFileChooser: Fix some memory leaks
+ GtkUriLauncher: Validate the uri
+ GtkStack: Fix a crash
+ GtkGridView: Respect css border-spacing
+ GtkScrolledWindow: Propagate child measure size whenever
possible
+ GtkPopoverMenu: Avoid unnecessary left padding
+ GtkSearchEntry: Improve size allocation for the clear icon
+ X11:
- Avoid black flickering with xwayland window decorations
- Trap XRandr errors
+ CSS: Various fixes to transitions
+ Updated translations.
- Drop patches fixed upstream:
+ fix-gridview.patch
+ gtk4-correctly-refresh-after-delete.patch
+ 966a2350.patch
-------------------------------------------------------------------
Sun Jun 4 12:17:15 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
- Add fix-gridview.patch: Add border-spacing where it was missed.
We were computing column widths without taking border-spacing into
account, making them slightly too big (glgo#GNOME/nautilus#2980).
-------------------------------------------------------------------
Thu May 4 14:48:30 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -29,14 +29,14 @@
%endif
Name: gtk4
Version: 4.10.3
Version: 4.12.4
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.10/%{_name}-%{version}.tar.xz
Source: https://download.gnome.org/sources/gtk/4.12/%{_name}-%{version}.tar.xz
Source2: settings.ini
Source3: macros.gtk4
Source99: gtk4-rpmlintrc
@ -46,10 +46,9 @@ Source99: gtk4-rpmlintrc
# https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4756
# 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-UPSTREAM gtk4-correctly-refresh-after-delete.patch glgo#GNOME/nautilus#2941 badshah400@gmail.com -- Deleting files causes folders in the directory to disappear and reappear after a refresh
Patch1: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5873.patch#/gtk4-correctly-refresh-after-delete.patch
# PATCH-FIX-UPSTREAM 966a2350.patch glgo#GNOME/gtk#5798 -- css: Don't transition to currentColor
Patch2: https://gitlab.gnome.org/GNOME/gtk/-/commit/966a2350.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
@ -266,7 +265,7 @@ This package enhances gettext with an International Tag Set for GTK+ 4
%build
%meson \
-Dgtk_doc=true \
-Ddocumentation=true \
-Dbroadway-backend=true \
-Dcloudproviders=enabled \
-Dcolord=enabled \
@ -376,6 +375,7 @@ cp %{SOURCE3} %{buildroot}%{_rpmmacrodir}
%{_bindir}/gtk4-icon-browser
%{_bindir}/gtk4-node-editor
%{_bindir}/gtk4-print-editor
%{_bindir}/gtk4-rendernode-tool
%{_bindir}/gtk4-widget-factory
%{_datadir}/applications/org.gtk.Demo4.desktop
%{_datadir}/applications/org.gtk.IconBrowser4.desktop
@ -409,6 +409,7 @@ cp %{SOURCE3} %{buildroot}%{_rpmmacrodir}
%{_mandir}/man1/gtk4-encode-symbolic-svg.1%{?ext_man}
%{_mandir}/man1/gtk4-icon-browser.1%{?ext_man}
%{_mandir}/man1/gtk4-node-editor.1%{?ext_man}
%{_mandir}/man1/gtk4-rendernode-tool.1%{?ext_man}
%{_mandir}/man1/gtk4-widget-factory.1%{?ext_man}
%files schema