gtk4.git
2 years agocenterlayout: Invert :shrink-center-last
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.

2 years agocenterlayout: Fix child sizing
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.

2 years agoUpdate Russian translation
Artur So [Thu, 3 Aug 2023 16:06:21 +0000 (16:06 +0000)]
Update Russian translation

2 years agoMerge branch 'matthiasc/for-main' into 'main'
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

2 years agoMerge branch 'bilelmoussaoui/gi' into 'main'
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

2 years agoAUTHORS: Some updates
Matthias Clasen [Wed, 2 Aug 2023 20:12:22 +0000 (20:12 +0000)]
AUTHORS: Some updates

2 years agoRELEASE-HOWTO: Some updates
Matthias Clasen [Wed, 2 Aug 2023 20:06:22 +0000 (20:06 +0000)]
RELEASE-HOWTO: Some updates

2 years agogtk-demo: Use GtkBuilderScope more
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.

2 years agogtk: Add missing since annotations
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

2 years agoMerge branch 'gdk-win32-cleanup' into 'main'
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

2 years agoMerge branch 'cetner-layout-compute-expand' into 'main'
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

2 years agoGdkWin32: Remove unused members from GdkWin32Surface
Luca Bacci [Wed, 2 Aug 2023 16:06:23 +0000 (18:06 +0200)]
GdkWin32: Remove unused members from GdkWin32Surface

2 years agoGdkWin32: No need to set the active keyboard layout
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 ())

2 years agoGdkWin32: Remove gdk_synchronize
Luca Bacci [Wed, 2 Aug 2023 15:20:12 +0000 (17:20 +0200)]
GdkWin32: Remove gdk_synchronize

2 years agoMerge branch 'ebassi/hint-font-lodpi' into 'main'
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

2 years agocenterlayout: Fix computing expand
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>
2 years agoreftests: Fix one reftest
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.

2 years agolabel: Another tweak to wrapping handling
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.

2 years agoMerge branch 'radioactiveman-main-patch-77429' into 'main'
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

2 years agodocs: Fix typo
Thomas Lange [Tue, 1 Aug 2023 23:51:34 +0000 (23:51 +0000)]
docs: Fix typo

2 years agoMerge branch 'wip/sophie-h/ask' into 'main'
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

2 years agofilelauncher: Add 'always-ask' property
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

2 years agoUpdate Persian translation
Danial Behzadi [Tue, 1 Aug 2023 05:53:37 +0000 (05:53 +0000)]
Update Persian translation

2 years agoUpdate Georgian translation
Ekaterine Papava [Tue, 1 Aug 2023 04:05:01 +0000 (04:05 +0000)]
Update Georgian translation

2 years agoMerge branch 'wip/otte/vulkan-for-main' into 'main'
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

2 years agoinspector: Make the measure map buttons work again
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

2 years agoMerge branch 'wip/otte/vulkan-for-main' into 'main'
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

2 years agovulkan: Clear Cairo surfaces on upload
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.

2 years agovulkan: Fix a memleak
Benjamin Otte [Sat, 22 Jul 2023 23:57:06 +0000 (01:57 +0200)]
vulkan: Fix a memleak

2 years agovulkan: Plug 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

2 years agorendernode-tool: Add another magic format
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).

2 years agorendernode-tool: Move code
Benjamin Otte [Sat, 29 Jul 2023 23:40:49 +0000 (01:40 +0200)]
rendernode-tool: Move code

No functional changes yet.

2 years agovulkancontext: Do proper refcounting
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?

2 years agovulkan: Plug a memleak
Benjamin Otte [Thu, 27 Jul 2023 08:12:23 +0000 (10:12 +0200)]
vulkan: Plug a memleak

2 years agomemorytexture: Add a check
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.

2 years agovulkan: Remove unused variable
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.

2 years agodocs: Update for recent rendernode-tool changes
Benjamin Otte [Sun, 23 Jul 2023 00:06:11 +0000 (02:06 +0200)]
docs: Update for recent rendernode-tool changes

2 years agoUpdate Persian translation
Danial Behzadi [Sun, 30 Jul 2023 23:15:41 +0000 (23:15 +0000)]
Update Persian translation

2 years agoUpdate Hungarian translation
Balázs Úr [Sun, 30 Jul 2023 20:52:37 +0000 (20:52 +0000)]
Update Hungarian translation

2 years agoMerge branch 'gtk-wip/inactive-state' into 'main'
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

2 years agoAdd a single test runner
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.

2 years agolabel: Let Pango align the layout
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.

2 years agoFix indentation in GtkInscription
Emmanuele Bassi [Sat, 29 Jul 2023 11:51:37 +0000 (14:51 +0300)]
Fix indentation in GtkInscription

2 years agobuild: Don't require bleeding-edge wayland-protocols
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.

2 years agogtk: Add suspended window state
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.

2 years agoMerge branch 'no-list-items' into 'main'
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

2 years agoEnable subpixel positioning for text only on high scaling factors
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.

2 years agolistitemmanager: Handle null roots in get_nearest_tile
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

2 years agoUpdate Persian translation
Danial Behzadi [Sat, 29 Jul 2023 01:58:52 +0000 (01:58 +0000)]
Update Persian translation

2 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 28 Jul 2023 17:32:38 +0000 (17:32 +0000)]
Update Ukrainian translation

2 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 28 Jul 2023 17:31:22 +0000 (17:31 +0000)]
Update Ukrainian translation

2 years agoMerge branch 'matthiasc/for-main' into 'main'
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

2 years agoMerge branch 'dboles/issue5946' into 'main'
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

2 years agoUpdate Hebrew translation
Yosef Or Boczko [Fri, 28 Jul 2023 07:13:47 +0000 (07:13 +0000)]
Update Hebrew translation

2 years agoMerge branch 'fix-issue-5775-gtk4' into 'main'
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

2 years agoMerge branch 'dboles/range_highlight_with_page_size' into 'main'
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

2 years agobuild: Check for objcopy options
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.

2 years agotools: Update the docs
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.

2 years agorendernode-tool: Save to tiff
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.

2 years agoci: Mark the clipboard test as flaky
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!

2 years agoglyph cache: Add debug output
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.

2 years agogdk: Build fix
Matthias Clasen [Thu, 27 Jul 2023 19:37:36 +0000 (22:37 +0300)]
gdk: Build fix

2 years agoMerge branch 'wip/chergert/fix-objcopy' into 'main'
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

2 years agoUpdate Georgian translation
Ekaterine Papava [Fri, 28 Jul 2023 04:48:23 +0000 (04:48 +0000)]
Update Georgian translation

2 years agodemo: use --set-section-alignment when using objcopy
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.

2 years agoMerge branch 'zbrown/fix-inspector' into 'main'
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

2 years agoMerge branch 'wip/chergert/fix-inspector' into 'main'
Matthias Clasen [Wed, 26 Jul 2023 20:16:35 +0000 (20:16 +0000)]
Merge branch 'wip/chergert/fix-inspector' into 'main'

inspector: fix runtime errors with missing widgets

Closes #5986

See merge request GNOME/gtk!6217

2 years agoinspector: fix runtime errors with missing widgets
Christian Hergert [Wed, 26 Jul 2023 19:15:21 +0000 (12:15 -0700)]
inspector: fix runtime errors with missing widgets

Fixes #5986

2 years agoMerge branch 'alatiera/doc-links' into 'main'
Matthias Clasen [Wed, 26 Jul 2023 12:55:31 +0000 (12:55 +0000)]
Merge branch 'alatiera/doc-links' into 'main'

docs: getting_started: Update links to some guides

See merge request GNOME/gtk!6216

2 years agodocs: getting_started: Update links to some guides
Jordan Petridis [Wed, 26 Jul 2023 12:33:15 +0000 (12:33 +0000)]
docs: getting_started: Update links to some guides

2 years agoinspector: drop overlooked reference
Zander Brown [Wed, 26 Jul 2023 05:19:22 +0000 (06:19 +0100)]
inspector: drop overlooked reference

Fix: https://gitlab.gnome.org/GNOME/gtk/-/commit/0751f59ee859030395b4051dcc4584b39e0d7efc

2 years agoMerge branch 'zbrown/pending' into 'main'
Benjamin Otte [Wed, 26 Jul 2023 04:39:13 +0000 (04:39 +0000)]
Merge branch 'zbrown/pending' into 'main'

filterlistmodel: emit ::notify::pending after ::items-changed

See merge request GNOME/gtk!6213

2 years agofilterlistmodel: emit ::notify::pending after ::items-changed
Zander Brown [Wed, 26 Jul 2023 03:57:48 +0000 (04:57 +0100)]
filterlistmodel: emit ::notify::pending after ::items-changed

2 years agoUpdate Hungarian translation
Balázs Meskó [Tue, 25 Jul 2023 23:43:05 +0000 (23:43 +0000)]
Update Hungarian translation

(cherry picked from commit 7a3a82749b751aacc751b747a547d577622c7083)

2 years agoMerge branch 'fix-file-dialog-assert' into 'main'
Matthias Clasen [Mon, 24 Jul 2023 21:52:57 +0000 (21:52 +0000)]
Merge branch 'fix-file-dialog-assert' into 'main'

filedialog: Don't assert too much

Closes #5975

See merge request GNOME/gtk!6207

2 years agoMerge branch 'pgriffis/fix-no-introspection-build' into 'main'
Matthias Clasen [Mon, 24 Jul 2023 21:11:17 +0000 (21:11 +0000)]
Merge branch 'pgriffis/fix-no-introspection-build' into 'main'

build: Fix building with introspection disabled and testsuite enabled

See merge request GNOME/gtk!6210

2 years agobuild: Fix building with introspection disabled and testsuite enabled
Patrick Griffis [Mon, 24 Jul 2023 00:30:30 +0000 (19:30 -0500)]
build: Fix building with introspection disabled and testsuite enabled

The headless tests are written in Python and need g-i.

2 years agoMenuSectionBox: use-markup on labels of submenus
Sébastien Le Roux [Sat, 22 Jul 2023 17:11:00 +0000 (18:11 +0100)]
MenuSectionBox: use-markup on labels of submenus

To use markup label in menu items, when the menu item has a submenu.

Small additions to 'gtk/gtkmenusectionbox.c' to set the markup attribute
for menu items with submenus.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5946
2 years agofiledialog: Don't assert too much
Matthias Clasen [Sun, 23 Jul 2023 16:30:38 +0000 (12:30 -0400)]
filedialog: Don't assert too much

The GtkFileDialog code was asserting that
we get exactly one file back. But the function
is nullable anyway, so lets just return NULL
if we don't have a file.

Fixes: #5975
2 years agoRange: Fix hilight not drawn to value if page-size
Daniel Boles [Sun, 23 Jul 2023 10:11:40 +0000 (11:11 +0100)]
Range: Fix hilight not drawn to value if page-size

If we have a non-zero Adjustment:page-size, the actual amount we draw is
reduced by that page-size. We account for this in various places, but we
did not when deciding how far to allocate the highlight widget, so we
were drawing the highlight not far enough, falling short of the value.
This fixes by subtracting the page-size from the drawn range here too.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5976

2 years agoMerge branch 'wip/otte/vulkan-for-main' into 'main'
Benjamin Otte [Sat, 22 Jul 2023 21:48:29 +0000 (21:48 +0000)]
Merge branch 'wip/otte/vulkan-for-main' into 'main'

tools: No need for --force when specifying filename

See merge request GNOME/gtk!6205

2 years agoMerge branch 'drop-touchscreen-debug' into 'main'
Matthias Clasen [Sat, 22 Jul 2023 21:48:14 +0000 (21:48 +0000)]
Merge branch 'drop-touchscreen-debug' into 'main'

Drop GTK_DEBUG_TOUCHSCREEN

Closes #5893

See merge request GNOME/gtk!6204

2 years agovulkan: Clean up renderpass/offscreen creation
Benjamin Otte [Fri, 21 Jul 2023 22:54:03 +0000 (00:54 +0200)]
vulkan: Clean up renderpass/offscreen creation

Instead of scale and whatnot, pass:
1. The image size
2. The viewport to map to that image size
and compute everything else from there.

In particular, we set the Vulkan viewport to the image dimensions
instead of the viewport size.

All of this makes things a lot simpler while keeping the required
functionality.

2 years agovulkan: Plug a memleak
Benjamin Otte [Sat, 22 Jul 2023 21:26:44 +0000 (23:26 +0200)]
vulkan: Plug a memleak

This one was introduced in 4d9e7d30b00.

2 years agovulkan: Plug a memleak
Benjamin Otte [Sat, 22 Jul 2023 21:25:33 +0000 (23:25 +0200)]
vulkan: Plug a memleak

This one was introduced in cd84f5a56ef.

2 years agotools: No need for --force when specifying filename
Benjamin Otte [Sat, 22 Jul 2023 03:21:30 +0000 (05:21 +0200)]
tools: No need for --force when specifying filename

If people specify the filename, they should know what they're doing.

If they don't, abort if the guessed filename already exists and insist
on the user explicitly giving it.

2 years agoDrop GTK_DEBUG_TOUCHSCREEN
Matthias Clasen [Sat, 22 Jul 2023 20:41:39 +0000 (16:41 -0400)]
Drop GTK_DEBUG_TOUCHSCREEN

This flag was never doing much, and is only raising
the wrong expectations. Remove it.

Fixes: #5893
2 years agoMerge branch 'textview-keynav-backspace' into 'main'
Matthias Clasen [Sat, 22 Jul 2023 15:45:42 +0000 (15:45 +0000)]
Merge branch 'textview-keynav-backspace' into 'main'

textview: Match entry behavior for backspace

Closes #3417

See merge request GNOME/gtk!6203

2 years agoMerge branch 'fix-issue-5965' into 'main'
Matthias Clasen [Sat, 22 Jul 2023 13:51:32 +0000 (13:51 +0000)]
Merge branch 'fix-issue-5965' into 'main'

gtktextview: return early when resetting gesture / event controller

Closes #5965

See merge request GNOME/gtk!6200

2 years agotextview: Match entry behavior for backspace
Matthias Clasen [Sat, 22 Jul 2023 13:40:17 +0000 (09:40 -0400)]
textview: Match entry behavior for backspace

As pointed out in #3417, there is a long-standing
difference in how GtkEntry and GtkTextView treat
Ctrl-Shift-Backspace (and other variations): GtkEntry
always operates on the selection first, if it exists.
GtkTextView only handled plain Backspace that way, and
ignores the selection for other variations.

There is no good reason for this difference, so just
remove it and make GtkTextView behave the same as
GtkEntry.

Fixes: #3417
2 years agoUpdate Georgian translation
Ekaterine Papava [Sat, 22 Jul 2023 13:24:50 +0000 (13:24 +0000)]
Update Georgian translation

2 years agoUpdate Vietnamese translation
Ngọc Quân Trần [Sat, 22 Jul 2023 08:54:03 +0000 (08:54 +0000)]
Update Vietnamese translation

2 years agoMerge branch 'dboles/PopoverMenu-png' into 'main'
Daniel Boles [Sat, 22 Jul 2023 08:43:25 +0000 (08:43 +0000)]
Merge branch 'dboles/PopoverMenu-png' into 'main'

Fix broken image menu.png in Gtk.PopoverMenu intro

See merge request GNOME/gtk!6187

2 years agoMerge branch 'dboles/for-main' into 'main'
Daniel Boles [Sat, 22 Jul 2023 08:43:06 +0000 (08:43 +0000)]
Merge branch 'dboles/for-main' into 'main'

tools: Replace references to GTK+ with GTK no plus

See merge request GNOME/gtk!6199

2 years agoUpdate Vietnamese translation
Ngọc Quân Trần [Sat, 22 Jul 2023 08:16:20 +0000 (08:16 +0000)]
Update Vietnamese translation

(cherry picked from commit e944cd89166aa35c290b508057d2269859b27591)

2 years agoMerge branch 'wip/otte/vulkan-for-main' into 'main'
Benjamin Otte [Sat, 22 Jul 2023 02:43:11 +0000 (02:43 +0000)]
Merge branch 'wip/otte/vulkan-for-main' into 'main'

gsk: Add gskrectprivate.h

See merge request GNOME/gtk!6201

2 years agogdk: Add function to query alpha format for depth
Benjamin Otte [Fri, 21 Jul 2023 23:11:19 +0000 (01:11 +0200)]
gdk: Add function to query alpha format for depth

It's meant to be used in renderers.

2 years agogdk: Make A8 and A16 formats premultiplied
Benjamin Otte [Fri, 21 Jul 2023 23:29:24 +0000 (01:29 +0200)]
gdk: Make A8 and A16 formats premultiplied

The relevant question here is about details, because we have to choose
if we declare alpha-only formats as having their (nonexistant) color
channels premultiplied or not, so that the code paths using them can do
the right thing.

Because we are premultiplied by default, it makes sense to treat alpha
like that, because then the alpha-only code doesn't need to do
workarounds for straight alpha.

Where this is relevant of course is when expanding the alpha channel
into color channels, where we want to end up with white.
So make sure we do color = alpha there instead of color = 1 like we did
before.

2 years agomemoryformat: Copy idea from tiff code
Benjamin Otte [Fri, 21 Jul 2023 01:05:40 +0000 (03:05 +0200)]
memoryformat: Copy idea from tiff code

The static assertion makes sure that newer formats get added.

2 years agogdk: Add A16_FLOAT and A32_FLOAT formats
Benjamin Otte [Fri, 21 Jul 2023 01:02:33 +0000 (03:02 +0200)]
gdk: Add A16_FLOAT and A32_FLOAT formats

We need them for mask-only textures.

For tiffs, we convert the formats to RGBA (the idea that tiff can save
everything needs to be buried I guess) as tiffs can't do alpha-only.