gtk4.git
3 years agoUpdated Czech translation
Marek Černocký [Thu, 1 Sep 2022 12:41:37 +0000 (14:41 +0200)]
Updated Czech translation

3 years agoUpdated Czech translation
Marek Černocký [Thu, 1 Sep 2022 12:34:27 +0000 (14:34 +0200)]
Updated Czech translation

3 years agoUpdate Brazilian Portuguese translation
Leônidas Araújo [Wed, 31 Aug 2022 14:53:19 +0000 (14:53 +0000)]
Update Brazilian Portuguese translation

3 years agoUpdate Persian translation
Danial Behzadi [Wed, 31 Aug 2022 12:45:30 +0000 (12:45 +0000)]
Update Persian translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Wed, 31 Aug 2022 09:17:12 +0000 (09:17 +0000)]
Update Indonesian translation

3 years agoUpdate Basque translation
Asier Sarasua Garmendia [Wed, 31 Aug 2022 07:04:00 +0000 (07:04 +0000)]
Update Basque translation

3 years agoMerge branch 'gbsneto/cleanup-gsettings' into 'main'
Matthias Clasen [Tue, 30 Aug 2022 19:14:44 +0000 (19:14 +0000)]
Merge branch 'gbsneto/cleanup-gsettings' into 'main'

gtk: Remove last-folder-uri from schema

See merge request GNOME/gtk!4998

3 years agogtk: Remove last-folder-uri from schema
Georges Basile Stavracas Neto [Tue, 30 Aug 2022 18:58:47 +0000 (15:58 -0300)]
gtk: Remove last-folder-uri from schema

It's unused since 2013, apparently.

3 years agoUpdate Croatian translation
Goran Vidović [Tue, 30 Aug 2022 11:56:21 +0000 (11:56 +0000)]
Update Croatian translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 29 Aug 2022 19:21:22 +0000 (19:21 +0000)]
Update Ukrainian translation

3 years agoMerge branch 'wip/jimmac/HC-italic-hints' into 'main'
Matthias Clasen [Mon, 29 Aug 2022 18:55:34 +0000 (18:55 +0000)]
Merge branch 'wip/jimmac/HC-italic-hints' into 'main'

HC: entry - make hints italic

Closes #5143

See merge request GNOME/gtk!4994

3 years agoMerge branch 'font-feature-work' into 'main'
Matthias Clasen [Mon, 29 Aug 2022 18:48:00 +0000 (18:48 +0000)]
Merge branch 'font-feature-work' into 'main'

fontchooser: Rename default feature value

See merge request GNOME/gtk!4995

3 years agofontchooser: Rename default feature value
Matthias Clasen [Mon, 29 Aug 2022 02:07:44 +0000 (22:07 -0400)]
fontchooser: Rename default feature value

"Default" is a better fit than "None" here.

3 years agofontchooser: Add a tooltip to the tweak button
Matthias Clasen [Mon, 29 Aug 2022 16:13:32 +0000 (12:13 -0400)]
fontchooser: Add a tooltip to the tweak button

Icon-only buttons are always better with a tooltip.

3 years agofontchooser: Remove placeholder from preview entry
Matthias Clasen [Mon, 29 Aug 2022 14:17:47 +0000 (10:17 -0400)]
fontchooser: Remove placeholder from preview entry

The way we explicitly set the font on the entry
conflicts with the placeholder text styling. But the
entry isn't normally empty, so placeholder text is
not that important here. Remove it and use a tooltip
instead.

3 years agoUpdate Catalan translation
Jordi Mas [Mon, 29 Aug 2022 10:28:26 +0000 (12:28 +0200)]
Update Catalan translation

3 years agoHC: entry - make hints italic
Jakub Steiner [Mon, 29 Aug 2022 09:58:29 +0000 (11:58 +0200)]
HC: entry - make hints italic

- to keep contrast but indicated difference between a value and a hint

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

3 years agoMerge branch 'font-feature-work' into 'main'
Matthias Clasen [Mon, 29 Aug 2022 01:26:12 +0000 (01:26 +0000)]
Merge branch 'font-feature-work' into 'main'

fontchooser: Improve handling of features

See merge request GNOME/gtk!4992

3 years agoMerge branch 'gtknotebook-arrow-press' into 'main'
Matthias Clasen [Sun, 28 Aug 2022 23:30:00 +0000 (23:30 +0000)]
Merge branch 'gtknotebook-arrow-press' into 'main'

gtknotebook: Claim event sequence after pressing notebook arrow buttons

See merge request GNOME/gtk!4990

3 years agoMerge branch 'gtknotebook-arrow-state' into 'main'
Matthias Clasen [Sun, 28 Aug 2022 23:29:25 +0000 (23:29 +0000)]
Merge branch 'gtknotebook-arrow-state' into 'main'

gtknotebook: update arrow button state when reordering tabs

See merge request GNOME/gtk!4991

3 years agoUpdate Polish translation
Piotr Drąg [Sun, 28 Aug 2022 21:34:58 +0000 (23:34 +0200)]
Update Polish translation

3 years agofontchooser: Improve handling of features
Matthias Clasen [Sun, 28 Aug 2022 21:02:56 +0000 (17:02 -0400)]
fontchooser: Improve handling of features

salt and swsh need to be treated like cvXX, with
a dropdown. Also add examples to the default cases
of radio groups.

3 years agogtknotebook: update arrow button state when reordering tabs
Mat [Sun, 28 Aug 2022 20:55:15 +0000 (23:55 +0300)]
gtknotebook: update arrow button state when reordering tabs

When reordering notebook tabs, updating the sensitivity state of the
arrow buttons is necessary if the tab is moved to the beginning or
end of the tab list.

3 years agogtknotebook: Claim event sequence after pressing notebook arrow buttons
Mat [Sun, 28 Aug 2022 20:34:27 +0000 (23:34 +0300)]
gtknotebook: Claim event sequence after pressing notebook arrow buttons

When notebook tabs are reorderable, pressing the notebook arrow buttons to
change the active tab results in tabs reordering unexpectedly.
Claim the event sequence after pressing an arrow button to avoid conflicts
with the motion/drag gesture used for reordering.

3 years agoUpdate Russian translation
Aleksandr Melman [Sun, 28 Aug 2022 18:51:12 +0000 (18:51 +0000)]
Update Russian translation

3 years agoMerge branch 'notebook-tab-accessibility' into 'main'
Matthias Clasen [Sun, 28 Aug 2022 14:53:03 +0000 (14:53 +0000)]
Merge branch 'notebook-tab-accessibility' into 'main'

gtkatspiselection: Retrieve the correct GtkNotebook tab widget

See merge request GNOME/gtk!4989

3 years agoUpdate Croatian translation
Goran Vidović [Sun, 28 Aug 2022 14:41:32 +0000 (14:41 +0000)]
Update Croatian translation

3 years agoMerge branch 'strdup-avoidance' into 'main'
Matthias Clasen [Sun, 28 Aug 2022 14:05:02 +0000 (14:05 +0000)]
Merge branch 'strdup-avoidance' into 'main'

notebook: Use canonical signal names

See merge request GNOME/gtk!4988

3 years agogtkatspiselection: Retrieve the correct GtkNotebook tab widget
Mat [Sun, 28 Aug 2022 13:51:31 +0000 (16:51 +0300)]
gtkatspiselection: Retrieve the correct GtkNotebook tab widget

A typo resulted in the tab container widget being retrieved instead of
the tab widget. If an adjacent action widget was present, an infinite
loop occurred when switching tabs while a screen reader was enabled.

3 years agoUpdate Portuguese translation
Hugo Carvalho [Sun, 28 Aug 2022 13:14:19 +0000 (13:14 +0000)]
Update Portuguese translation

3 years agoUse gtk_event_controller_set_static_name
Matthias Clasen [Sun, 28 Aug 2022 02:00:42 +0000 (22:00 -0400)]
Use gtk_event_controller_set_static_name

This avoids strdups.

3 years agoeventcontroller: Allow static names
Matthias Clasen [Sun, 28 Aug 2022 01:59:02 +0000 (21:59 -0400)]
eventcontroller: Allow static names

These names are a debug-only feature, and we
use string literals everywhere, so avoid the
overhead of copying them.

3 years agoshortcutaction: Intern signal names
Matthias Clasen [Sun, 28 Aug 2022 02:33:21 +0000 (22:33 -0400)]
shortcutaction: Intern signal names

Signal names are already interned anyway,
so we can avoid strdups here, and just use
the interned names.

3 years agonotebook: Use canonical signal names
Matthias Clasen [Sun, 28 Aug 2022 02:32:29 +0000 (22:32 -0400)]
notebook: Use canonical signal names

No excuse for not doing that.

3 years agoUpdate Croatian translation
Goran Vidović [Sat, 27 Aug 2022 20:18:12 +0000 (20:18 +0000)]
Update Croatian translation

3 years agoMerge branch 'gl-renderer-make-context-current-in-remove-program' into 'main'
Luca Bacci [Sat, 27 Aug 2022 17:53:39 +0000 (17:53 +0000)]
Merge branch 'gl-renderer-make-context-current-in-remove-program' into 'main'

GL Renderer: Make GdkGLContext current in gsk_gl_driver_shader_weak_cb

Closes #5140

See merge request GNOME/gtk!4985

3 years agoUpdate Polish translation
Piotr Drąg [Sat, 27 Aug 2022 14:16:35 +0000 (16:16 +0200)]
Update Polish translation

3 years agoUpdate POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 27 Aug 2022 13:54:10 +0000 (15:54 +0200)]
Update POTFILES.in and POTFILES.skip

3 years agoGL Renderer: Ensure that GdkGLContext is current in gsk_gl_driver_shader_weak_cb
Luca Bacci [Sat, 27 Aug 2022 08:37:14 +0000 (10:37 +0200)]
GL Renderer: Ensure that GdkGLContext is current in gsk_gl_driver_shader_weak_cb

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

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 27 Aug 2022 09:56:43 +0000 (09:56 +0000)]
Update Ukrainian translation

3 years agoUpdate Persian translation
Danial Behzadi [Sat, 27 Aug 2022 05:32:31 +0000 (05:32 +0000)]
Update Persian translation

3 years agoMerge branch 'font-chooser-feature-work' into 'main'
Matthias Clasen [Fri, 26 Aug 2022 22:10:52 +0000 (22:10 +0000)]
Merge branch 'font-chooser-feature-work' into 'main'

fontchooser: Handle font features better

See merge request GNOME/gtk!4984

3 years agofontchooser: Handle font features better
Matthias Clasen [Fri, 26 Aug 2022 02:26:07 +0000 (22:26 -0400)]
fontchooser: Handle font features better

Properly show multiple-choice cvXX features as dropdowns,
include afrc, and fix bugs in feature enumeration that
made some features not show up.

3 years agoMerge branch 'win32-gir' into 'main'
Luca Bacci [Fri, 26 Aug 2022 13:14:30 +0000 (13:14 +0000)]
Merge branch 'win32-gir' into 'main'

gdk/win32: do not expose gdk_win32_*_libgtk_only in public headers

See merge request GNOME/gtk!4980

3 years agoSome strdup avoidance
Matthias Clasen [Thu, 25 Aug 2022 18:33:30 +0000 (14:33 -0400)]
Some strdup avoidance

3 years agogdk/win32: add missing Since tag for gdk_win32_display_get_egl_display
Marc-André Lureau [Thu, 25 Aug 2022 13:33:25 +0000 (17:33 +0400)]
gdk/win32: add missing Since tag for gdk_win32_display_get_egl_display

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoUpdate Abkhazian translation
Nart Tlisha [Thu, 25 Aug 2022 10:29:34 +0000 (10:29 +0000)]
Update Abkhazian translation

3 years agogdk/win32: deprecate gdk_win32_handle_table_lookup
Marc-André Lureau [Wed, 24 Aug 2022 17:01:45 +0000 (21:01 +0400)]
gdk/win32: deprecate gdk_win32_handle_table_lookup

This function is probably not generally useful for a Gtk+/win32 user,
and it's only used internally by gdk-win32. It's time to deprecate it, I
believe.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoMerge branch 'treelistmodel-collapse-test' into 'main'
Benjamin Otte [Wed, 24 Aug 2022 13:42:51 +0000 (13:42 +0000)]
Merge branch 'treelistmodel-collapse-test' into 'main'

treelistmodel: Fix handling of collapsed nodes

Closes #4595

See merge request GNOME/gtk!4981

3 years agoAdd a test for treelistmodel row collapse
Matthias Clasen [Wed, 24 Aug 2022 03:03:49 +0000 (23:03 -0400)]
Add a test for treelistmodel row collapse

Test that we can expand and collapse a row, and then
add another child below it, without crashing.

Adapted from the testcase in #4595.

This tests the fix in the previous commit.

3 years agotreelistmodel: Fix handling of collapsed nodes
Matthias Clasen [Wed, 24 Aug 2022 12:20:33 +0000 (08:20 -0400)]
treelistmodel: Fix handling of collapsed nodes

When we collapse a node, we clear out the children,
but we were not disconnecting the signal handler on
the child listmodel, leading to bad outcomes when
that model is persistent and changing.

Fixes: #4595
3 years agogdk/win32: do not expose gdk_win32_*_libgtk_only in public headers
Marc-André Lureau [Wed, 24 Aug 2022 11:44:32 +0000 (15:44 +0400)]
gdk/win32: do not expose gdk_win32_*_libgtk_only in public headers

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoMerge branch 'win32-gir' into 'main'
Luca Bacci [Wed, 24 Aug 2022 09:41:11 +0000 (09:41 +0000)]
Merge branch 'win32-gir' into 'main'

win32: various GI annotations and fixes

See merge request GNOME/gtk!4977

3 years agoMerge branch 'gdk-win32-scale-text-with-dpi-as-gtk3' into 'main'
Luca Bacci [Wed, 24 Aug 2022 09:35:30 +0000 (09:35 +0000)]
Merge branch 'gdk-win32-scale-text-with-dpi-as-gtk3' into 'main'

GdkWin32: Scale text like in GTK3 with SYSTEM_DPI_AWARENESS

Closes #4187

See merge request GNOME/gtk!4979

3 years agoGdkWin32: Scale text with DPI like in GTK3 with SYSTEM_DPI_AWARENESS
Luca Bacci [Tue, 23 Aug 2022 12:49:59 +0000 (14:49 +0200)]
GdkWin32: Scale text with DPI like in GTK3 with SYSTEM_DPI_AWARENESS

Right now we only support system DPI awareness in GTK4. In that case
it makes sense to scale text with the DPI of the primary monitor, like
done in GTK3.

We plan to land support for proper fractional scaling in Gdk/Win32, so
in the future the "gtk-xft-dpi" setting will be gathered as intended,
i.e. for text magnification, as an a11y feature.

3 years agoMerge branch 'gdk-win32-fix-monitor-for-popup' into 'main'
Luca Bacci [Tue, 23 Aug 2022 17:20:02 +0000 (17:20 +0000)]
Merge branch 'gdk-win32-fix-monitor-for-popup' into 'main'

GdkWin32: Use primary monitor as fallback if popup layout does not intersect any

See merge request GNOME/gtk!4978

3 years agogdk/win32: annotate gdk_win32_surface_lookup_for_display
Marc-André Lureau [Tue, 23 Aug 2022 13:20:39 +0000 (17:20 +0400)]
gdk/win32: annotate gdk_win32_surface_lookup_for_display

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agogdk/win32: annotate gdk_win32_surface_set_urgency_hint
Marc-André Lureau [Tue, 23 Aug 2022 13:06:48 +0000 (17:06 +0400)]
gdk/win32: annotate gdk_win32_surface_set_urgency_hint

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoGdkWin32: Position popups on the primary monitor if outside of the visible screen...
Luca Bacci [Tue, 23 Aug 2022 12:54:01 +0000 (14:54 +0200)]
GdkWin32: Position popups on the primary monitor if outside of the visible screen area

Fixes a crash caused by attempting to dereference a NULL GdkMonitor*
in GdkWin32.

See https://gitlab.gnome.org/GNOME/gtk/-/issues/5125

3 years agogtk/win32: fix a switch-default warning
Marc-André Lureau [Tue, 23 Aug 2022 12:42:15 +0000 (16:42 +0400)]
gtk/win32: fix a switch-default warning

gtk/gtkimcontextime.c:714:3: warning: switch missing default case [-Wswitch-default]

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoMerge branch 'tweak-option-docs' into 'main'
Matthias Clasen [Tue, 23 Aug 2022 12:41:46 +0000 (12:41 +0000)]
Merge branch 'tweak-option-docs' into 'main'

Tweak the vulkan option description

See merge request GNOME/gtk!4976

3 years agogdk/win32: deprecate gdk_win32_surface_get_impl_hwnd
Marc-André Lureau [Tue, 23 Aug 2022 12:35:07 +0000 (16:35 +0400)]
gdk/win32: deprecate gdk_win32_surface_get_impl_hwnd

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agogtk/win32: use gdk_win32_surface_get_handle
Marc-André Lureau [Tue, 23 Aug 2022 12:31:07 +0000 (16:31 +0400)]
gtk/win32: use gdk_win32_surface_get_handle

As I propose to deprecate gdk_win32_surface_get_impl_hwnd() next,
replace it with the alternative.

The main difference between the two functions is that
gdk_win32_surface_get_impl_hwnd() fails gracefully by returning NULL if
the surface is not of the win32 implementation.

All the surfaces should be native surfaces here, and the existing code
doesn't seem to deal with NULL case anyway.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoTweak the vulkan option description
Matthias Clasen [Tue, 23 Aug 2022 12:27:24 +0000 (08:27 -0400)]
Tweak the vulkan option description

The thing that is experimental is our renderer,
not the vulkan API.

3 years agogdk/win32: annotate gdk_win32_surface_get_handle
Marc-André Lureau [Tue, 23 Aug 2022 12:25:30 +0000 (16:25 +0400)]
gdk/win32: annotate gdk_win32_surface_get_handle

And adjust the argument precondition check.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agogdk/win32: correct gdk_win32_surface_get_handle return type
Marc-André Lureau [Tue, 23 Aug 2022 12:17:15 +0000 (16:17 +0400)]
gdk/win32: correct gdk_win32_surface_get_handle return type

The associated surface window handle is a HWND, not a HGDIOBJ.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoUpdate Icelandic translation
Sveinn í Felli [Tue, 23 Aug 2022 11:49:37 +0000 (11:49 +0000)]
Update Icelandic translation

(cherry picked from commit a27ae5362c81e4395e962a9e0636a9f92c50c6ef)

3 years agoUpdate Icelandic translation
Sveinn í Felli [Tue, 23 Aug 2022 11:38:38 +0000 (11:38 +0000)]
Update Icelandic translation

(cherry picked from commit e6d3c58ccfeba0840b4849238f431124a1903605)

3 years agogdk/win32: deprecate gdk_win32_surface_is_win32
Marc-André Lureau [Tue, 23 Aug 2022 11:32:55 +0000 (15:32 +0400)]
gdk/win32: deprecate gdk_win32_surface_is_win32

The function isn't used by Gtk itself anymore, and does not help much.
It creates extra issues for bindings, as it doesn't fit well with code
doing the same job for other objects.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agogdk/win32: annotate filter callbacks
Marc-André Lureau [Tue, 23 Aug 2022 08:57:20 +0000 (12:57 +0400)]
gdk/win32: annotate filter callbacks

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoMerge branch 'win32-gir' into 'main'
Luca Bacci [Mon, 22 Aug 2022 22:26:09 +0000 (22:26 +0000)]
Merge branch 'win32-gir' into 'main'

Generate gtk/GdkWin32-4.0.gir

Closes #5112

See merge request GNOME/gtk!4965

3 years agoUpdated Lithuanian translation
Aurimas Černius [Mon, 22 Aug 2022 20:21:45 +0000 (23:21 +0300)]
Updated Lithuanian translation

3 years agoMerge branch 'fix-calc-value-free' into 'main'
Matthias Clasen [Mon, 22 Aug 2022 16:31:23 +0000 (16:31 +0000)]
Merge branch 'fix-calc-value-free' into 'main'

css: Fix freeing of calc values

Closes #5130

See merge request GNOME/gtk!4974

3 years agocss: Fix freeing of calc values
Matthias Clasen [Mon, 22 Aug 2022 15:51:20 +0000 (11:51 -0400)]
css: Fix freeing of calc values

We were getting our memory allocations mixed
up here.

Fixes: #5130
3 years agoMerge branch 'jpeg-memory-limit' into 'main'
Matthias Clasen [Mon, 22 Aug 2022 15:03:40 +0000 (15:03 +0000)]
Merge branch 'jpeg-memory-limit' into 'main'

Bump the jpeg memory limit

See merge request GNOME/gtk!4973

3 years agoBump the jpeg memory limit
Matthias Clasen [Mon, 22 Aug 2022 14:48:00 +0000 (10:48 -0400)]
Bump the jpeg memory limit

Commit 59f6c50df8d4d9 set the memory limit to 100M,
which turns out to exclude some large, valid jpegs.
So, bump things to 300M, matching what was done
in gdk-pixbuf.

3 years agoMerge branch 'no-emoji-insert' into 'main'
Matthias Clasen [Sun, 21 Aug 2022 20:47:27 +0000 (20:47 +0000)]
Merge branch 'no-emoji-insert' into 'main'

text: Respect no-emoji hint fully

See merge request GNOME/gtk!4972

3 years agotext: Respect no-emoji hint fully
Matthias Clasen [Sun, 21 Aug 2022 20:29:41 +0000 (16:29 -0400)]
text: Respect no-emoji hint fully

We were disabling the insert-emoji action when the
no-emoji input hint is set, but the Ctrl-. shortcut
was bypassing the action and kept working. Make
the shortcut activate the action instead.

Fixes: #5123
3 years agoMerge branch 'wip/smcv/log-writer' into 'main'
Matthias Clasen [Sun, 21 Aug 2022 11:55:00 +0000 (11:55 +0000)]
Merge branch 'wip/smcv/log-writer' into 'main'

icontheme test: Assert that the subprocess passed

See merge request GNOME/gtk!4969

3 years agoicontheme test: Assert that the subprocess passed
Simon McVittie [Sat, 20 Aug 2022 18:38:29 +0000 (19:38 +0100)]
icontheme test: Assert that the subprocess passed

Noticed while backporting GLogWriterFunc fixes to 3.24.x (#5119).

Signed-off-by: Simon McVittie <smcv@debian.org>
3 years agoUpdate Serbian translation
Марко Костић [Sat, 20 Aug 2022 13:06:02 +0000 (13:06 +0000)]
Update Serbian translation

3 years agoUpdate Galician translation
Fran Dieguez [Sat, 20 Aug 2022 11:26:34 +0000 (11:26 +0000)]
Update Galician translation

3 years agoMerge branch 'gdk-win32-fix-handling-of-input-region' into 'main'
Luca Bacci [Sat, 20 Aug 2022 10:08:32 +0000 (10:08 +0000)]
Merge branch 'gdk-win32-fix-handling-of-input-region' into 'main'

GdkWin32: Fix handling of WM_NCHITTEST

Closes #5114

See merge request GNOME/gtk!4966

3 years agoUpdate Georgian translation
Zurab Kargareteli [Sat, 20 Aug 2022 07:37:42 +0000 (07:37 +0000)]
Update Georgian translation

3 years agoMerge branch 'fix-emojichooser-keynav' into 'main'
Matthias Clasen [Fri, 19 Aug 2022 20:12:51 +0000 (20:12 +0000)]
Merge branch 'fix-emojichooser-keynav' into 'main'

emojichooser: Fix arrow keynav

Closes #5076

See merge request GNOME/gtk!4967

3 years agoemojichooser: Fix arrow keynav
Matthias Clasen [Fri, 19 Aug 2022 19:55:10 +0000 (15:55 -0400)]
emojichooser: Fix arrow keynav

When some of the Emoji have been filtered out by
a search term, arrow keynav would behave oddly and
get stuck in invisible sections. Fix this by ignoring
any filtered out children when moving between
sections for arrow keynav.

Fixes: #5076
3 years agoFix typo
Luca Bacci [Fri, 19 Aug 2022 17:28:41 +0000 (19:28 +0200)]
Fix typo

And reword comment

3 years agoGdkWin32: Fix handling of WM_NCHITTEST
Luca Bacci [Fri, 19 Aug 2022 17:21:17 +0000 (19:21 +0200)]
GdkWin32: Fix handling of WM_NCHITTEST

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

3 years agobuild-sys: generate GdkWin32.gir
Marc-André Lureau [Thu, 18 Aug 2022 15:57:17 +0000 (19:57 +0400)]
build-sys: generate GdkWin32.gir

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoMerge branch 'mingw' into 'main'
Matthias Clasen [Fri, 19 Aug 2022 11:06:10 +0000 (11:06 +0000)]
Merge branch 'mingw' into 'main'

Cross-building with mingw & fixes

See merge request GNOME/gtk!4341

3 years agobuild-sys: do not install gdkwin32keys.h
Marc-André Lureau [Fri, 19 Aug 2022 07:30:51 +0000 (11:30 +0400)]
build-sys: do not install gdkwin32keys.h

Fixes: commit 89ad7893adb25a79 ("gdk: Make GdkKeymap a private api")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agogdk/win32: remove old declaration
Marc-André Lureau [Fri, 19 Aug 2022 07:19:30 +0000 (11:19 +0400)]
gdk/win32: remove old declaration

The function is gone since commit ea65abc7e2cd ("Rewrite
GdkWin32Keymap (load table directly from layout DLL)")

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
3 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Fri, 19 Aug 2022 01:08:59 +0000 (01:08 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

gdk: Plug a memleak

Closes #5110

See merge request GNOME/gtk!4964

3 years agogdk: Plug a memleak
Benjamin Otte [Fri, 19 Aug 2022 00:38:11 +0000 (02:38 +0200)]
gdk: Plug a memleak

Free GdkIOPipe struct when freeing it
Don't just free all its members.

Fixes #5110

3 years agoMerge branch 'treeview-search-focus' into 'main'
Matthias Clasen [Thu, 18 Aug 2022 23:51:02 +0000 (23:51 +0000)]
Merge branch 'treeview-search-focus' into 'main'

treeview: Always call grab_focus_without_selecting on search entry

Closes #4551

See merge request GNOME/gtk!4961

3 years agoMerge branch 'remove-msys2-ci-subproject-workaround' into 'main'
Luca Bacci [Thu, 18 Aug 2022 18:40:05 +0000 (18:40 +0000)]
Merge branch 'remove-msys2-ci-subproject-workaround' into 'main'

CI: remove workaround for some subproject builds failing on Windows

See merge request GNOME/gtk!4923

3 years agoMerge branch 'wip/carlosg/im-fixes' into 'main'
Matthias Clasen [Thu, 18 Aug 2022 17:58:26 +0000 (17:58 +0000)]
Merge branch 'wip/carlosg/im-fixes' into 'main'

gtkimcontextwayland: Refactor handling of client updates

Closes #5106 and #5105

See merge request GNOME/gtk!4962

3 years agogtkimcontextwayland: Refactor handling of client updates
Carlos Garnacho [Wed, 17 Aug 2022 22:58:38 +0000 (00:58 +0200)]
gtkimcontextwayland: Refactor handling of client updates

Currently, the wayland IM context sends zwp_text_input_v3.commit from
a number of places, and some of them with partial data. In order to
make client state updates "atomic" and complete, make the communication
happen over an unified notify_im_change() function that happens on
a narrower set of circumstances:

  - The GtkIMContext is reset
  - The GtkIMContext is just focused
  - The gesture to invoke the OSK is triggered
  - The IM context is reacting to changes coming from the compositor

Notably, setting the cursor location or the surrounding text do not try
to commit state on their own, and now will be flushed with the corresponding
IM update or reset. But also, these requests won't be prevented from
happening individually on serial mismatch, instead it will be the whole
state commit which is held off.

With these changes in place, all client-side updates are notified
atomically to the compositor under a single .commit request.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5106
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5105
3 years agogtktextview: Shuffle the places doing IM reset
Carlos Garnacho [Wed, 17 Aug 2022 22:58:14 +0000 (00:58 +0200)]
gtktextview: Shuffle the places doing IM reset

During text widget manipulation (inserting or deleting text via keyboard)
the IM context is reset somewhat early, before the actual change took place.
This makes IM lag behind in terms of surrounding text and cursor position.

Shuffle these IM reset calls so that they happen after the changes, and
ensure that the IM is actually reset, since that is currently toggled on
a pretty narrow set of circumstances.

Also, fix a bug during GtkEventControllerKey::im-update where the condition
on cursor position editability to reset the IM context was inverted.

3 years agotreeview: Always call grab_focus_without_selecting on search entry
Mat [Thu, 18 Aug 2022 15:03:04 +0000 (18:03 +0300)]
treeview: Always call grab_focus_without_selecting on search entry

The search text entry is always a GtkText widget, not GtkEntry. If a
custom search entry is set, this part of the code is never reached.

Fixes #4551