Matthias Clasen
ed5b42071c
Add a simple python example
...
This shows how to do custom drawing in a widget,
implemented in python. The example sets up the
environment for running from the toplevel dir,
assuming that the build dir is called 'build'.
2021-07-02 21:31:32 -04:00
Matthias Clasen
a90f721b74
Merge branch 'wip/baedert/wat' into 'master'
...
gtkffmediafile: Fix deprecated API usage
See merge request GNOME/gtk!3716
2021-07-02 17:00:41 +00:00
Timm Bäder
106417ada7
gtkffmediafile: Fix deprecated API usage
2021-07-02 18:41:55 +02:00
Matthias Clasen
3e63e683a9
Merge branch 'text-undo-test' into 'master'
...
Add another text history test
See merge request GNOME/gtk!3713
2021-07-01 22:25:18 +00:00
Matthias Clasen
e415f25c8f
Add another text history test
...
Add a tests that checks we group undo actions as expected
when the user is typing.
2021-07-01 18:08:05 -04:00
Matthias Clasen
e596e1fa7d
Merge branch 'wip/chergert/fix-texthistory-grouping' into 'master'
...
texthistory: hoist single actions from group
Closes gnome-text-editor#97
See merge request GNOME/gtk!3711
2021-07-01 14:17:25 +00:00
Christian Hergert
d8ab2e6d03
texthistory: hoist single actions from group
...
In many cases across GtkTextBuffer, we end up with operations performed
inside of a begin/end user action. Those can be coalesced into a single
sub-action within the group, and hoisted out of the group. Doing so
increases the chances that we chain similar actions together for words.
Additionally, this fixes an issue introduced in
6179886b14
for #3977 where GNOME Text Editor
started to group all possible actions into a single group.
Fixes GNOME/gnome-text-editor#97
2021-06-30 16:40:54 -07:00
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
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