Matthias Clasen
4e27de7df9
cssshadowvalue: Drop the underscore
...
Rename _gtk_css_shadow_value_parse to drop the underscore.
It was the only underscore-prefixed function in this file.
2021-02-06 16:08:19 -05:00
Marek Černocký
2712f536c2
Updated Czech translation
2021-02-06 09:44:09 +01:00
Matthias Clasen
a1f7073ff5
Add tests for the css filter property
...
Test that we can parse filters.
2021-02-05 21:37:47 -05:00
Matthias Clasen
9770872d12
css: Implement the drop-shadow filter
...
We have all the pieces, so this is surprisingly easy.
2021-02-05 21:37:14 -05:00
Matthias Clasen
de24b4f91b
cssshadowvalue: Add a parsing function
...
Add a variant of the parse function that parses
just a single (non-box) shadow, as required for
the drop-shadow filter.
2021-02-05 21:36:22 -05:00
Matthias Clasen
650fd9c291
Merge branch 'module-ext' into 'master'
...
meson: use correct module file extension on macOS
Closes #3645
See merge request GNOME/gtk!3162
2021-02-06 01:15:09 +00:00
David Lechner
b509809f34
meson: use correct module file extension on macOS
...
GModule requires the .so file extension on macOS for historic reasons.
However Meson defaults to .dylib for modules, so we need to override
it to get the correct extension.
Fixes #3645 .
2021-02-05 16:54:28 -06:00
Marek Kasik
a93ab37ea9
printing: Show all Avahi advertised printers
...
This commit unsubscribes CUPS backend from a DBus
signal in idle when listening for new items on Avahi.
Since GDBus emits gathered signals in idle while
checking whether the signal has been unsubscribed
it could happen that a signal was not processed
because it was removed from hash table of
subscribed signals.
This caused the situation where printers advertised
on Avahi were not listed in CUPS backend sometimes.
We need those signals since this happens when switching
from a general subscription which listens to signals
for all Avahi services to a specific one which listens
to just _ipp._tcp and _ipps._tcp (chicken and egg problem).
2021-02-05 18:35:56 +01:00
Marek Kasik
5d7364960a
printing: Create temporary queues for Avahi printers
...
This change extends set of Avahi advertised printers which
works with Gtk's CUPS print backend.
It creates a temporary queue (local printer) for each
Avahi printer in CUPS instead of accessing them directly
(via CUPS library).
This makes some printers work which did not work before and
also gives users more options to change in the print dialog.
This also changes naming of printers to be in accordance with CUPS.
It uses '_' instead of '-' and has hostname appended for CUPS remote
printers.
2021-02-05 18:35:56 +01:00
Matthias Clasen
60ff231fac
Merge branch 'matthiasc/for-master' into 'master'
...
iconbrowser: Make image dnd work again
Closes #3648
See merge request GNOME/gtk!3159
2021-02-05 12:48:10 +00:00
Emmanuele Bassi
958005317b
Merge branch 'master' into 'master'
...
Improve the docs of GtkWidget and GtkGrid
See merge request GNOME/gtk!2946
2021-02-05 12:14:26 +00:00
Matthias Clasen
15c36aaa1e
iconbrowser: Make image dnd work again
...
We need to drag a texture, not a paintable.
Fixes : #3648
2021-02-04 20:47:19 -05:00
Matthias Clasen
482b73c376
Merge branch 'matthiasc/for-master' into 'master'
...
docs: Rewrite the long description for GtkDialog
Closes #3646
See merge request GNOME/gtk!3156
2021-02-05 00:10:47 +00:00
Matthias Clasen
4a8bf6e13d
Merge branch 'doc-typo' into 'master'
...
gtkshow: Fix doc typo
See merge request GNOME/gtk!3158
2021-02-05 00:07:18 +00:00
Maximiliano Sandoval R
3e2e6633b0
gtkshow: Fix doc typo
2021-02-04 21:02:22 +01:00
Matthias Clasen
4724f9907c
docs: Rewrite the long description for GtkDialog
...
As was pointed out in #3646 , some of the content here
was a bit outdated.
Fixes : #3646
2021-02-04 13:05:28 -05:00
Matthias Clasen
26e84a7b8c
Merge branch 'matthiasc/for-master' into 'master'
...
More work on css transition tests
See merge request GNOME/gtk!3154
2021-02-04 13:28:59 +00:00
Matthias Clasen
d5838f14f9
Drop the installed test for now
...
It fails in ci, and I have no idea why.
2021-02-04 07:26:10 -05:00
Matthias Clasen
5c532104e4
Merge branch 'pvs-fixes' into 'master'
...
Pvs fixes
See merge request GNOME/gtk!3155
2021-02-04 12:20:24 +00:00
Matthias Clasen
2f42e1fb89
treemodelfilter: Drop unreachable code
...
We never get here. The compiler says so.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:40:14 -05:00
Matthias Clasen
b5200bd076
css: Drop a bit of unreachable code
...
We never get here. The compiler says so.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:39:34 -05:00
Matthias Clasen
aa5bd38137
a11y: Avoid out-of-bounds access
...
Don't use the index before we've checked its good.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:34:05 -05:00
Matthias Clasen
0eba833595
gdk: Remove a redundant check
...
We already know desktop_notification_id is not NULL.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:29:51 -05:00
Matthias Clasen
1e0ea21297
messagedialog: Don't initialize twice
...
We don't need to set these fields more than once.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:25:36 -05:00
Matthias Clasen
e91e75173d
composetable: Remove a redundant check
...
We already know seq_index is not NULL here.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:22:52 -05:00
Matthias Clasen
927fdb9a83
x11: A case of argument order confusion
...
translate_keysym was expecting its arguments the
other way around.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:20:26 -05:00
Matthias Clasen
041f410838
textbtree: Avoid line vs char count confusion
...
The post_insert_fixup helper function was confused about
its argument order.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:17:55 -05:00
Matthias Clasen
c71c8919fe
listbase: Don't specify the same thing twice
...
We only need to set EXPLICIT_NOTIFY once.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:13:53 -05:00
Matthias Clasen
3f28399f7d
css: Fix border value parsing
...
This function was not resetting computed as it meant
to because the last loop was never executed.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:12:51 -05:00
Matthias Clasen
3c15fa96bc
vulkan: Fix image uploading by regions
...
This code did not make sense; it was incrementing
the wrong variable.
Pointed out in https://www.viva64.com/en/b/0793/
2021-02-04 00:12:44 -05:00
Matthias Clasen
0a0a059397
docs: Mention css drop-shadow filter
...
We don't support this filter, currently.
2021-02-03 22:10:13 -05:00
Matthias Clasen
18e83fe16d
Add more css transition tests
2021-02-03 22:10:13 -05:00
Matthias Clasen
90d7ed5dd1
Rename test to transition
...
Thats what it is about, so name it clearly.
Add missing installed tests too.
2021-02-03 22:10:13 -05:00
Matthias Clasen
3c6e7569ff
Add more css transition tests
...
Test font size transitions.
2021-02-03 22:10:13 -05:00
Matthias Clasen
4e2ec2d68d
testsuite: Pass GDK_DEBUG=default-settings to css tests
...
Otherwise, settings might creep in and change css defaults.
2021-02-03 22:10:13 -05:00
Matthias Clasen
1af72eac21
cssvalue: Cosmetic change
...
Don't return FALSE from pointer-returning functions.
2021-02-03 22:10:13 -05:00
Matthias Clasen
640273a0e2
Improve the css value tests
...
The test code had some bugs. Fix those, and
print out useful information when tests fail.
2021-02-03 22:10:13 -05:00
Matthias Clasen
a14a0c6315
css: Fix shadow value equal
...
This function was not doing the right thing.
Once we are doing the right thing and not compare
shadows as unequal, some reftests that inhibit
snapshots for a few frames now hang forever, since
we are no more redrawing unnecessarily. Fix that
with an explicit queue_draw.
2021-02-03 22:10:13 -05:00
Matthias Clasen
38481680e1
Merge branch 'wip/jimmac/colored-list-image-buttons' into 'master'
...
Adwaita: allow suggested and destructive action buttons in lists
Closes #3643
See merge request GNOME/gtk!3153
2021-02-04 01:38:47 +00:00
Matthias Clasen
12a540c284
Merge branch 'ebassi/for-master' into 'master'
...
Graphene is a dependency of Gsk, not Gdk
See merge request GNOME/gtk!3149
2021-02-04 01:38:09 +00:00
Jakub Steiner
289bf078bf
Adwaita: allow suggested and destructive action buttons in lists
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3643
2021-02-03 23:15:30 +01:00
Elias Projahn
a7ae94c06e
listbox: Fix handling of non-focusable rows
...
This commit modifies the gtk_list_box_row_grab_focus() implementation to
correctly return FALSE in case the row couldn't be focused. This behavior will
also be honored by gtk_list_box_row_focus() to properly handle focus in that
case. To achieve that, the method has been restructured slightly.
Closes #3633
2021-02-03 21:22:55 +01:00
Matthias Clasen
58ab9ddc40
Merge branch 'x11-dnd-fix' into 'master'
...
x11: Handle X-specific targets in drops
Closes #3642
See merge request GNOME/gtk!3151
2021-02-03 20:11:33 +00:00
Matthias Clasen
c78036fc51
x11: Handle X-specific targets in drops
...
This code is very similar to the handling for these
targets in the clipboard case.
Fixes : #3642
2021-02-03 14:17:04 -05:00
Matthias Clasen
120f2768e6
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
See merge request GNOME/gtk!3150
2021-02-03 15:17:34 +00:00
Emmanuele Bassi
592b33cb48
Graphene is a dependency of Gsk, not Gdk
...
So let's put it in the right place when building the introspection data.
2021-02-03 14:05:27 +00:00
Matthias Clasen
7a9bc1f1d8
Link the data url tests statically
...
Thats the cleaner way to test internal apis.
2021-02-03 09:02:06 -05:00
Matthias Clasen
9cc6f3ee29
Add tests for css value transitions
...
Just a few cases for now, enough to test a recently
fixed regression with shadow transitions.
2021-02-03 08:56:57 -05:00
Chun-wei Fan
9efaa0b51d
Merge branch 'uac.meson.master' into 'master'
...
gtk4-update-icon-cache: Avoid UAC on 32-bit Windows
Closes #3632
See merge request GNOME/gtk!3141
2021-02-03 02:16:58 +00:00
Chun-wei Fan
f0967fa5e4
gtk4-update-icon-cache: Avoid UAC on 32-bit Windows
...
As the program executable name has 'update' in its filename,
gtk4-update-icon-cache.exe is considered to be an installer program on 32-bit
Windows [1], which will cause the program to fail to run unless it is running
with elevated privileges (i.e. UAC).
Avoid this situation by embedding a manifest file into the final executable
that tells Windows that this is not a program that requires elevation.
Fixes issue #3632 .
[1]: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc709628(v=ws.10)?redirectedfrom=MSDN ,
under section "Installer Detection Technology"
2021-02-03 02:16:58 +00:00