Commit Graph

72615 Commits

Author SHA1 Message Date
Matthias Clasen
09a0151233 Remove an assertion that we hit
It appears that we mess up accounting for blinking
cursors sometimes, and can hit blink_cb when there
is a nonempty selection.

Instead of asserting, warn and stop blinking.

Related: #4767
2022-05-27 07:06:23 -04:00
Christian Kirbach
3523b02a35 Update German translation 2022-05-26 20:16:33 +00:00
Manuel Zabelt
f936d7a883 Update docs/reference/gdk/gdk4-x11.toml.in 2022-05-26 08:25:13 -04:00
Manuel Zabelt
804caae32a GDK is LGPL-2.1-or-later not GPL-2.1-or-later, right? 2022-05-26 08:25:04 -04:00
Christian Hergert
bc09956d79 build: fix sysprof default options
Sysprof just recently cleaned up it's meson_options.txt and this makes
the tracking of the master branch match the new values.
2022-05-26 08:24:52 -04:00
Benjamin Otte
7104861614 Merge branch 'cherry-pick-21349009' into 'gtk-4-6'
x11: Always update shadow size

See merge request GNOME/gtk!4760
2022-05-26 12:17:50 +00:00
Benjamin Otte
22288d9854 x11: Always update shadow size
Not updating shadow size unconditionally would lead to shadow size not
being set on map, which would lead mutter to think that we are a Window
without extents and then become confused when we suddenly set some.

Make sure that doesn't happen by always having shadows set on map, just
like GTK3.

Fixes #4136


(cherry picked from commit 213490099b)
2022-05-26 11:19:04 +00:00
Christian Kirbach
7703aa5cd3 Update German translation 2022-05-22 10:41:16 +00:00
Rafael Fontenelle
17896f9841 Update Brazilian Portuguese translation 2022-05-17 07:54:22 +00:00
Aleksandr Melman
a67f82975e Update Russian translation 2022-05-15 14:18:48 +00:00
Piotr Drąg
9bc9116d24 Update Polish translation 2022-05-15 13:48:01 +02:00
Emin Tufan Çetin
1ff47f246b Update Turkish translation 2022-05-15 11:04:01 +00:00
Danial Behzadi
2b1c09dd42 Update Persian translation 2022-05-15 06:30:26 +00:00
Hugo Carvalho
4559bbbb9a Update Portuguese translation 2022-05-14 17:18:42 +00:00
Yuri Chornoivan
700c30d465 Update Ukrainian translation 2022-05-14 12:19:15 +00:00
Anders Jonsson
2d8a8e3575 Update Swedish translation 2022-05-14 10:03:33 +00:00
Matthias Clasen
9ea6bcb7b3 Merge branch 'cherry-pick-4f2b1b3c' into 'gtk-4-6'
egl: Fix invalid format string

See merge request GNOME/gtk!4727
2022-05-14 00:41:32 +00:00
Loïc Minier
394e0ab3be egl: Fix invalid format string
(cherry picked from commit 4f2b1b3cfc)
2022-05-13 21:05:58 +00:00
Luca Bacci
fc533c6598 Merge branch 'backport-mr-4723-to-gtk-4-6' into 'gtk-4-6'
GtkFileChooserWidget: Propagate keys from external entry to fcwidget at the BUBBLE phase

See merge request GNOME/gtk!4726
2022-05-13 20:35:49 +00:00
Luca Bacci
40709245ad GtkFileChooserWidget: Propagate keys from external entry to fcwidget at the BUBBLE phase
Now that we use event controllers we can forward keybindings from the
external entry to the filechooserwidget at the bubble phase.

Fixes #4905

References:
 * commit 1fb075dbca
 * commit 686116ba61
2022-05-13 21:47:34 +02:00
Matthias Clasen
1e6bad6c4f 4.6.4 2022-05-13 13:58:42 -04:00
Christian Hergert
6d95ac9299 actionmuxer: check for observer before unregistering
This can happen if the group can be resolved even when doing the initial
registration of an action as observer will not yet be in the GSList of
watchers (and therefore has no weak references).

Fixes a warning like the following:

 g_object_weak_unref: couldn't find weak ref
2022-05-11 21:54:33 -04:00
Christian Hergert
ce003f4eec actionmuxer: set handler ids initially to zero
These were getting created with possible non-zero values and then inserted
into a hashtable where the readers may not know the state of the group.

Ensure those values are set to zero until we assign them below.
2022-05-11 21:54:28 -04:00
Christian Hergert
f737131d27 gdk/wayland: freeze popups when hidden
Previously, there was an issue with glitching after showing/hiding a
popover that was not also destroyed. This was due to the popover having
an update_freeze_count of zero after hiding the surface.

That resulted in it's toplevel continuously dropping frames such as during
high-frame-rate scrolling in textviews. This problem is much more visible
on high-frame-rate displays such as 120hz/144hz.

With this commit, we freeze the frame clock of the popup until it is
mapped again.
2022-05-11 16:32:17 -04:00
Matthias Clasen
f54c153775 printdialog: Handle nonexisting files better
When a non-existing file is selected in the file chooser
for print-to-file, we weren't updating the button label
to show the new filename. Fix that.

Also, use newer file chooser api.
2022-05-11 16:32:17 -04:00
Matthias Clasen
f2436eaf7b gsk: Check for half float support
The GL renderer currently relies on half float support
in vertex buffers, so check that we have it.

Related: #4894
2022-05-11 16:32:17 -04:00
Matthias Clasen
2f9387630f Merge branch 'wip/carlosg/ignore-null-preedit-4.6' into 'gtk-4-6'
imcontextwayland: Ignore preedit updates from NULL to NULL

See merge request GNOME/gtk!4711
2022-05-09 19:57:44 +00:00
Carlos Garnacho
c1895ad823 imcontextwayland: Ignore preedit updates from NULL to NULL
If we get consecutive preedit string updates that announce a NULL
string, we still do end up issuing ::preedit-changed with those.
Ignore changes from NULL to NULL, it is the other combinations which
must issue this signal.

(cherry-picked from commit d6fe6f495a)
2022-05-09 17:41:08 +02:00
Pawan Chitrakar
f60e5950dc Update Nepali translation 2022-05-09 10:44:41 +00:00
Pawan Chitrakar
5ae37c6d99 Update Nepali translation 2022-05-08 08:44:53 +00:00
Matthias Clasen
d91c612eab listitemwidget: Avoid some unnecessary work
Only update widget and accessible state if the
selected property actually changed.
2022-05-07 10:31:37 -04:00
Ivan Molodetskikh
3894f04d0e list-item: Use notify_by_pspec instead of by name
This is a hot path when scrolling a ColumnView, and
g_param_spec_pool_lookup () was taking a measurable part in this hot
path. Instead, notify using pspecs to avoid the name lookup.

Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/3334
2022-05-07 10:31:22 -04:00
Ivan Molodetskikh
a39d55e5b0 listitemfactory: Track notify manually instead of freeze/thaw
freeze/thaw_notify () showed up on the perf trace for rapid ColumnView
scrolling. Track the three properties manually to make it a little
faster.

Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/3334
2022-05-07 10:31:15 -04:00
Benjamin Otte
fc5966a347 Don't invalidate parent if it didn't change
This looks like a leftover excess invalidation from when the surrounding
code was refactored to not just be called on parent changes but also
when repositioning inside the same parent in commit
507016cafc

Ivan Molodetskikh found this problem in
https://gitlab.gnome.org/GNOME/gtk/-/issues/3334#note_1445873 which
contains a longer analysis of this problem and the performance
reductions it causes.

Related: #3334
2022-05-07 10:31:00 -04:00
Matthias Clasen
55a4b4a174 gdk: Check OES_vertex_half_float GLES extension
This will be checked in the GL renderer.
2022-05-07 10:30:38 -04:00
Luca Bacci
045446c3da Merge branch 'backport-mr-4678-gtk-4-6' into 'gtk-4-6'
GtkFileChooserWidget: fixes for NULL vs empty GListModel

See merge request GNOME/gtk!4684
2022-05-03 08:52:02 +00:00
Luca Bacci
f0120700dc GtkFileChooserWidget: return empty GListModel in get_files () instead of NULL 2022-05-03 12:38:22 +02:00
Luca Bacci
6b740c86f9 GtkFileChooserWidget: check for empty instead of NULL GListModel
While porting GtkFileChooserWidget from GList to GListModel we did not
change some checks for NULL to checks for empty list.

Fixes #4851, #4858
2022-05-03 12:38:03 +02:00
Emmanuele Bassi
fb6de419f6 Merge branch 'wip/sophie-h/cherry-pick-filechooser' into 'gtk-4-6'
filechooser: cherry-pick small fix for select folder mode

See merge request GNOME/gtk!4676
2022-04-29 18:33:55 +00:00
Sophie Herold
1e561035e2 filechooser: Small fix for select folder mode
When changing folders, we were making the select
button insensitive when there is no folder selected.
However, the select button should be usable to
select the current folder.

Fixes #4020
2022-04-29 20:11:44 +02:00
Yosef Or Boczko
0a23c4678f Update Hebrew translation 2022-04-27 14:19:20 +00:00
Yaron Shahrabani
edc21ef202 Update Hebrew translation 2022-04-27 12:00:13 +00:00
Benjamin Otte
2441409b34 Merge branch 'cherry-pick-515b1f52' into 'gtk-4-6'
boxlayout: Do not infloop

See merge request GNOME/gtk!4670
2022-04-26 23:51:10 +00:00
Benjamin Otte
ae01669737 boxlayout: Do not infloop
if the loop for determining max width grows too big, print an error and
abort assuming that a satisfactory value was reached.

This will cause wrong layout and might cause widgets to overlap, but it
will not infloop.

It actually works around and doesn't really fix the primary cause of the
following bugs, but good enough to close them:

Fixes: #4252
Fixes: #4517


(cherry picked from commit 515b1f5292)
2022-04-26 21:11:32 +00:00
Matthias Clasen
21103ad811 4.6.3 2022-04-21 20:58:13 -04:00
Matthias Clasen
6e5573f5bb theme: Fix vertical spin button selection
The selection should be black-on-blue as it is
everywhere else now. This was just a leftover.

Fixes: #4788
2022-04-21 19:28:14 -04:00
Emmanuele Bassi
e17d51df66 Quench the anger of GCC
Direct access of the fields of the union trips compiler warnings with
GCC 12, such as:

  ../gtk/gtkimagedefinition.c:135:13: error: array subscript
  ‘GtkImageDefinition {aka union _GtkImageDefinition}[0]’ is partly
  outside array bounds of ‘GtkImageDefinitionEmpty[1]’ {aka
  ‘struct _GtkImageDefinitionEmpty[1]’} [-Werror=array-bounds]
2022-04-21 19:27:48 -04:00
Matthias Clasen
01f63c87b2 Fix file filter buildable support
File filters creates from ui files had some
extraneous gunk in them. Fix that. Test included.

Fixes: #4787
2022-04-21 19:27:37 -04:00
Marcel Tiede
e449bd8459 docs: Fix typo in description of GtkExpression 2022-04-21 19:27:26 -04:00
Alexander Mikhaylenko
edb69f0bb3 scrolledwindow: Pick up gtk-overlay-scrolling changes on the fly 2022-04-21 19:26:25 -04:00