Benjamin Otte [Tue, 16 May 2023 16:08:21 +0000 (18:08 +0200)]
gridview: Add border-spacing where it was missed
We were computing column widths without taking border-spacing into
account, making them slightly too big.
Benjamin Otte [Sat, 13 May 2023 16:35:02 +0000 (18:35 +0200)]
gdk: Clamp frame region to surface size
The region may be larger than the surface's size, but many rendering
APIs require the size to be clamped.
Fixes #5812
Matthias Clasen [Tue, 16 May 2023 16:31:35 +0000 (16:31 +0000)]
Merge branch 'fix-property-lookup-model' into 'main'
Fix a few bugs in GtkPropertyLookupListModel
See merge request GNOME/gtk!5974
Matthias Clasen [Tue, 16 May 2023 15:54:59 +0000 (11:54 -0400)]
Fix a few bugs in GtkPropertyLookupListModel
Fix bugs in property types.
Matthias Clasen [Tue, 16 May 2023 12:48:40 +0000 (12:48 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gdk: Drop some unused private api
See merge request GNOME/gtk!5973
Matthias Clasen [Tue, 16 May 2023 03:21:06 +0000 (23:21 -0400)]
Improve test coverage for GtkStringSorter
Matthias Clasen [Tue, 16 May 2023 03:06:07 +0000 (23:06 -0400)]
Only build iconcache validator if it is used
Matthias Clasen [Tue, 16 May 2023 02:41:10 +0000 (22:41 -0400)]
Drop unneeded exports from gdkpixbufutils.c
Matthias Clasen [Tue, 16 May 2023 02:12:33 +0000 (22:12 -0400)]
Drop an unused include
Matthias Clasen [Tue, 16 May 2023 01:46:02 +0000 (21:46 -0400)]
docs: Mention pixbufs in the migration guide
Matthias Clasen [Tue, 16 May 2023 01:40:54 +0000 (21:40 -0400)]
Deprecate from-pixbuf apis for widgets
We want to drop GdkPixbuf from our apis.
These have easy replacements already, so
lets deprecate them.
Matthias Clasen [Tue, 16 May 2023 00:27:16 +0000 (20:27 -0400)]
gdk: Drop some unused private api
Matthias Clasen [Tue, 16 May 2023 00:09:56 +0000 (00:09 +0000)]
Merge branch 'wip/corey/filesystemmodel' into 'main'
filesystemmodel: Ignore changes on the parent directory
Closes #4233
See merge request GNOME/gtk!5970
Matthias Clasen [Tue, 16 May 2023 00:02:15 +0000 (00:02 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
tools: Cosmetics
See merge request GNOME/gtk!5972
Matthias Clasen [Mon, 15 May 2023 23:11:35 +0000 (19:11 -0400)]
Fix texture tests with GLES
No sync for you if you're using GLES.
Matthias Clasen [Mon, 15 May 2023 23:03:42 +0000 (23:03 +0000)]
Merge branch 'deprecate-pixbuf-apis' into 'main'
gdk: Deprecated some pixbuf apis
See merge request GNOME/gtk!5971
Corey Berla [Mon, 15 May 2023 20:10:21 +0000 (13:10 -0700)]
filesystemmodel: Ignore changes on the parent directory
The filesystemmodel tracks changes and additions to child files
through G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED. This event will also
occur if the parent directory is changed. Since the parent directory
doesn't exist in the model, it creates a non-existent item.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4233
Corey Berla [Mon, 15 May 2023 20:09:52 +0000 (13:09 -0700)]
filechooserwidget: Stop leaking file system models
Matthias Clasen [Mon, 15 May 2023 22:21:08 +0000 (18:21 -0400)]
gdk: Deprecated some pixbuf apis
These are already documented as 'don't use
in new apis'. Lets make it official and
deprecate them properly.
Matthias Clasen [Mon, 15 May 2023 20:49:12 +0000 (16:49 -0400)]
Improve test coverage for GdkGLContext
Corey Berla [Mon, 15 May 2023 20:08:56 +0000 (13:08 -0700)]
.gitignore: Ignore .flatpak-builder directory
Matthias Clasen [Mon, 15 May 2023 19:25:11 +0000 (15:25 -0400)]
Cosmetics
Linkify a reference.
Matthias Clasen [Mon, 15 May 2023 19:24:56 +0000 (15:24 -0400)]
Add tests for GdkTextureDownloader
Matthias Clasen [Mon, 15 May 2023 16:50:28 +0000 (12:50 -0400)]
Test gltexture update functionality
Matthias Clasen [Mon, 15 May 2023 15:56:31 +0000 (11:56 -0400)]
Improve gdk test coverage
Matthias Clasen [Mon, 15 May 2023 12:03:20 +0000 (08:03 -0400)]
tools: Cosmetics
Make gtk-builder-tool screenshot be quiet unless
it had to make up a filename. And tweak --help
output a bit.
Matthias Clasen [Mon, 15 May 2023 10:12:29 +0000 (10:12 +0000)]
Merge branch 'export-handles-properly' into 'main'
Add testfilelauncher
See merge request GNOME/gtk!5968
Matthias Clasen [Sun, 14 May 2023 18:11:12 +0000 (14:11 -0400)]
Add testfilelauncher
This is a test to use GtkFileLauncher a bit
more intensively than usual.
Matthias Clasen [Sun, 14 May 2023 23:14:58 +0000 (19:14 -0400)]
wayland: Try harder to be compatible
We can keep the old unexport_handle api working
in the case that there is only a single exported
handle.
Matthias Clasen [Sun, 14 May 2023 21:34:35 +0000 (17:34 -0400)]
Deprecate gdk_wayland_toplevel_unexport_handle
It doesn't do anything anymore, and is no longer
used internally. The replacement is
gdk_wayland_toplevel_drop_exported_handled().
Matthias Clasen [Sun, 14 May 2023 21:38:11 +0000 (17:38 -0400)]
wayland: Reimplement exporting
Change things so that every call to export_handle
creates a new handle, and unexport_handle destroys
the handle that it is given.
Matthias Clasen [Sun, 14 May 2023 21:37:41 +0000 (17:37 -0400)]
wayland: Give toplevels a destroy hook
We will need to do some cleanup before the
wl_surface is destroyed, so add a hook for that.
Matthias Clasen [Sun, 14 May 2023 21:28:17 +0000 (17:28 -0400)]
gdk: Change the private export handle api
Make unexport_handle take the handle, so we
can in the future deal with multiple exports.
Update the one caller in gtkwindow.c to pass
the handle.
Matthias Clasen [Sun, 14 May 2023 21:27:12 +0000 (17:27 -0400)]
wayland: Add new backend api
Add an alternative to unexport_handle that
does take the handle.
Matthias Clasen [Sun, 14 May 2023 21:49:10 +0000 (21:49 +0000)]
Merge branch 'input-doc-fixes' into 'main'
GTK reference docs: Some fixes
See merge request GNOME/gtk!5969
Matthias Clasen [Sun, 14 May 2023 21:14:43 +0000 (17:14 -0400)]
gtk: Change the private export handle api
Make unexport_handle take the handle, which will
let us deal with multiple exports in the future.
Update all callers to store their handle, and
pass it to unexport_handle.
FeRD (Frank Dana) [Sun, 14 May 2023 21:01:38 +0000 (17:01 -0400)]
doc/actions: Fix end-of-file :
The actions document ended with a : where there used to be a period,
seemingly a bug in the conversion from XML. Replace that : with a
period, and remove another spurious : inserted during the conversion.
FeRD (Frank Dana) [Sun, 14 May 2023 20:23:41 +0000 (16:23 -0400)]
docs/input: <kbd>␣</kbd> => <kbd>Space</kbd>
- Switch to semantic newlines, where adding <kbd> caused wrapped text
to grow wider than 80 characters on some lines.
FeRD (Frank Dana) [Sun, 14 May 2023 20:20:33 +0000 (16:20 -0400)]
docs/input-handling: A few more <kbd> wrappings
- Format a few missed keypresses/combos using <kbd>
- Switch to semantic newlines for those (paragraphs, bullet points)
Matthias Clasen [Sun, 14 May 2023 17:26:03 +0000 (13:26 -0400)]
Fix a typo
Matthias Clasen [Sun, 14 May 2023 17:06:00 +0000 (13:06 -0400)]
wayland: Remove some unused fields
Matthias Clasen [Sun, 14 May 2023 16:58:44 +0000 (16:58 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Add a README to examples/hello
See merge request GNOME/gtk!5967
Matthias Clasen [Sun, 14 May 2023 11:46:44 +0000 (07:46 -0400)]
gdk: Add an assertion
We simply overwrite any previous region,
so assert that the field was NULL before.
Matthias Clasen [Sun, 14 May 2023 11:47:52 +0000 (07:47 -0400)]
Add more texture load tests
Add some tests for handling of failures.
The test data here is taking from gdk-pixbufs
tests/test-images/fail directory, excluding anything
but png, tiff and jpg images.
Matthias Clasen [Sun, 14 May 2023 02:21:23 +0000 (22:21 -0400)]
Improve gdk test coverage
Test the loadable icon implementation of GdkTexture.
FeRD (Frank Dana) [Sun, 14 May 2023 09:18:48 +0000 (09:18 +0000)]
docs/input-handling: Don't leave reader hanging
Strangely, the document's last sentence ended with a colon,
giving the impression there's missing text that should follow.
There is not.
Even more strange, it's _always_ ended with a colon,
ever since the file was converted from XML
(in commit
10cd539104af54f5d1d1e49618f5aa9d8ac42074).
BUT, the XML file it was converted _from_ ended that same sentence
with a period! I have no idea where the colon came from.
Matthias Clasen [Sun, 14 May 2023 01:32:11 +0000 (21:32 -0400)]
Improve gdk test coverage
Add tests for GdkToplevvelLayout and
GdkPopupLayout.
Matthias Clasen [Sun, 14 May 2023 00:16:34 +0000 (20:16 -0400)]
docs: Mention the current build options
Some of these got renamed recently.
Matthias Clasen [Sun, 14 May 2023 00:13:01 +0000 (20:13 -0400)]
ci: Stop using deprecated build options
demos got renamed to build-demos.
Matthias Clasen [Sun, 14 May 2023 00:11:56 +0000 (20:11 -0400)]
Add a README to examples/hello
Just so nobody wonders why there's a meson.build
in this subdirectory.
Georges Basile Stavracas Neto [Sun, 14 May 2023 00:37:47 +0000 (00:37 +0000)]
Merge branch 'revert-
78f68d79' into 'main'
Revert "Merge branch 'gbsneto/css-parser-annotation' into 'main'"
See merge request GNOME/gtk!5965
Matthias Clasen [Sun, 14 May 2023 00:27:23 +0000 (00:27 +0000)]
Merge branch 'new-css-load-apis' into 'main'
Add new css provider load apis
See merge request GNOME/gtk!5966
Matthias Clasen [Sat, 13 May 2023 23:46:08 +0000 (19:46 -0400)]
Deprecate gtk_css_provider_load_From_data
Matthias Clasen [Sat, 13 May 2023 23:44:42 +0000 (19:44 -0400)]
Stop using gtk_css_provider_load_from_data
Matthias Clasen [Sat, 13 May 2023 23:37:51 +0000 (19:37 -0400)]
Add new css provider load apis
gtk_css_provider_load_from_data has turned out
to be problematic for language bindings. Add two
new variants, from_string and from_bytes, to
replace it.
Emmanuele Bassi [Sat, 13 May 2023 21:53:04 +0000 (21:53 +0000)]
Revert "Merge branch 'gbsneto/css-parser-annotation' into 'main'"
This reverts merge request !5964
Georges Basile Stavracas Neto [Sat, 13 May 2023 20:51:00 +0000 (20:51 +0000)]
Merge branch 'gbsneto/css-parser-annotation' into 'main'
gtk/css-provider: Add back array length annotation
See merge request GNOME/gtk!5964
Georges Basile Stavracas Neto [Sat, 13 May 2023 20:00:30 +0000 (17:00 -0300)]
gtk/css-provider: Add back array length annotation
This partially reverts commit
93a875bf20ba6ed8cd13595ff1f6.
Removing this annotation broke bindings, which now treat the
length of the array as a standalone parameter.
This broke Spiel, and probably other non-C apps that rely on
GtkCssProvider through bindings.
Matthias Clasen [Sat, 13 May 2023 19:46:30 +0000 (19:46 +0000)]
Merge branch 'more-marshaller-cleanup' into 'main'
Add missing va marshallers
See merge request GNOME/gtk!5963
Daniel Boles [Sat, 13 May 2023 17:17:17 +0000 (18:17 +0100)]
Widget: Fix doubled word need, missing possessives
Matthias Clasen [Sat, 13 May 2023 16:50:45 +0000 (12:50 -0400)]
Drop duplication between marshallers
gtk and gdk have their own marshallers, for historic
reasons. But there's no reason to duplicate the same
code here.
Eventually, we should just move all marshallers to
the same place.
Matthias Clasen [Sat, 13 May 2023 16:34:22 +0000 (12:34 -0400)]
Add missing va marshallers
Whenever we pass a marshaller to g_signal_new,
call g_signal_set_va_marshaller with the corresponding
va marshaller.
Matthias Clasen [Sat, 13 May 2023 15:35:14 +0000 (15:35 +0000)]
Merge branch 'marshaller-cleanup' into 'main'
Avoid generic marshallers
See merge request GNOME/gtk!5962
Matthias Clasen [Sat, 13 May 2023 15:15:36 +0000 (11:15 -0400)]
Drop unused marshallers
This list was found by a combination of
grep, sed, and sort.
Matthias Clasen [Sat, 13 May 2023 13:21:48 +0000 (09:21 -0400)]
Avoid generic marshallers
The libffi-based generic marshallers give sysprof
difficulties in getting good stacktraces, so avoid
them.
Matthias Clasen [Sat, 13 May 2023 12:40:35 +0000 (12:40 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
popover: Stop making assumptions about corners
See merge request GNOME/gtk!5961
Matthias Clasen [Sat, 13 May 2023 11:35:05 +0000 (07:35 -0400)]
popover: Stop making assumptions about corners
The popover tail drawing code was just assuming that
the corner values are numbers. Which they won't, anymore.
Matthias Clasen [Sat, 13 May 2023 02:04:05 +0000 (22:04 -0400)]
Improve css parser test coverage
Matthias Clasen [Sat, 13 May 2023 02:02:48 +0000 (02:02 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
css: Fix transition of font features
See merge request GNOME/gtk!5957
Matthias Clasen [Sat, 13 May 2023 01:43:59 +0000 (01:43 +0000)]
Merge branch 'volumemedia' into 'main'
mediacontrols: Set valign=center on volume button
See merge request GNOME/gtk!5955
Matthias Clasen [Fri, 12 May 2023 23:26:38 +0000 (19:26 -0400)]
testsuite: Cosmetics
Matthias Clasen [Fri, 12 May 2023 23:27:04 +0000 (19:27 -0400)]
Test the deprecation support
Test gtk4-builder-tool validate --deprecations
Matthias Clasen [Fri, 12 May 2023 23:25:24 +0000 (19:25 -0400)]
Add tests for gtk4-builder-tool enumerate
Matthias Clasen [Fri, 12 May 2023 22:47:21 +0000 (18:47 -0400)]
Add tests for hsv<>rgb conversion
Matthias Clasen [Fri, 12 May 2023 22:46:54 +0000 (18:46 -0400)]
Improve test coverage for the css parser
Matthias Clasen [Fri, 12 May 2023 13:14:04 +0000 (09:14 -0400)]
css: Improve transition test coverage
Matthias Clasen [Fri, 12 May 2023 22:11:14 +0000 (18:11 -0400)]
css: Fix initial rotate transform value
Matthias Clasen [Fri, 12 May 2023 18:48:45 +0000 (14:48 -0400)]
css: Make some corner values static
Provide static value for uniform corners
with lengths from 0 to 8px. This covers
the majority of corners in widget-factory.
Matthias Clasen [Fri, 12 May 2023 18:47:36 +0000 (14:47 -0400)]
css: More static length values
Make all length values from 0px to 8px available
as static values. This will help with cutting
down on the number of corner values (we have a
lot of 5px corners).
Matthias Clasen [Fri, 12 May 2023 18:09:36 +0000 (14:09 -0400)]
Revert "css: Simplify default values"
This reverts commit
1efa39672b94ba12f42f386d0eedb7ed6d7c3d03.
We want to use corner values for corner properties.
Matthias Clasen [Fri, 12 May 2023 18:04:59 +0000 (14:04 -0400)]
Revert "csscornervalue: Accept other values if x == y"
This reverts commit
1f2f2777e1231468f613a2936989ded060f4e2a6.
It broke transitioning of corner values.
Jordi Mas [Fri, 12 May 2023 17:42:11 +0000 (19:42 +0200)]
Update Catalan translation
Matthias Clasen [Fri, 12 May 2023 17:13:12 +0000 (13:13 -0400)]
css: Correct initial shadow filter values
This was using numbers instead of lengths,
causing confusion in the transition code.
Guillaume Bernard [Fri, 12 May 2023 13:24:14 +0000 (13:24 +0000)]
Update French translation
Matthias Clasen [Fri, 12 May 2023 13:13:00 +0000 (09:13 -0400)]
css: Fix transition of font features
If we store ints as values, we better use
g_hash_table_lookup_extended, or zeros will
show up as missing values.
Matthias Clasen [Fri, 12 May 2023 12:23:56 +0000 (08:23 -0400)]
Improve css parser test coverage
Maximiliano Sandoval R [Fri, 12 May 2023 09:35:14 +0000 (11:35 +0200)]
mediacontrols: Set valign=center on volume button
To match the play button.
Daniel Boles [Fri, 12 May 2023 09:30:37 +0000 (10:30 +0100)]
Overlay: Add minimal doc blurb for property :child
Matthias Clasen [Fri, 12 May 2023 03:24:23 +0000 (23:24 -0400)]
Improve test coverage for list models
Matthias Clasen [Fri, 12 May 2023 02:41:26 +0000 (02:41 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Add a little wait to focus tests
See merge request GNOME/gtk!5954
Matthias Clasen [Fri, 12 May 2023 02:23:01 +0000 (22:23 -0400)]
Add a little wait to focus tests
I don't know exactly why, but this seems
to help the tests not fail on X11.
Matthias Clasen [Fri, 12 May 2023 02:08:37 +0000 (02:08 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
ci: Use the same options for the scan-build job
See merge request GNOME/gtk!5953
Matthias Clasen [Fri, 12 May 2023 00:19:07 +0000 (00:19 +0000)]
Merge branch 'validate-uris' into 'main'
urilauncher: Validate the uri
Closes #5829
See merge request GNOME/gtk!5952
Matthias Clasen [Fri, 12 May 2023 00:14:58 +0000 (20:14 -0400)]
gtk-demo: Rename the new Settings demo
"v2" does not look great in the sidebar.
Lets call this "Alternative Settings".
Matthias Clasen [Thu, 11 May 2023 23:53:42 +0000 (19:53 -0400)]
gtk-demo: Fix a typo
Matthias Clasen [Thu, 11 May 2023 14:18:22 +0000 (10:18 -0400)]
ci: Stop special-casing broadway
We are not running the broadway tests anymore,
so no need to special-case them in the run-test.sh
script either.
Matthias Clasen [Thu, 11 May 2023 14:16:34 +0000 (10:16 -0400)]
ci: Use the same options for the scan-build job
In particular, not building the tests should
help cutting down on time spent linking.
Matthias Clasen [Thu, 11 May 2023 22:33:23 +0000 (18:33 -0400)]
urilauncher: Validate the uri
We don't want to send nonsense to the portal.
Fixes: #5829
Matthias Clasen [Thu, 11 May 2023 22:28:46 +0000 (22:28 +0000)]
Merge branch 'fix-focus-tests' into 'main'
spinbutton: Update baseline child
See merge request GNOME/gtk!5950
Matthias Clasen [Thu, 11 May 2023 20:16:07 +0000 (20:16 +0000)]
Merge branch 'shortcuts-focus' into 'main'
theme: Show focus in shortcuts windows
See merge request GNOME/gtk!5951