Xi Ruoyao [Mon, 7 Aug 2023 10:00:34 +0000 (18:00 +0800)]
print: Revert "Start sorting apart includes" change for gtkprinteroptionprivate.h
The print backends needs the functions in gtkprinteroptionprivate.h to
be exported.
Fixes #6003.
tszymanski [Sun, 6 Aug 2023 17:26:32 +0000 (10:26 -0700)]
gtkgridview: return empty area for empty tiles during scroll
Hari Rana [Sat, 5 Aug 2023 16:25:23 +0000 (12:25 -0400)]
section-accessibility: Close tag
Matthias Clasen [Thu, 24 Aug 2023 14:14:29 +0000 (10:14 -0400)]
Post-release version bump
Matthias Clasen [Fri, 28 Jul 2023 08:25:41 +0000 (11:25 +0300)]
4.12.0
Matthias Clasen [Sat, 5 Aug 2023 03:37:05 +0000 (03:37 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
build: Rename docs build options
See merge request GNOME/gtk!6239
Matthias Clasen [Sat, 5 Aug 2023 00:47:18 +0000 (20:47 -0400)]
README: Some updates
Matthias Clasen [Sat, 5 Aug 2023 00:05:07 +0000 (20:05 -0400)]
build: Rename docs build options
Rename gtk_doc to documentation and update_screenshots
to screenshots. The old names are still accepted.
Matthias Clasen [Sat, 5 Aug 2023 02:20:38 +0000 (02:20 +0000)]
Merge branch 'wip/otte/scroll-to' into 'main'
a scroll_to() for list widgets
See merge request GNOME/gtk!6227
Benjamin Otte [Tue, 7 Mar 2023 23:53:51 +0000 (00:53 +0100)]
inspector: Use scroll_to() in the object tree search
Benjamin Otte [Tue, 7 Mar 2023 23:53:14 +0000 (00:53 +0100)]
columnview: Implement gtk_column_view_scroll_to()
It's basically the listview version, but with an (optional) column to do
cell-based scrolling/focusing.
Matthias Clasen [Thu, 25 May 2023 02:38:36 +0000 (22:38 -0400)]
Add gtk_grid_view_scroll_to
This does the same as gtk_list_view_scroll_to, just
for a grid view.
Benjamin Otte [Sat, 25 Mar 2023 23:58:20 +0000 (00:58 +0100)]
gtk-demo: Make arrowing in suggestionentry scroll the dropdown
Benjamin Otte [Tue, 7 Mar 2023 23:31:33 +0000 (00:31 +0100)]
listview: Implement gtk_list_view_scroll_to()
This adds a flags enum so we can also do select/focus at the same time.
It's implemented in GtkListBase, so adding support forgridview should be
easy.
Benjamin Otte [Wed, 8 Mar 2023 00:19:39 +0000 (01:19 +0100)]
viewport: Use gtk_viewport_scroll_to() for focus scrolling
Benjamin Otte [Tue, 7 Mar 2023 04:33:47 +0000 (05:33 +0100)]
viewport: Add gtk_viewport_scroll_to()
First implementation of GtkScrollInfo
Benjamin Otte [Tue, 7 Mar 2023 04:29:31 +0000 (05:29 +0100)]
gtk: Add GtkScrollInfo
This struct carries information about scrolling a scrollable, so that
individual scrollables can share this struct for their scrolling APIs.
For now, there's not much information here, we're still trying to cook
up an API that works well.
Matthias Clasen [Sat, 5 Aug 2023 00:20:21 +0000 (00:20 +0000)]
Merge branch 'format' into 'main'
adjustment: Properly use <code> tag
See merge request GNOME/gtk!6238
Hari Rana [Fri, 4 Aug 2023 23:50:08 +0000 (19:50 -0400)]
adjustment: Properly use <code> tag
Yuri Chornoivan [Fri, 4 Aug 2023 19:43:39 +0000 (19:43 +0000)]
Update Ukrainian translation
Matthias Clasen [Fri, 4 Aug 2023 14:57:30 +0000 (14:57 +0000)]
Merge branch 'more-deprecation-cleanup' into 'main'
Drop old style deprecation handling
See merge request GNOME/gtk!6237
Matthias Clasen [Fri, 4 Aug 2023 13:46:54 +0000 (09:46 -0400)]
examples: More deprecation cleanup
Remove GtkDialog use from bloatpad.
Matthias Clasen [Fri, 4 Aug 2023 12:38:55 +0000 (08:38 -0400)]
Drop old style deprecation handling
We don't use this anymore.
Matthias Clasen [Fri, 4 Aug 2023 12:36:38 +0000 (08:36 -0400)]
examples: Deprecation cleanup
Matthias Clasen [Fri, 4 Aug 2023 12:34:30 +0000 (12:34 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
wayland: Fix gtk-shell protocol handling
See merge request GNOME/gtk!6236
Matthias Clasen [Fri, 4 Aug 2023 11:45:59 +0000 (07:45 -0400)]
wayland: Fix gtk-shell protocol handling
The protocol spec isn't clear about the relationship
between the capability enum and the uint in the capability
event.
Fix things to use the same relationship as mutter.
Matthias Clasen [Fri, 4 Aug 2023 11:48:10 +0000 (11:48 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
build: Set the default visibility
See merge request GNOME/gtk!6235
Matthias Clasen [Fri, 4 Aug 2023 02:49:08 +0000 (22:49 -0400)]
build: Set the default visibility
While working on deprecation cleanups, I noticed
that removing GDK_DEPRECATED_IN... from headers
does not have the effect of making the symbols
disappear, since we were forgetting to set the
default visibility to hidden.
Matthias Clasen [Fri, 4 Aug 2023 09:55:51 +0000 (05:55 -0400)]
testsuite: Don't rely on default visibility
The builder test was relying on default visiblity
for non-static functions. Make it explicit that we
want to export these functions, so the test keeps
working when we change the default visibility.
Matthias Clasen [Fri, 4 Aug 2023 02:34:10 +0000 (02:34 +0000)]
Merge branch 'deprecation-cleanups' into 'main'
gtk-demo: Deprecation cleanup
See merge request GNOME/gtk!6233
Matthias Clasen [Thu, 3 Aug 2023 22:16:16 +0000 (18:16 -0400)]
constraint-editor: Deprecation cleanup
Drop all uses of deprecated API.
Matthias Clasen [Thu, 3 Aug 2023 21:27:32 +0000 (17:27 -0400)]
print-editor: Deprecation cleanup
Drop all uses of deprecated API.
Matthias Clasen [Thu, 3 Aug 2023 19:24:04 +0000 (15:24 -0400)]
gtk-demo: Deprecation cleanup
Remove many uses of deprecated api in gtk4-demo.
Remaining uses are demos of wholly deprecated objects
that will just be dropped in GTK5.
Matthias Clasen [Fri, 4 Aug 2023 01:10:09 +0000 (01:10 +0000)]
Merge branch 'wip/alice/center-layout' into 'main'
centerlayout: Fix child sizing
See merge request GNOME/gtk!6234
Alice Mikhaylenko [Fri, 4 Aug 2023 00:30:55 +0000 (04:30 +0400)]
centerlayout: Invert :shrink-center-last
Make what it does match its name.
Alice Mikhaylenko [Thu, 3 Aug 2023 21:57:57 +0000 (01:57 +0400)]
centerlayout: Fix child sizing
For some reason the start/end child size is restricted to
(width - title width) / 2. This is generally unexpected, so stop doing
that.
Artur So [Thu, 3 Aug 2023 16:06:21 +0000 (16:06 +0000)]
Update Russian translation
Matthias Clasen [Thu, 3 Aug 2023 14:39:56 +0000 (14:39 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Use GtkBuilderScope more
See merge request GNOME/gtk!6232
Matthias Clasen [Thu, 3 Aug 2023 13:43:27 +0000 (13:43 +0000)]
Merge branch 'bilelmoussaoui/gi' into 'main'
gtk: Add missing since annotations
See merge request GNOME/gtk!6231
Matthias Clasen [Wed, 2 Aug 2023 20:12:22 +0000 (20:12 +0000)]
AUTHORS: Some updates
Matthias Clasen [Wed, 2 Aug 2023 20:06:22 +0000 (20:06 +0000)]
RELEASE-HOWTO: Some updates
Matthias Clasen [Wed, 2 Aug 2023 19:32:45 +0000 (19:32 +0000)]
gtk-demo: Use GtkBuilderScope more
Under circumstances I haven't fully tracked down,
these demos refuse to run, failing to locate their
callbacks. So use the machinery we have, and set up
a GtkBuilderCScope for each of the problematic cases.
Bilal Elmoussaoui [Wed, 2 Aug 2023 18:19:23 +0000 (18:19 +0000)]
gtk: Add missing since annotations
Follow up of https://gitlab.gnome.org/GNOME/gtk/-/commit/
7f946eff0163e84e34a1880f068f7f5efb354add
Matthias Clasen [Wed, 2 Aug 2023 17:09:41 +0000 (17:09 +0000)]
Merge branch 'gdk-win32-cleanup' into 'main'
GdkWin32 cleanup
See merge request GNOME/gtk!6230
Matthias Clasen [Wed, 2 Aug 2023 16:24:46 +0000 (16:24 +0000)]
Merge branch 'cetner-layout-compute-expand' into 'main'
Fix computing expand in GtkCenterLayout
See merge request GNOME/gtk!6229
Luca Bacci [Wed, 2 Aug 2023 16:06:23 +0000 (18:06 +0200)]
GdkWin32: Remove unused members from GdkWin32Surface
Luca Bacci [Wed, 2 Aug 2023 15:23:19 +0000 (17:23 +0200)]
GdkWin32: No need to set the active keyboard layout
It's already done as part of GdkWin32Keymap initialization
(in update_keymap ())
Luca Bacci [Wed, 2 Aug 2023 15:20:12 +0000 (17:20 +0200)]
GdkWin32: Remove gdk_synchronize
Matthias Clasen [Wed, 2 Aug 2023 15:56:08 +0000 (15:56 +0000)]
Merge branch 'ebassi/hint-font-lodpi' into 'main'
Enable subpixel positioning for text only on high scaling factors
See merge request GNOME/gtk!6190
Sergey Bugaev [Wed, 2 Aug 2023 15:43:45 +0000 (18:43 +0300)]
centerlayout: Fix computing expand
It was calling get_hexpand () / get_vexpand (), which only get whether
the expand properties are set on the widget itself. Use
compute_expand (), which properly walks the widget tree and finds
whether exapnd is set on the widget or any of its descendants.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Matthias Clasen [Wed, 2 Aug 2023 14:50:48 +0000 (14:50 +0000)]
reftests: Fix one reftest
The xalign property of GtkLabel defaults to 0.5,
meaning that the contents will be centered, which
is not what GtkInscription does.
Matthias Clasen [Wed, 2 Aug 2023 14:50:03 +0000 (14:50 +0000)]
label: Another tweak to wrapping handling
This fixes a few reftests that were failing after
the previous change because they ended up with x == -1.
Matthias Clasen [Wed, 2 Aug 2023 03:25:19 +0000 (03:25 +0000)]
Merge branch 'radioactiveman-main-patch-77429' into 'main'
docs: Fix typo
See merge request GNOME/gtk!6226
Thomas Lange [Tue, 1 Aug 2023 23:51:34 +0000 (23:51 +0000)]
docs: Fix typo
Matthias Clasen [Tue, 1 Aug 2023 19:52:51 +0000 (19:52 +0000)]
Merge branch 'wip/sophie-h/ask' into 'main'
filelauncher: Add 'ask' property
Closes #5942
See merge request GNOME/gtk!6225
Sophie Herold [Tue, 1 Aug 2023 12:04:31 +0000 (14:04 +0200)]
filelauncher: Add 'always-ask' property
The 'ask' property is part of the portal. It forces always asking
the user with which app to open a file.
Closes #5942
Danial Behzadi [Tue, 1 Aug 2023 05:53:37 +0000 (05:53 +0000)]
Update Persian translation
Ekaterine Papava [Tue, 1 Aug 2023 04:05:01 +0000 (04:05 +0000)]
Update Georgian translation
Benjamin Otte [Mon, 31 Jul 2023 22:52:46 +0000 (22:52 +0000)]
Merge branch 'wip/otte/vulkan-for-main' into 'main'
inspector: Make the measure map buttons work again
Closes #5992
See merge request GNOME/gtk!6223
Benjamin Otte [Mon, 31 Jul 2023 22:09:07 +0000 (00:09 +0200)]
inspector: Make the measure map buttons work again
The show/hide => set_visible() cleanups had broken things.
Fixes #5992
Benjamin Otte [Mon, 31 Jul 2023 15:14:37 +0000 (15:14 +0000)]
Merge branch 'wip/otte/vulkan-for-main' into 'main'
vulkan: Remove unused variable
See merge request GNOME/gtk!6222
Benjamin Otte [Sun, 23 Jul 2023 16:26:52 +0000 (18:26 +0200)]
vulkan: Clear Cairo surfaces on upload
The memory isn't guaranteed to be all zeroes and we don't want glitches.
Benjamin Otte [Sat, 22 Jul 2023 23:57:06 +0000 (01:57 +0200)]
vulkan: Fix a memleak
Benjamin Otte [Mon, 24 Jul 2023 03:56:47 +0000 (05:56 +0200)]
vulkan: Plug a memleak
Yay, we no longer leak swapchain images
Benjamin Otte [Sun, 30 Jul 2023 18:00:34 +0000 (20:00 +0200)]
rendernode-tool: Add another magic format
Make .svg use the Cairo renderer to save to an SVG file.
It's useful when comparing rendering behavior and times with
web browsers (as long as one is aware that browsers build a full
DOM tree out of those SVGs).
Benjamin Otte [Sat, 29 Jul 2023 23:40:49 +0000 (01:40 +0200)]
rendernode-tool: Move code
No functional changes yet.
Benjamin Otte [Thu, 27 Jul 2023 08:13:26 +0000 (10:13 +0200)]
vulkancontext: Do proper refcounting
- fix a memleak
- call unref() instead of new()
- remove idle handler on dispose
What was I doing when I wrote the pipeline cache code?
Benjamin Otte [Thu, 27 Jul 2023 08:12:23 +0000 (10:12 +0200)]
vulkan: Plug a memleak
Benjamin Otte [Mon, 24 Jul 2023 14:12:51 +0000 (16:12 +0200)]
memorytexture: Add a check
Sophie Herold was running into this problem while coding, so let's help
people by catching it early.
Benjamin Otte [Sun, 23 Jul 2023 20:30:26 +0000 (22:30 +0200)]
vulkan: Remove unused variable
It's only used when printing debug stuff. Debug stuff is not that
important.
Benjamin Otte [Sun, 23 Jul 2023 00:06:11 +0000 (02:06 +0200)]
docs: Update for recent rendernode-tool changes
Danial Behzadi [Sun, 30 Jul 2023 23:15:41 +0000 (23:15 +0000)]
Update Persian translation
Balázs Úr [Sun, 30 Jul 2023 20:52:37 +0000 (20:52 +0000)]
Update Hungarian translation
Matthias Clasen [Sun, 30 Jul 2023 11:39:49 +0000 (11:39 +0000)]
Merge branch 'gtk-wip/inactive-state' into 'main'
gtk: Add suspended window state
See merge request GNOME/gtk!6221
Emmanuele Bassi [Sun, 30 Jul 2023 10:29:36 +0000 (13:29 +0300)]
Add a single test runner
Running the whole test suite is not fun, and the magic incantations for
running a specific backend are too complicated to remember.
Emmanuele Bassi [Sun, 30 Jul 2023 10:26:27 +0000 (13:26 +0300)]
label: Let Pango align the layout
Just like GtkInscription does since commit
883011f2. The layout offsets
are maintained as floats, and only converted to integers when exposing
them to callers.
Emmanuele Bassi [Sat, 29 Jul 2023 11:51:37 +0000 (14:51 +0300)]
Fix indentation in GtkInscription
Matthias Clasen [Sun, 30 Jul 2023 08:08:11 +0000 (11:08 +0300)]
build: Don't require bleeding-edge wayland-protocols
The 1.32 wayland-protocols release is not in distribution
builds yet, so a hard dependency on it is not helpful.
Jonas Ådahl [Wed, 24 May 2023 14:22:42 +0000 (16:22 +0200)]
gtk: Add suspended window state
This is implemented using a new xdg_toplevel `suspended` state, and is
meant for allowing applications to know when they can stop doing
unnecessary work and thus save power.
In the other backends, the `suspended` state is set at the same time as
`minimized` as it's the closest there is to traditional windowing
systems.
Benjamin Otte [Sat, 29 Jul 2023 23:15:13 +0000 (23:15 +0000)]
Merge branch 'no-list-items' into 'main'
listitemmanager: Handle null roots in get_nearest_tile
Closes #5970
See merge request GNOME/gtk!6220
Emmanuele Bassi [Mon, 17 Jul 2023 11:24:27 +0000 (12:24 +0100)]
Enable subpixel positioning for text only on high scaling factors
With our current font rendering stack, subpixel positioning simply does
not look good on non-HiDPI displays compared to font hinting.
While we have a setting as a way to restore font hinting, it's fairly
clunky to use with sandboxed applications, since it requires injecting a
settings.ini file in every application's configuration directory, or
adding the user's own configuration directory into the sandbox.
As a workaround, we can check the scaling factor used by GTK, and only
enable subpixel positioning if the factor is greater than one.
tszymanski [Thu, 27 Jul 2023 06:26:45 +0000 (23:26 -0700)]
listitemmanager: Handle null roots in get_nearest_tile
Rubberbanding still fails with "No item" warnings, but it no longer
crashes.
Closes #5970
Danial Behzadi [Sat, 29 Jul 2023 01:58:52 +0000 (01:58 +0000)]
Update Persian translation
Yuri Chornoivan [Fri, 28 Jul 2023 17:32:38 +0000 (17:32 +0000)]
Update Ukrainian translation
Yuri Chornoivan [Fri, 28 Jul 2023 17:31:22 +0000 (17:31 +0000)]
Update Ukrainian translation
Matthias Clasen [Fri, 28 Jul 2023 08:51:14 +0000 (08:51 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
glyph cache: Add debug output
See merge request GNOME/gtk!6163
Matthias Clasen [Fri, 28 Jul 2023 08:47:33 +0000 (08:47 +0000)]
Merge branch 'dboles/issue5946' into 'main'
MenuSectionBox: use-markup on labels of submenus
Closes #5946
See merge request GNOME/gtk!6209
Yosef Or Boczko [Fri, 28 Jul 2023 07:13:47 +0000 (07:13 +0000)]
Update Hebrew translation
Matthias Clasen [Fri, 28 Jul 2023 07:11:52 +0000 (07:11 +0000)]
Merge branch 'fix-issue-5775-gtk4' into 'main'
GtkApplicationImplDBus: Cancel DBus method calls on shutdown
Closes #5775
See merge request GNOME/gtk!6181
Matthias Clasen [Fri, 28 Jul 2023 06:13:27 +0000 (06:13 +0000)]
Merge branch 'dboles/range_highlight_with_page_size' into 'main'
Range: Fix hilight not drawn to value if page-size
Closes #5976
See merge request GNOME/gtk!6206
Matthias Clasen [Fri, 28 Jul 2023 06:05:03 +0000 (09:05 +0300)]
build: Check for objcopy options
Check that objcopy understands the --set-section-alignment
option that we are now using.
Matthias Clasen [Thu, 27 Jul 2023 20:36:53 +0000 (23:36 +0300)]
tools: Update the docs
Mention that the render command can produce png or tiff
images.
Benjamin Otte [Wed, 26 Jul 2023 21:30:34 +0000 (23:30 +0200)]
rendernode-tool: Save to tiff
If the save filename ends in .tiff, save to tiff instead.
For now this is a sneaky autodetect feature, not sure if/how to make it
more explicit.
Matthias Clasen [Sun, 2 Jul 2023 14:13:14 +0000 (10:13 -0400)]
ci: Mark the clipboard test as flaky
Lets give up on trying to run this successfully
in ci. More green in more places!
Matthias Clasen [Sun, 2 Jul 2023 02:31:28 +0000 (22:31 -0400)]
glyph cache: Add debug output
Show the size of data uploaded per glyph.
Matthias Clasen [Thu, 27 Jul 2023 19:37:36 +0000 (22:37 +0300)]
gdk: Build fix
Matthias Clasen [Fri, 28 Jul 2023 06:01:43 +0000 (06:01 +0000)]
Merge branch 'wip/chergert/fix-objcopy' into 'main'
demo: use --set-section-alignment when using objcopy
See merge request GNOME/gtk!6218
Ekaterine Papava [Fri, 28 Jul 2023 04:48:23 +0000 (04:48 +0000)]
Update Georgian translation
Christian Hergert [Fri, 28 Jul 2023 00:09:02 +0000 (17:09 -0700)]
demo: use --set-section-alignment when using objcopy
If we don't set the alignment then there is a chance that it ends up
commonly on a 4-byte boundary and GResources will have to malloc/memcpy
the static data.
With --set-section-alignment (which takes a byte offset not ^2) available
in objcopy >= 2.33 we ensure that expectation is met.
Matthias Clasen [Thu, 27 Jul 2023 20:55:24 +0000 (20:55 +0000)]
Merge branch 'zbrown/fix-inspector' into 'main'
inspector: drop overlooked reference
See merge request GNOME/gtk!6215