Benjamin Otte
e9d3d3e3cf
icontheme: Fix binding annotation
2021-06-30 18:55:25 +00:00
Matthias Clasen
3a5983e387
Merge branch 'wayland-cursor-theme' into 'master'
...
wayland: Look for cursor themes in $HOME
Closes #4080
See merge request GNOME/gtk!3708
2021-06-29 22:17:49 +00:00
Matthias Clasen
4efb661ae6
wayland: Look for cursor themes in $HOME
...
We should look in the same places that libXcursor does,
so add $XDG_DATA_HOME/icons and $HOME/.icons to the list.
Fixes : #4080
2021-06-29 16:57:15 -04:00
Matthias Clasen
bcdb9c937c
Merge branch 'more-vbo-overflow' into 'master'
...
gsk: Use the right limit for batch size
See merge request GNOME/gtk!3707
2021-06-29 20:36:42 +00:00
Matthias Clasen
f45c0b9609
gsk: Another vbo_size overflow fix
...
We can overflow vbo_size not just by batching
too much, but also by producing humongous text
nodes. Split them up.
2021-06-29 15:22:40 -04:00
Matthias Clasen
9ea162034a
gsk: Use the right limit for batch size
...
We use 16 bits, so G_MAXINT16 is one bit short.
Just make it explicit as 0xffff.
2021-06-29 15:21:45 -04:00
Matthias Clasen
192e779db2
Merge branch 'hello-world-fixup' into 'master'
...
Update hello-world.c
See merge request GNOME/gtk!3706
2021-06-29 16:59:45 +00:00
Matthias Clasen
bda7557783
Update hello-world.c
...
Simplify the code a bit and make the window
match the existing screenshot.
2021-06-29 08:01:37 -04:00
Matthias Clasen
dc50c7539a
Merge branch 'avoid-batch-size-overflow' into 'master'
...
Revert "gsk: Respect max element vertices limitation"
See merge request GNOME/gtk!3704
2021-06-28 21:35:15 +00:00
Matthias Clasen
bf97dfd998
Merge branch 'wip/exalm/buttons' into 'master'
...
GtkMenuButton icon+arrow support + fixes
Closes #3501
See merge request GNOME/gtk!3694
2021-06-28 19:10:57 +00:00
Matthias Clasen
c7f4131402
Merge branch 'gtklistitemfactory-autocleanup' into 'master'
...
gtk: Define the GtkListItemFactory autocleanup func
See merge request GNOME/gtk!3703
2021-06-28 19:10:04 +00:00
Matthias Clasen
bd5e5beee0
gsk: Don't overflow vbo_count
...
We use 16 bits to store vbo_count, so we can't create
batches that have more than 65535 vertices. Pay attention
to that limit when merging batches.
2021-06-28 15:00:41 -04:00
Matthias Clasen
7a493f151d
Revert "gsk: Respect max element vertices limitation"
...
This reverts commit f58fc6b22e
.
2021-06-28 14:50:58 -04:00
Adrien Plazas
0ea73c384f
gtk: Define the GtkListItemFactory autocleanup func
2021-06-28 14:01:57 +02:00
Emmanuele Bassi
d8c416e8b2
Merge branch 'ebassi/issues-4076' into 'master'
...
docs: Use code blocks for inline XML
Closes #4076
See merge request GNOME/gtk!3702
2021-06-27 15:10:15 +00:00
Emmanuele Bassi
9bf3724d25
docs: Use code blocks for inline XML
...
Otherwise the markdown renderer will just ignore them.
Fixes : #4076
2021-06-27 15:25:18 +01:00
Hugo Carvalho
fd49d39184
Update Portuguese translation
...
(cherry picked from commit a9c68757b5
)
2021-06-27 09:45:19 +00:00
Xavier Claessens
0fd790eb8d
Meson: Only g-ir-scanner warnings fatal when buit with -Dwerror=true
...
Also fix deprecation warning that requires using fatal_warnings kwarg
from Meson 0.55.0.
Fixes : #4072 .
2021-06-25 11:38:11 -04:00
Xavier Claessens
b18e95d6b3
meson: Fix generate_gir() dependencies
...
There is no need to search for gir variables into subprojects, they are
part of dependencies objects, meson will find them there.
2021-06-25 10:08:36 -04:00
Alexander Mikhaylenko
47b5c68df4
menubutton: Don't hardcode label<->arrow spacing
...
This should come from the theme instead, as it does for icon<->arrow.
2021-06-24 23:13:01 +05:00
Alexander Mikhaylenko
ac3b246858
menubutton: Add a way to always show arrow with image buttons
...
Make sure the button still has the .image-button style class with an icon,
also add it to the initial state with only an arrow. Add a new
.arrow-button style class for the icon+arrow state so it's possible to
style it.
Remove spacing from the label+arrow variant to match, re-add it from the
stylesheet for both.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3501
2021-06-24 23:12:26 +05:00
Alexander Mikhaylenko
51a754547e
menubutton: Remove a random g_return_if_fail()
...
There's already one above.
2021-06-24 23:11:57 +05:00
Alexander Mikhaylenko
76df60db2b
menubutton: Reset label when setting icon name and vice versa
...
Match GtkButton.
2021-06-24 23:06:46 +05:00
Alexander Mikhaylenko
f3befe530b
button: Reset style classes when setting arbitrary children
...
Don't leave leftover .image-button or .text-button.
2021-06-24 23:06:46 +05:00
Matthias Clasen
59d4333e23
Merge branch 'wip/sadiq/reveal-controls-on-touch' into 'master'
...
video: Reveal controls on tap
See merge request GNOME/gtk!3648
2021-06-24 15:11:33 +00:00
Matthias Clasen
92177d9663
Merge branch 'wip/chergert/gdk-macos-gdkdrop' into 'master'
...
GdkDrop suport for macOS backend
See merge request GNOME/gtk!3683
2021-06-24 15:03:19 +00:00
Matthias Clasen
6a29b64850
Merge branch 'dnd-fixes' into 'master'
...
dnd: Add another assertion
See merge request GNOME/gtk!3689
2021-06-24 15:01:29 +00:00
Matthias Clasen
73cb60d053
Merge branch 'ebassi/filechooser-no-trash' into 'master'
...
Never show the Trash in the FileChooserWidget side bar
Closes #674
See merge request GNOME/gtk!3692
2021-06-24 14:59:43 +00:00
Matthias Clasen
47bd998e94
Merge branch 'checkbutton-release-outside' into 'master'
...
checkbutton: Match GtkButton behavior
Closes #4061
See merge request GNOME/gtk!3691
2021-06-24 14:58:42 +00:00
Matthias Clasen
e2cfa7bd11
Merge branch 'fix_tests_testdnd' into 'master'
...
make testdnd trashcan work again
See merge request GNOME/gtk!3700
2021-06-24 14:54:32 +00:00
Matthias Clasen
006633082d
Merge branch 'macos-input-method' into 'master'
...
macos: fix the position of curosr of input method for macos.
Closes #4063
See merge request GNOME/gtk!3699
2021-06-24 14:50:59 +00:00
Caolán McNamara
bbf7454fc9
make testdnd trashcan work again
...
so that dragging into the 'trashcan' is detected
2021-06-23 15:09:44 +01:00
Emmanuele Bassi
85cb5509c4
Merge branch 'gtklistitem-autocleanup' into 'master'
...
gtk: Define the GtkListItem autocleanup func
See merge request GNOME/gtk!3698
2021-06-23 13:09:28 +00:00
Emmanuele Bassi
0e29f52841
Merge branch 'migration_patch' into 'master'
...
Add section about `gtk_widget_set_app_paintable`
Closes #4007
See merge request GNOME/gtk!3641
2021-06-23 13:08:07 +00:00
Jaap aarts
02893e37d3
Add section about gtk_widget_set_app_paintable
2021-06-23 13:08:06 +00:00
Zhi
1dbb5188ba
macos: fix the position of curosr of input method for macos.
...
In the refactoring from GdkWindow to GdkSurface, GtkWidget no longer
corresponds to a GdkSurface. We have to calculate the relative position
from GtkWidget to the GdkSurface.
Closes #4063 .
2021-06-22 22:57:34 +08:00
Adrien Plazas
a4d35ace78
gtk: Define the GtkListItem autocleanup func
2021-06-22 09:43:16 +02:00
Carlos Garnacho
981a638b01
Merge branch 'fix-pointer-gestures-kde-plasma' into 'master'
...
gdk/wayland: Fix pointer-gestures version selection
See merge request GNOME/gtk!3693
2021-06-21 21:35:06 +00:00
Vlad Zahorodnii
3969d8b028
gdk/wayland: Fix pointer-gestures version selection
...
version == GDK_ZWP_POINTER_GESTURES_V1_VERSION will fail if the
compositor implements version 2 of pointer-gestures-v1.
2021-06-21 09:51:45 +03:00
Emmanuele Bassi
889709213e
Never show the Trash in the FileChooserWidget side bar
...
The Trash is a special location: files cannot be copied or moved, there,
and the file selection dialog is not able to restore files from the
Trash.
Fixes : #674
2021-06-20 15:44:22 +01:00
Emmanuele Bassi
333a92bcff
Revert "Never show the Trash in the FileChooserWidget side bar"
...
This reverts commit cd39e417e1
.
2021-06-20 15:41:43 +01:00
Emmanuele Bassi
cd39e417e1
Never show the Trash in the FileChooserWidget side bar
...
The Trash is a special location: files cannot be copied or moved, there,
and the file selection dialog is not able to restore files from the
Trash.
Fixes : #674
2021-06-20 15:39:41 +01:00
Matthias Clasen
1cebf406aa
docs: Fix a typo
2021-06-19 14:14:57 -07:00
Matthias Clasen
d7915fbca8
docs: Add a section about Drag-and-Drop
2021-06-19 14:14:57 -07:00
Matthias Clasen
9169315cc1
Merge branch 'wip/chergert/textview-access-to-contexts' into 'master'
...
textview: give application developers access to RTL and LTR context
See merge request GNOME/gtk!3690
2021-06-19 20:36:44 +00:00
Matthias Clasen
3b70cd3226
checkbutton: Match GtkButton behavior
...
When leaving the widget before releasing the button,
we should not activate the checkbutton, to match the
way GtkButton behaves.
Fixes : #4061
2021-06-19 13:30:31 -07:00
Christian Hergert
a6101f0181
textview: give application developers access to RTL and LTR context
...
This allows developers to modify the pango context that is used when
rendering text within the text view.
Such access can be useful to alter how rounding occurs with API such as
pango_context_set_round_glyph_positions() and is needed by GtkSourceView
for proper placement of glyphs within the overview map.
2021-06-19 12:28:18 -07:00
Matthias Clasen
92c6485adf
docs: Tweak wording
...
Instead of drag'n'drop, say drag-and-drop. That is easier
to read, and less unclear on the markdown syntax implications.
2021-06-19 08:03:47 -07:00
Matthias Clasen
4df9314039
wayland: Fix some dnd corner case
...
We must call gdk_drag_drop_done() when the drag ends,
successfully or not. Without this, we get an unwarranted
emission of ::cancel after a successful drop.
Since only the first call to gdk_drag_drop_done() is taking
effect, it is safe to call as a fallback, after emitting
::dnd-finished. If the application connects to that signal
and calls gdk_drag_drop_done() itself, its call will take
precedence.
This matches what the X11 implementation does.
2021-06-19 08:03:21 -07:00
Matthias Clasen
c8ad4d5deb
dnd: Add another assertion
...
Assert that gdk_drop_finish() is called after the
drop is performed.
2021-06-19 07:50:41 -07:00