Emmanuele Bassi
fd568e63c2
Properly document GtkAccessible:accessible-role
...
Use a gtk-doc stanza, instead of the GParamSpec strings.
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
797b3bd1b1
a11y: Do not notify of empty state changes
...
If the ATContext state hasn't changed—for instance, if the accessible
attributes have been set to their default value, or have been set to the
same value—do not emit an accessible state change. State changes can be
arbitrarily expensive, so we want to ensure that they are meaningful.
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
32a1cd13c8
a11y: Notify callers when an attributes set changes
...
We can use that information inside the ATContext.
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
1338dcddcb
a11y: GtkATContext.update_state() was renamed to update()
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
911a71c705
a11y: Allow bulk attribute update with the GValue API
...
Like we do for the varargs API.
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
701a0dabd0
a11y: Different value types cannot be equal
...
Bail out early, instead of going deep into the GtkAccessibleValue type
equal() implementation, where we expect both accessible values to have
the same type.
2020-08-25 16:36:08 +01:00
Matthias Clasen
9729a060f5
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
Closes #2979
See merge request GNOME/gtk!2474
2020-08-25 02:37:57 +00:00
Matthias Clasen
43ec96684a
text: Properly handle focus moving to a descendent
...
To discriminate between is-focus and contains-focus,
we need to use notify::is-focus. This makes sure
we don't get annoying warnings when the blink_cb
gets triggered on an unfocused entry.
Fixes : #2979
2020-08-24 18:31:35 -04:00
Matthias Clasen
66e0f8505e
emojichooser: Grab focus on map
...
This is the right thing to do, since we have a visible
entry and want text input to go there.
2020-08-24 18:31:08 -04:00
Matthias Clasen
22c914b7f5
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
See merge request GNOME/gtk!2473
2020-08-24 21:57:11 +00:00
Matthias Clasen
fd7d61887c
colorchooser: Fix the add_palette api
...
When adding a custom palette, we need to arrange
for the custom section to stay at the bottom.
Maybe there should be a way to turn off custom
colors, too.
2020-08-24 17:20:17 -04:00
Matthias Clasen
bdaf346128
gtk-demo: Make the color picker demo less boring
...
Maybe the first ever use of the add_palette api.
Surprise, it doesn't work!
2020-08-24 17:19:36 -04:00
Bruce Cowan
6af7704858
Update British English translation
2020-08-24 18:39:24 +00:00
Matthias Clasen
7ff326e700
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
Closes #3081
See merge request GNOME/gtk!2472
2020-08-24 16:43:39 +00:00
Matthias Clasen
c890d5991c
Add reftests for center layout
...
Add a test that checks behavior with invisible children,
and another one that ensures we go back to box-like
layout if min-size is forced.
2020-08-24 12:02:34 -04:00
Matthias Clasen
d27f9abbca
Merge branch 'unmapped-text' into 'master'
...
Unmapped text
See merge request GNOME/gtk!2466
2020-08-24 15:52:08 +00:00
Matthias Clasen
08f58122d1
Add a reftest for grid layouts
...
This tests that invisible children don't influence
the layout.
2020-08-24 11:38:00 -04:00
Matthias Clasen
17dcb10707
Add a reftest for box layouts
...
This tests that invisible children don't influence
the layout.
2020-08-24 11:34:30 -04:00
Matthias Clasen
2ac51ad827
centerlayout: Some spacing-related fixes
...
Try to arrange for border-spacing to actually be
respected in the final layout.
Fixes : #3081
2020-08-24 11:34:30 -04:00
Matthias Clasen
2e72b663b0
Merge branch 'wip/carlosg/start-spinbutton-start' into 'master'
...
gtkspinbutton: Group up/down button gestures with self
Closes #3085
See merge request GNOME/gtk!2471
2020-08-24 13:31:06 +00:00
Carlos Garnacho
e61f516a7c
gtkspinbutton: Group up/down button gestures with self
...
We are adding click gestures on the up/down buttons, but can't let
the GtkButton built-in ones prevent ours to run.
As the saying goes, if you can't beat them, join them. Group the
spinbutton and GtkButton gestures together, so it's irrelevant which
gets called first and ends up winning.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3085
2020-08-24 14:55:47 +02:00
Daniel Mustieles
f71c9a2146
Updated Spanish translation
2020-08-24 12:07:49 +02:00
Matthias Clasen
7428731e5b
Merge branch 'matthiasc/for-master' into 'master'
...
docs: Some updates to GtkWidgetClass docs
See merge request GNOME/gtk!2470
2020-08-24 02:28:00 +00:00
Matthias Clasen
6043ed8c89
docs: Some updates to GtkWidgetClass docs
...
Mention layout managers for vfuncs that are skipped
if you have one.
2020-08-23 20:40:15 -04:00
Goran Vidović
f394375719
Update Croatian translation
2020-08-23 22:02:30 +00:00
Goran Vidović
ae2a914f07
Update Croatian translation
2020-08-23 22:01:05 +00:00
Rafael Fontenelle
cd9bee83ef
Update Brazilian Portuguese translation
2020-08-23 21:52:38 +00:00
Matthias Clasen
ca0f136deb
text: Don't compute invisible char needlessly
...
There is no real reason to do expensive text layout
operations unless we need the invisible char because
the text's visibilty is FALSE.
2020-08-23 17:41:13 -04:00
Matthias Clasen
c0191c7225
text: Defer most recomputation until we're mapped
...
It doesn't make sense to update scroll positions or
im cursor locations while we're unmapped, and doing
so causes us to do expensive text measuring.
2020-08-23 17:41:13 -04:00
Matthias Clasen
d5114cc18d
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
See merge request GNOME/gtk!2464
2020-08-23 21:36:07 +00:00
Matthias Clasen
40d7092f4a
widget: Queue a draw when we need to
...
The code in gtk_widget_real_css_changed assumes that
queue_resize > queue_allocate > queue_draw, but the
second one is not really true. These days, we happily
keep reusing the same render node even when the child
allocation is changed.
So, if a css change has flags that tell us we should
redraw, we need to queue a draw, otherwise we might
end up reusing an outdated render node.
This fixes spinners staying visible when they stop
spinning, despite the theme setting their opacity
to 0.
2020-08-23 17:07:37 -04:00
Matthias Clasen
dc963dcbcb
Cosmetics
...
gtk_css_style_change_affects takes flags for a reason,
no need to call it multiple times.
2020-08-23 16:45:15 -04:00
Matthias Clasen
c4d350c260
build: Start using meson feature options
...
Use feature options for things that are optional features,
update the docs.
Visible changes here is that the 'print-backends' option
got renamed to 'print' to go better with 'media', and the
'tracker3' option got renamed to 'tracker'.
For options that have been changed into features, the
syntax now is -Dfeature=enabled or -Dfeature=disabled
or -Dfeature=auto.
2020-08-23 16:45:15 -04:00
Matthias Clasen
54e4bf8b75
Fix a leak in the font chooser widget
...
Contrary to what you may expect, pango_attr_font_desc_new()
is not transfer full, it makes a copy of the font description.
2020-08-23 16:45:15 -04:00
Matthias Clasen
0540337531
Merge branch 'fix_widget_factory_ui' into 'master'
...
fix position of radiobutton1
See merge request GNOME/gtk!2463
2020-08-23 16:26:35 +00:00
Ahmed Eldemery
86acb13057
fix position of radiobutton1
2020-08-23 17:39:17 +02:00
Boyuan Yang
11314cf0b4
Update Chinese (China) translation
2020-08-23 15:04:45 +00:00
Goran Vidović
37ce545d72
Update Croatian translation
2020-08-23 11:14:23 +00:00
Emin Tufan Çetin
85764ce505
Update Turkish translation
2020-08-22 21:26:01 +00:00
Boyuan Yang
ff5cdbaf03
Update Chinese (China) translation
2020-08-22 20:18:25 +00:00
Yuri Chornoivan
420c4e1f16
Update Ukrainian translation
2020-08-22 16:30:41 +00:00
Jakub Steiner
a498aca3ab
Adwaita: error labels insensitive & backdrop states
...
- address colored labels for the two states
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063#note_891618
2020-08-22 10:14:11 -04:00
Matthias Clasen
4eacfdba60
Merge branch 'remove-unnecessary-frames' into 'master'
...
Remove unnecessary frames from some widgets
See merge request GNOME/gtk!2462
2020-08-22 14:09:35 +00:00
Andika Triwidada
4fefea7471
Update Indonesian translation
2020-08-22 13:19:15 +00:00
Piotr Drąg
bc132dae54
Update Polish translation
2020-08-22 15:17:37 +02:00
Piotr Drąg
5822cdbc95
Update POTFILES.in and POTFILES.skip
2020-08-22 13:48:19 +02:00
nana-4
6a7a0f0b8a
viewport: Remove unused frame
...
We've always removed this with Adwaita.
2020-08-22 09:30:28 +09:00
nana-4
1948f8a07f
placessidebar: Remove unused frame
...
We've always removed this with Adwaita.
2020-08-22 09:23:52 +09:00
nana-4
8eb807d7f4
entrycompletion: Remove unnecessary frame
...
The popover already has a border as a frame. Don't create double
borders.
2020-08-22 09:18:31 +09:00
Matthias Clasen
125ed52ccb
Merge branch 'new-sysprof' into 'master'
...
Port profiling to sysprof-collector api
See merge request GNOME/gtk!2457
2020-08-21 23:58:09 +00:00