Matthias Clasen [Fri, 9 Sep 2022 16:33:08 +0000 (12:33 -0400)]
gtk-demo: Avoid a segfault
The code in the fontrendering demo is a bit sloppy
and assumes that we always get a single run when
appending a sequence of 4 chars and 4 spaces.
That is not in general true, such as for Emoji.
Instead of working harder to handle Emoji here,
just give up and fall back to 'a'.
Fixes: #5166
Matthias Clasen [Fri, 9 Sep 2022 14:59:03 +0000 (14:59 +0000)]
Merge branch 'gtkplaces' into 'main'
gtkplacesview: Right click popover fix crash and align menu with mouse
See merge request GNOME/gtk!4662
Matthias Clasen [Fri, 9 Sep 2022 14:56:33 +0000 (14:56 +0000)]
Merge branch 'gtktooltip.c-optimise' into 'main'
gtk/gtktooltip.c: check result of event position get operation
Closes #5134
See merge request GNOME/gtk!4996
Matthias Clasen [Fri, 9 Sep 2022 12:36:43 +0000 (12:36 +0000)]
Merge branch 'wip/carlosg/im-reset' into 'main'
Avoid early IM reset on updates
Closes #5133
See merge request GNOME/gtk!5012
Rūdolfs Mazurs [Wed, 7 Sep 2022 20:56:57 +0000 (20:56 +0000)]
Update Latvian translation
Matthias Clasen [Wed, 7 Sep 2022 15:04:43 +0000 (15:04 +0000)]
Merge branch 'fix-file-transfer-portal' into 'main'
Stop recursion in registering serializers
See merge request GNOME/gtk!5013
Matthias Clasen [Wed, 7 Sep 2022 11:57:42 +0000 (07:57 -0400)]
Make clipboard tests work with portals
This was not working right, since it hasn't been
tested with portals - there are no portals in ci.
Matthias Clasen [Wed, 7 Sep 2022 11:53:12 +0000 (07:53 -0400)]
Handle absence of portals
When the documents portal is not on the bus,
we still get an (unowned) proxy, and we need
to handle that situation.
Matthias Clasen [Wed, 7 Sep 2022 03:44:58 +0000 (23:44 -0400)]
portals: Fix FileTransfer portal calls
We were not passing the right arguments to
the AddFiles call, causing the file transfer
to fail.
Matthias Clasen [Wed, 7 Sep 2022 03:38:08 +0000 (23:38 -0400)]
Make the file transfer portal setup sync again
We need to register the portal mime types before
the others to prefer them, doing this call async
messes up that ordering.
This is effectively reverting
69fb3648b2e20935b7839f874
Matthias Clasen [Wed, 7 Sep 2022 03:35:48 +0000 (23:35 -0400)]
Stop recursion in registering serializers
This was probably unintentional, and messes up
the ordering of our registration.
Matthias Clasen [Tue, 6 Sep 2022 22:19:30 +0000 (22:19 +0000)]
Merge branch 'textbuffer-set-text-docs' into 'main'
Document irreversibility of gtk_text_buffer_set_text
See merge request GNOME/gtk!5005
Matthias Clasen [Tue, 6 Sep 2022 20:50:06 +0000 (20:50 +0000)]
Merge branch 'launch-uri-no-export' into 'main'
Make gtk_launch_uri more robust
Closes #5152
See merge request GNOME/gtk!5010
Matthias Clasen [Tue, 6 Sep 2022 20:34:39 +0000 (20:34 +0000)]
Merge branch 'gtk-scale-set-digits-update-label' into 'main'
GtkScale: Update the label size request from set_digits ()
Closes #5156
See merge request GNOME/gtk!5011
Matthias Clasen [Tue, 6 Sep 2022 20:30:15 +0000 (20:30 +0000)]
Merge branch 'wip/antoniof/columnview-rtl' into 'main'
columnview: Invert columns on RTL
Closes nautilus#2302
See merge request GNOME/gtk!5002
Carlos Garnacho [Tue, 6 Sep 2022 19:55:13 +0000 (21:55 +0200)]
gtktextview: Also reset IM context after IM surrounding text deletion
When the IM commands the GtkText to delete text, the cursor position
would change, and so would the surrounding text. Reset the IM context
so that these updates are properly picked up by the IM.
Fixes backspace key behavior in the GNOME Shell OSK, since that relies
on the surrounding text being properly updated for the next iteration.
Carlos Garnacho [Tue, 6 Sep 2022 19:53:25 +0000 (21:53 +0200)]
gtktext: Also reset IM context after IM surrounding text deletion
When the IM commands the GtkText to delete text, the cursor position
would change, and so would the surrounding text. Reset the IM context
so that these updates are properly picked up by the IM.
Fixes backspace key behavior in the GNOME Shell OSK, since that relies
on the surrounding text being properly updated for the next iteration.
Carlos Garnacho [Tue, 6 Sep 2022 19:43:14 +0000 (21:43 +0200)]
gtktext: Avoid early IM reset on updates
Resetting the IM on IM updates is too eager and indeed the simple
IM context doesn't like that this happens in the middle of dead
key handling.
We however want to reset the IM after actual text buffer changes
(say, a committed string) moved the cursor position, altered the
surrounding text, etc. So that the IM implementation does know to
update its state.
Since there is going to be an actual IM reset anyways, it does
no longer make sense to try to preserve the old priv->need_im_reset
status during commit handling.
Fixes: 52ac71b972 ("gtktextview: Shuffle the places doing IM reset")
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5133
Carlos Garnacho [Tue, 6 Sep 2022 19:38:35 +0000 (21:38 +0200)]
gtktext: Avoid early IM reset on updates
Resetting the IM on IM updates is too eager and indeed the simple
IM context doesn't like that this happens in the middle of dead
key handling.
We however want to reset the IM after actual text buffer changes
(say, a committed string) moved the cursor position, altered the
surrounding text, etc. So that the IM implementation does know to
update its state.
Fixes: 9e29739e66 ("gtktext: Shuffle the places doing IM reset")
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5133
Matthias Clasen [Tue, 6 Sep 2022 20:17:33 +0000 (20:17 +0000)]
Merge branch 'treepopover-ellipsize' into 'main'
treepopover: Do not propagate natural width of content
See merge request GNOME/gtk!4895
Matthias Clasen [Tue, 6 Sep 2022 20:14:38 +0000 (20:14 +0000)]
Merge branch 'display-wayland-update-scale' into 'main'
wayland/display: Remove duplicate update_scale() call
See merge request GNOME/gtk!5003
Matthias Clasen [Tue, 6 Sep 2022 19:34:30 +0000 (15:34 -0400)]
4.8.0
Luca Bacci [Tue, 6 Sep 2022 17:27:38 +0000 (19:27 +0200)]
GtkScale: Update the label's size request from set_digits ()
Update the label size request when setting the digits property
by calling the update_label_request () util function.
That util function works by measuring the size request of the
label with the lower and upper values of the adjustment, then
taking the max. That way the size requisition is constant
regardless of the actual displayed value.
Since the util function internally works by setting the text
of the label, let it also set the text at last by taking in
account the current adjustment's value. Most of its callers
do that anyway.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5156
Matthias Clasen [Tue, 6 Sep 2022 16:37:56 +0000 (12:37 -0400)]
Make gtk_launch_uri more robust
We were failing to launch the uri if we are on
Wayland, but have no xdg_foreign protocol support.
Fixes: #5152
Zurab Kargareteli [Tue, 6 Sep 2022 16:28:59 +0000 (16:28 +0000)]
Update Georgian translation
Zurab Kargareteli [Tue, 6 Sep 2022 16:28:00 +0000 (16:28 +0000)]
Update Georgian translation
Changwoo Ryu [Tue, 6 Sep 2022 04:15:30 +0000 (04:15 +0000)]
Update Korean translation
Aurimas Černius [Mon, 5 Sep 2022 19:38:20 +0000 (22:38 +0300)]
Updated Lithuanian translation
Daniel Mustieles [Mon, 5 Sep 2022 12:30:59 +0000 (14:30 +0200)]
Updated Spanish translation
Fran Dieguez [Sun, 4 Sep 2022 22:24:45 +0000 (22:24 +0000)]
Update Galician translation
Aleksandr Melman [Sun, 4 Sep 2022 20:45:34 +0000 (20:45 +0000)]
Update Russian translation
Rūdolfs Mazurs [Sun, 4 Sep 2022 15:50:02 +0000 (15:50 +0000)]
Update Latvian translation
Jürgen Benvenuti [Sun, 4 Sep 2022 13:57:48 +0000 (13:57 +0000)]
Update German translation
Elliott Sales de Andrade [Sun, 4 Sep 2022 06:40:41 +0000 (02:40 -0400)]
Document irreversibility of gtk_text_buffer_set_text
If you've begun a user action and call `gtk_text_buffer_set_text`, you
get an unexpected warning:
```
Gtk-WARNING **: Cannot begin irreversible action while in user action
```
which can be fixed by doing the delete/insert yourself. But this is not
documented as occurring, so document it.
Boyuan Yang [Sat, 3 Sep 2022 21:16:03 +0000 (21:16 +0000)]
Update Chinese (China) translation
Rūdolfs Mazurs [Sat, 3 Sep 2022 13:04:54 +0000 (13:04 +0000)]
Update Latvian translation
Piotr Drąg [Sat, 3 Sep 2022 13:00:46 +0000 (15:00 +0200)]
Update Polish translation
Marek Černocký [Sat, 3 Sep 2022 07:50:00 +0000 (09:50 +0200)]
Updated Czech translation
Robert Mader [Fri, 2 Sep 2022 22:48:17 +0000 (00:48 +0200)]
wayland/display: Remove duplicate update_scale() call
`apply_monitor_change()` already calls `update_scale()`.
Note that this only affects old compositor versions (see
`should_update_monitor()`) so it's just a minor cleanup.
Balázs Úr [Fri, 2 Sep 2022 21:29:08 +0000 (21:29 +0000)]
Update Hungarian translation
Jordi Mas [Fri, 2 Sep 2022 18:34:04 +0000 (20:34 +0200)]
Update Catalan translation
António Fernandes [Fri, 2 Sep 2022 14:44:59 +0000 (15:44 +0100)]
columnview: Invert columns on RTL
Respect text direction.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2302
Carlos Garnacho [Fri, 2 Sep 2022 12:40:15 +0000 (12:40 +0000)]
Merge branch 'treeview-gesture-claim' into 'main'
treeview: Don't claim event sequence too early
Closes #3649, #3985, #4206, and #4669
See merge request GNOME/gtk!4883
Mat [Sun, 17 Jul 2022 03:32:20 +0000 (06:32 +0300)]
treeview: Don't claim event sequence too early
We want to claim the event sequence in the click gesture when appropriate,
such as activating a row or clicking an editable cell, but this is currently
done too early, preventing other gestures for drag-and-drop and rubberband
selection entirely.
Fixes #3649
Fixes #3985
Fixes #4669
Ask Hjorth Larsen [Fri, 2 Sep 2022 09:51:27 +0000 (11:51 +0200)]
Updated Danish translation
Emin Tufan Çetin [Thu, 1 Sep 2022 22:53:55 +0000 (22:53 +0000)]
Update Turkish translation
Alexander Shopov [Thu, 1 Sep 2022 21:11:55 +0000 (21:11 +0000)]
Update Bulgarian translation
Luca Bacci [Thu, 1 Sep 2022 20:39:15 +0000 (20:39 +0000)]
Merge branch 'implement-gtk-color-picker-for-windows' into 'main'
Implement GtkColorPicker for Windows
Closes #5136
See merge request GNOME/gtk!4983
Christian Hergert [Thu, 1 Sep 2022 19:16:10 +0000 (12:16 -0700)]
gdk: fix typo in frame clock docs
Luca Bacci [Fri, 26 Aug 2022 13:34:01 +0000 (15:34 +0200)]
Implement GtkColorPicker for Windows
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5136
Hugo Carvalho [Thu, 1 Sep 2022 17:18:51 +0000 (17:18 +0000)]
Update Portuguese translation
Nathan Follens [Thu, 1 Sep 2022 16:21:14 +0000 (16:21 +0000)]
Update Dutch translation
Matthias Clasen [Thu, 1 Sep 2022 15:00:42 +0000 (15:00 +0000)]
Merge branch 'gtkplacessidebar' into 'main'
gtkplacessidebar: Fix crash when remove or rename bookmark
See merge request GNOME/gtk!4625
Matthias Clasen [Thu, 1 Sep 2022 14:38:49 +0000 (14:38 +0000)]
Merge branch 'inscription_a11y' into 'main'
GtkInscription: Set the a11y label when updating the text property
See merge request GNOME/gtk!5000
Lukáš Tyrychtr [Thu, 1 Sep 2022 14:19:59 +0000 (16:19 +0200)]
GtkInscription: Set the a11y label when updating the text property
Anders Jonsson [Thu, 1 Sep 2022 13:15:36 +0000 (13:15 +0000)]
Update Swedish translation
Marek Černocký [Thu, 1 Sep 2022 12:41:37 +0000 (14:41 +0200)]
Updated Czech translation
Marek Černocký [Thu, 1 Sep 2022 12:34:27 +0000 (14:34 +0200)]
Updated Czech translation
Leônidas Araújo [Wed, 31 Aug 2022 14:53:19 +0000 (14:53 +0000)]
Update Brazilian Portuguese translation
Danial Behzadi [Wed, 31 Aug 2022 12:45:30 +0000 (12:45 +0000)]
Update Persian translation
Kukuh Syafaat [Wed, 31 Aug 2022 09:17:12 +0000 (09:17 +0000)]
Update Indonesian translation
Asier Sarasua Garmendia [Wed, 31 Aug 2022 07:04:00 +0000 (07:04 +0000)]
Update Basque translation
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
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.
Goran Vidović [Tue, 30 Aug 2022 11:56:21 +0000 (11:56 +0000)]
Update Croatian translation
Maxim Zakharov [Tue, 30 Aug 2022 05:45:52 +0000 (15:45 +1000)]
gtk/gtktooltip.c: check result of event position get operation
Do not perform coordinates transformation when gdk_event_get_position()
returns FALSE as it returns NaNs in that case and these coordinates
are not used anyway in further processing (closes #5134).
Yuri Chornoivan [Mon, 29 Aug 2022 19:21:22 +0000 (19:21 +0000)]
Update Ukrainian translation
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
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
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.
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.
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.
Jordi Mas [Mon, 29 Aug 2022 10:28:26 +0000 (12:28 +0200)]
Update Catalan translation
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
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
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
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
Piotr Drąg [Sun, 28 Aug 2022 21:34:58 +0000 (23:34 +0200)]
Update Polish translation
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.
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.
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.
Aleksandr Melman [Sun, 28 Aug 2022 18:51:12 +0000 (18:51 +0000)]
Update Russian translation
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
Goran Vidović [Sun, 28 Aug 2022 14:41:32 +0000 (14:41 +0000)]
Update Croatian translation
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
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.
Hugo Carvalho [Sun, 28 Aug 2022 13:14:19 +0000 (13:14 +0000)]
Update Portuguese translation
Matthias Clasen [Sun, 28 Aug 2022 02:00:42 +0000 (22:00 -0400)]
Use gtk_event_controller_set_static_name
This avoids strdups.
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.
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.
Matthias Clasen [Sun, 28 Aug 2022 02:32:29 +0000 (22:32 -0400)]
notebook: Use canonical signal names
No excuse for not doing that.
Goran Vidović [Sat, 27 Aug 2022 20:18:12 +0000 (20:18 +0000)]
Update Croatian translation
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
Piotr Drąg [Sat, 27 Aug 2022 14:16:35 +0000 (16:16 +0200)]
Update Polish translation
Piotr Drąg [Sat, 27 Aug 2022 13:54:10 +0000 (15:54 +0200)]
Update POTFILES.in and POTFILES.skip
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
Yuri Chornoivan [Sat, 27 Aug 2022 09:56:43 +0000 (09:56 +0000)]
Update Ukrainian translation
Danial Behzadi [Sat, 27 Aug 2022 05:32:31 +0000 (05:32 +0000)]
Update Persian translation
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
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.