Matthias Clasen
369ccfc34f
Merge branch 'matthiasc/for-master' into 'master'
...
Draw negatively sloped carets correctly
See merge request GNOME/gtk!3892
2021-08-28 17:18:21 +00:00
Matthias Clasen
e556513de6
Merge branch 'menu-accel' into 'master'
...
window: Prefer menu bars when handling F10
See merge request GNOME/gtk!3893
2021-08-28 17:17:43 +00:00
Matthias Clasen
79dc1a2a4d
Merge branch 'randr' into 'master'
...
x11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events
See merge request GNOME/gtk!3894
2021-08-28 17:17:00 +00:00
Ian Douglas Scott
9e5a501c73
x11: Fix handling of RRScreenChangeNotify
/RRNotify
events
...
It seems these are sent with `xwindow` set to the root window, so this
was failing to find a surface and get the screen from that.
I'm not sure if there's a reason not to get the screen this way
elsewhere in the function, but it seems this should be correct.
This fixes the behavior of `gdk_x11_display_get_monitors()`, which
wasn't correctly changing when monitors were added or removed. For
instance, this python code was always showing the same number of
monitors when one was turned off and on, but updates correctly with this
change applied:
```python
import gi
gi.require_version("GLib", "2.0")
gi.require_version("Gdk", "4.0")
gi.require_version("Gtk", "4.0")
from gi.repository import GLib, Gdk, Gtk
def f():
print(len(Gdk.Display.get_default().get_monitors()))
return True
GLib.timeout_add_seconds(1, f)
GLib.MainLoop().run()
```
2021-08-27 18:07:39 -07:00
Enrico Nicoletto
2db8d7f6a2
Update Brazilian Portuguese translation
...
(cherry picked from commit cd9735eab1
)
2021-08-28 01:00:39 +00:00
Enrico Nicoletto
94c3f4d4fc
Update Brazilian Portuguese translation
...
(cherry picked from commit 8f5a1471cc
)
2021-08-28 00:44:38 +00:00
Florian Müllner
3fa26861cd
window: Prefer menu bars when handling F10
...
Focusing the first widget in the titlebar is a good fallback,
but a "real" menubar or :primary menu button should take
precedence.
2021-08-28 00:19:23 +02:00
Matthias Clasen
ef2b0ccd6c
Draw negatively sloped carets correctly
...
The code for handling negatively sloped caret
positions was not tested, and naturally did
not work. Fix it.
2021-08-27 17:20:35 -04:00
Matthias Clasen
f1702d24e7
Merge branch 'css-line-decoration' into 'master'
...
textview: Apply line decoration from css
See merge request GNOME/gtk!3890
2021-08-27 01:37:57 +00:00
Matthias Clasen
3a50ff57d8
Clean up the code
...
Avoid compiler warnings, and make the code
a bit more compact.
2021-08-26 20:45:17 -04:00
Matthias Clasen
8ac2e8d495
textview: Apply font features from css
...
We were forgetting to propagate these values from
CSS to the default attributes. Share the code for
getting these values out of a GtkCssStyle.
2021-08-26 20:21:23 -04:00
Matthias Clasen
e56cf85fd1
textview: Apply text transform from css
...
We were forgetting to propagate these values from
CSS to the default attributes.
2021-08-26 18:53:30 -04:00
Matthias Clasen
1c6aef1862
textview: Apply line decoration from css
...
We were forgetting to propagate these values from
CSS to the default attributes.
2021-08-26 18:46:57 -04:00
Matthias Clasen
4653cbe56e
Merge branch 'css-letter-spacing' into 'master'
...
textview: Don't forget to collect css letterspacing
Closes #4207
See merge request GNOME/gtk!3889
2021-08-26 19:37:55 +00:00
Matthias Clasen
93148d302f
textview: Don't forget to collect css letterspacing
...
There are more properties missing, this is just
the start.
Fixes : #4207
2021-08-26 15:01:23 -04:00
Andika Triwidada
a443ba91ce
Update Indonesian translation
...
(cherry picked from commit 85ad1db8ef
)
2021-08-26 14:40:16 +00:00
Hugo Carvalho
d8daef2de7
Update Portuguese translation
...
(cherry picked from commit 6e467de751
)
2021-08-26 14:30:04 +00:00
Hugo Carvalho
845d43c77a
Update Portuguese translation
...
(cherry picked from commit ae5b6395ad
)
2021-08-26 14:12:59 +00:00
Andika Triwidada
f8dbcc472b
Update Indonesian translation
...
(cherry picked from commit dcc899b621
)
2021-08-26 13:39:00 +00:00
Marek Černocký
0f0f75f6b1
Updated Czech translation
2021-08-26 15:07:54 +02:00
Timm Bäder
4e2e2d84fc
Merge branch 'clang-fallthrough' into 'master'
...
build: fix implicit-fallthrough errors with clang
See merge request GNOME/gtk!3887
2021-08-26 11:15:28 +00:00
Jordi Mas
887885b6e0
Update Catalan translation
2021-08-26 13:10:32 +02:00
Matthias Clasen
a868a5c434
Merge branch 'matthiasc/for-master' into 'master'
...
More markup demos
See merge request GNOME/gtk!3888
2021-08-26 06:15:06 +00:00
Christoph Reiter
a0c147d246
build: fix implicit-fallthrough errors with clang
...
The clang build fails due to -Werror=implicit-fallthrough being
on by default and some fallthrough cases not being marked as such.
Use G_GNUC_FALLTHROUGH or duplicate the code in those cases.
2021-08-26 07:08:38 +02:00
Matthias Clasen
38040c96d6
More markup demos
...
Showing more of what Pango can do.
2021-08-25 19:38:59 -04:00
Matthias Clasen
989ecf69ad
Merge branch 'new-pango-attributes' into 'master'
...
Support new pango attributes
See merge request GNOME/gtk!3878
2021-08-25 20:11:45 +00:00
Matthias Clasen
9d26399143
Merge branch 'treeexpander-claim-gestures' into 'master'
...
GtkTreeExpander: claim expander-icon gestures
Closes #4199
See merge request GNOME/gtk!3886
2021-08-25 19:11:23 +00:00
Matthias Clasen
b9cad7cc54
textview: Implement new pango attributes
...
Implement the word and sentence attributes.
2021-08-25 14:57:13 -04:00
Matthias Clasen
357b97b5a6
Support new pango attributes
...
Support new Pango attributes for segmentation
in GtkBuilder.
2021-08-25 14:57:13 -04:00
Jan Lukas Gernert
318160d836
GtkTreeExpander: claim expander-icon gestures
...
Claim the pressed, released and canceled gestures
meant for the expander-icon of the TreeExpander.
This avoids selecting the row when expanding or collapsing it.
Closes #4199
2021-08-25 17:50:12 +02:00
Matthias Clasen
5e90d63373
Merge branch 'sloped-caret' into 'master'
...
Implement sloped caret drawing
See merge request GNOME/gtk!3880
2021-08-25 13:43:24 +00:00
Jordi Mas
0b7f1e488f
Update Catalan translation
2021-08-25 15:17:27 +02:00
Matthias Clasen
e281bbbb55
Merge branch 'treeexpander-indent-property' into 'master'
...
GtkTreeExpander: indent-without-expander property
Closes #4175
See merge request GNOME/gtk!3858
2021-08-25 11:48:59 +00:00
Matthias Clasen
892bacee52
Merge branch '4195-include-gdkprivate-h' into 'master'
...
gdkmacoseventsource: Include "gdk-private.h"
Closes #4195
See merge request GNOME/gtk!3882
2021-08-25 11:48:11 +00:00
Matthias Clasen
2f1db4b77c
Use pango_layout_get_caret_pos
...
This new api returns rectangles for sloped carets,
in contrast to pango_layout_get_cursor_pos, which
always returns a rectangle with a width of zero.
2021-08-25 06:53:53 -04:00
Matthias Clasen
f90e9b26f8
Implement sloped caret drawing
...
Prepare for Pango to return slope information for carets.
While we are at it, improve the shape of our carets a bit.
2021-08-25 06:53:53 -04:00
Matthias Clasen
ad71f454bd
Merge branch 'fix-gettext' into 'master'
...
Fix wrong gettext ITS target
See merge request GNOME/gtk!3881
2021-08-25 10:51:57 +00:00
Rafał Dzięgiel
c66bd791c4
Fix wrong gettext ITS target
...
The installed ITS rule filename is "gtk4builder.its". The .loc file
is wrongly pointing to old "gtkbuilder.its" which makes gettext fail
on systems without GTK3 installed.
2021-08-25 10:08:50 +02:00
Fran Dieguez
40bceef3ca
Update Galician translation
...
(cherry picked from commit 410ea1049b
)
2021-08-25 07:26:55 +00:00
Fran Dieguez
9d79f55dc9
Update Galician translation
...
(cherry picked from commit 09a5828ccf
)
2021-08-25 06:12:43 +00:00
Matthias Clasen
c5c1cf6d55
Merge branch 'wip/otte/for-master' into 'master'
...
wayland: Better error on eglGetDisplay() failure
See merge request GNOME/gtk!3879
2021-08-25 04:24:55 +00:00
Peter Bloomfield
9eb8aa9a32
gdkmacoseventsource: Include "gdk-private.h"
...
_gdk_macos_event_source_new() calls g_source_set_static_name(), which
for GLib versions before 2.69.1 is a macro defined in gdk-private.h.
Fixes #4195
modified: gdk/macos/gdkmacoseventsource.c
2021-08-24 16:55:52 -04:00
Benjamin Otte
95931a7e6c
wayland: Better error on eglGetDisplay() failure
...
Goals:
1. Provide as much information as possible in the error message, so
users can try to fix their system themselves.
2. Try to formulate the error message in a way that explains that this
is not something GTK can fix, but a lower layer problem.
Related: #4193
2021-08-24 19:55:22 +00:00
Yuri Chornoivan
d9daaed43f
Update Ukrainian translation
...
(cherry picked from commit 6377b23bd6
)
2021-08-24 17:29:02 +00:00
Matthias Clasen
b9c51e65c1
Merge branch 'wip/carlosg/gesture-state-in-entries' into 'master'
...
Claim clicks further at GtkEntry/GtkSearchEntry
See merge request GNOME/gtk!3873
2021-08-24 17:20:20 +00:00
Matthias Clasen
da5eb92f47
Merge branch 'matthiasc/for-master' into 'master'
...
Revert "imwayland: Tweak preedit text"
Closes #4123
See merge request GNOME/gtk!3877
2021-08-24 17:19:42 +00:00
Matthias Clasen
03ed585f6f
tests: Rewrite PangoAttribute introspection
...
We can use the new binding helpers to make this
a little less bothersome. That way, it will need
tweaks less often (only when new fundamental types
are introduced).
2021-08-24 12:53:48 -04:00
Matthias Clasen
51f953a1aa
Revert "imwayland: Tweak preedit text"
...
This reverts commit d84a028455
.
IBus uses the same character now.
Fixes : #4123
2021-08-24 12:53:48 -04:00
Emmanuele Bassi
93fb07d808
Merge branch 'expander-ref-leak' into 'master'
...
Release an extra reference on GtkExpander:child
See merge request GNOME/gtk!3876
2021-08-24 13:20:48 +00:00
Emmanuele Bassi
5e311d4d85
Release an extra reference on GtkExpander:child
...
The child of a GtkExpander is owned directly by the expander whenever
the "expanded" flag is unset.
We are adding an additional reference to the child of an expander when
expander is not expanded.
Additionally, if a GtkExpander is disposed while not expanded, we need
to explicitly release the reference on the child widget that we own.
This reference leak was masked in GTK3 by GtkContainer removing each
child from the parent container by recursively calling
gtk_widget_destroy().
2021-08-24 11:28:59 +01:00