Benjamin Otte
e2d321a16a
searchengine: Rename private headers
...
The code uses G_TYPE_POINTER and I got all sorts of scared.
2021-08-29 06:52:28 +02:00
Benjamin Otte
7366f5099a
filesystemmodel: Don't use G_TYPE_POINTER
...
It's a GError, use G_TYPE_ERROR.
2021-08-29 06:52:28 +02:00
Benjamin Otte
4fbef5f466
placessidebar: Don't use G_TYPE_POINTER
...
We have a type for lists of GFiles. We invented it for DND.
Keep the annotation info, so bindings don't have to know this.
2021-08-29 06:52:28 +02:00
Benjamin Otte
2e48ff3362
pathbar: Use correct GType in signal
2021-08-29 06:52:28 +02:00
Benjamin Otte
7cdbdb663c
gtk-demo: Add a symbolic paintable demo
...
Don't click the button!
2021-08-29 04:29:53 +02:00
Benjamin Otte
1b390d3857
gtk-demo: Explicitly pass nuclear icon colors
2021-08-29 04:29:53 +02:00
Benjamin Otte
2808f9c75b
gtk: Port icontheme to GtkSymbolicPaintable
2021-08-29 04:29:53 +02:00
Benjamin Otte
49d109c29e
gtk: Add the GtkSymbolicPaintable interface
2021-08-29 04:29:53 +02:00
Benjamin Otte
36dd959bf9
build: Check that introspection is enabled for docs build
2021-08-29 04:29:53 +02:00
Benjamin Otte
2f9a67b8a1
docs: Fix vfunc references
...
vfunc references should just use the object name, not the
class/interface/iface name.
2021-08-29 04:29:02 +02:00
Matthias Clasen
6d5d9ea073
Merge branch 'text-selection-missing' into 'master'
...
ngl: Avoid a coordinate overflow
Closes #4214
See merge request GNOME/gtk!3897
2021-08-28 21:21:02 +00:00
Matthias Clasen
1cfd340cae
ngl: Avoid a coordinate overflow
...
This was showing up as big text selections going
missing sporadically.
Fixes : #4214
2021-08-28 15:42:30 -04:00
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