Timm Bäder
9bb2ba239a
widget: Handle position in transformation matrix
...
Most unoptimized version so far.
2018-11-09 09:52:08 +01:00
Timm Bäder
5730d1d3ef
Add form entry test
2018-11-09 09:52:08 +01:00
Timm Bäder
96da9aae5e
widget: Don't pass a position to ->size_allocate
...
The values have been 0/0 for a long time now, so just drop the
GtkAllocation argument and replace it with width and height.
2018-11-09 09:52:06 +01:00
Timm Bäder
abc59007fa
popover: Get rid of a gtk_widget_get_allocation call
...
Use _compute_bounds instead.
2018-11-09 09:38:33 +01:00
Timm Bäder
419dee2982
tests: Add some transform test with CSS values
2018-11-09 09:38:33 +01:00
Timm Bäder
2f002bbfec
widget: Fix translate_coordinates for CSS values
...
As well as compute_bounds. In these cases, we need to consider the CSS
values (margin, border padding) specially.
2018-11-09 09:38:33 +01:00
Timm Bäder
e311d3e8af
inspect-button: Remove custom pick() implementation
...
This was added to work around the fact that pick() does not look at
insensitive widgets at all, but the replacement didn't properly work
either.
2018-11-09 09:37:36 +01:00
Timm Bäder
f36e6f6945
widget Add gtk_widget_get_transform
2018-11-09 09:37:36 +01:00
Timm Bäder
fad4e8fe6e
Add test for widget transforms
2018-11-09 09:37:36 +01:00
Timm Bäder
4462057ebd
Add picking/translation/compute_bounds unit tests
2018-11-09 09:37:36 +01:00
Timm Bäder
d59120e44f
widget: Consider widget transformations in translate_coordinatesf
2018-11-09 09:34:42 +01:00
Timm Bäder
b0bf689e3b
widget: Look at transform in compute_bounds
...
We now return an axis-aligned bounding box for the given widget, in the
coordinate space of the target widget.
2018-11-09 09:34:42 +01:00
Timm Bäder
3cf21c424c
widget: Make _translate_coordinatesf public
...
The "we should probably decide for only one of the 2 versions at some
point" comment is still true of course. But we need this version for
proper unit testing of picking and coordinate translation.
2018-11-09 09:34:42 +01:00
Timm Bäder
eec20d2f19
widget: Don't use compute_bounds in _real_contains
...
compute_bounds will look at the widget transformation and return an
axis-aligned rectangle containing the given widget.
2018-11-09 09:34:42 +01:00
Timm Bäder
8a1a4ddd3d
widget: Care about transformation in translate_coordinatesf
2018-11-09 09:34:42 +01:00
Timm Bäder
c0633b2d14
widget: Use translate_coordinates in pick()
...
In case converting the coordinate into the child coordinate space
consists of more than just a translation.
2018-11-09 09:34:42 +01:00
Timm Bäder
3704971b7d
widget: Just use floating-point translate_coordinates
...
in the integer version.
2018-11-09 09:34:42 +01:00
Timm Bäder
919c775d89
widget: Add gtk_widget_set_transform
...
This might not stay until the end but for now it's good enough to test
widget transforms.
2018-11-09 09:34:42 +01:00
Timm Bäder
522fab000f
widget: Push transform node when neccessary
2018-11-09 09:34:42 +01:00
Timm Bäder
fff08c0c83
widget: Add transform matrix
...
Unused for now.
2018-11-09 09:34:42 +01:00
Timm Bäder
928b51c936
widget: Make queue_compute_expand private
...
Calling this from outside gtk+ makes no sense anymore.
2018-11-09 09:34:42 +01:00
Timm Bäder
329e854a81
button: Remove some dead code
2018-11-09 09:34:42 +01:00
Timm Bäder
087ba3043a
colorswatch: Remove dead assignment
2018-11-09 09:34:42 +01:00
Adrien Plazas
f1e24ca30a
Adwaita: Propagate bg color to titlebar separator descendants
...
Gives the same background color to all separators descending from a
title bar than to its direct childrens.
This prevents separators which are in a titlebar but not direct children
from the widget with the titlebar style class from being almost
transparent and hence it prevent them from revealing the clear color of
the window's titlebar (black).
https://gitlab.gnome.org/GNOME/gtk/issues/1231
2018-11-09 08:49:38 +01:00
Jakub Steiner
1787f04097
Merge branch 'wip/jimmac/insensitive-progress' into 'master'
...
Adwaita: draw insensitive progressbars
See merge request GNOME/gtk!360
2018-11-09 07:27:49 +00:00
Jakub Steiner
671f69c6ca
Merge branch 'wip/jimmac/hig-colors-gtk4' into 'master'
...
Adwaita: use new HIG colors
See merge request GNOME/gtk!407
2018-11-09 07:25:05 +00:00
Jakub Steiner
7b51de6bbd
Adwaita: use new HIG colors
...
- blue selection color, success & destructive colors updates
- blueish tint for dark
Addresses issue #1443
2018-11-08 16:58:13 +01:00
Timm Bäder
45b909f2c5
testpopup: Fix GtkEventControllerMotion::motion callback signature
2018-11-08 05:48:14 +01:00
Timm Bäder
0b4ee06f8e
eventcontrollerlegact: Fix ::event docs
...
As discussed in !388 .
2018-11-08 05:48:14 +01:00
Timm Bäder
797739198f
icontheme: Stop exporting gtk_icon_info_new_for_file
2018-11-08 05:48:14 +01:00
Timm Bäder
0c017ff109
icontheme: Stop exporting gtk_icon_theme_color_symbolic_pixbuf
2018-11-08 05:48:14 +01:00
Timm Bäder
aad3686726
icontheme: Drop remaining emblem code
2018-11-08 05:48:14 +01:00
Timm Bäder
fe7a2635d0
icontheme: Don't reference nonexistent parameter in docs
2018-11-08 05:48:14 +01:00
Timm Bäder
2834b38d2c
icontheme: Use a bit field in AsyncSymbolicData
...
176 -> 144 bytes
2018-11-08 05:48:14 +01:00
Timm Bäder
29563a33ba
icontheme: Stop strdup'ing css colors when loading
...
... symbolic icons.
2018-11-08 05:48:10 +01:00
Timm Bäder
5936d7f8f2
gl renderer: Properly retrieve matrix scale
...
So rotating offscreen nodes works.
2018-11-08 05:13:50 +01:00
Timm Bäder
481a78eee7
widget: Avoid some more ->priv accesses
2018-11-08 05:13:50 +01:00
Timm Bäder
ac4134c298
range: Remove multipress_gesture member
...
We don't need it in the instance struct since we only set it up and then
access it in its signal callbacks.
2018-11-08 05:13:50 +01:00
Timm Bäder
145659af93
widget: Some whitespace fixes
2018-11-08 05:13:50 +01:00
Daniel Boles
31b8e0f109
Popover: Minimally document the ::closed signal
...
This is better than nothing at all. The wording is taken from Carlos's
commit message when he added this shortly before 3.12 (but skip Since).
Skip the bit from his commit message explaining what this replaced; we
don't need to say all the less good things our convenience API replaces.
2018-11-07 20:33:15 +00:00
Daniel Boles
18199a3cef
testtreelistmodel: Don't use non-standard function
...
as per efd3758f6a strcasecmp() is not a C
standard thing (not that we bothered including any header for it anyway)
and so this test failed to build on Windows with Microsoft Visual C.
2018-11-07 20:32:55 +00:00
Daniel Boles
3194c39471
TreeMenu: Don't manually reinvent g_list_index()
...
g_list_index() "Gets the position of the element containing the given
data (starting from 0)." That is exactly what we were manually doing.
2018-11-07 20:32:55 +00:00
Timm Bäder
b4b30b4951
Merge branch 'wip/3v1n0/recent-info-cleanup' into 'master'
...
gtk-autocleanups: add cleanup function for GtkRecentInfo
See merge request GNOME/gtk!409
2018-11-06 09:52:11 +00:00
Matthias Clasen
54830a2af3
wayland: Fix a thinko in settings portal support
...
When we decide to fall back because the settings portal
is not present, adhere to that decision elsewhere. And
treat the fontconfig-timestamp like the other special-cased
settings, with G_TYPE_NONE.
2018-11-05 18:34:13 -05:00
Marco Trevisan
9946dd2ab7
gtk-autocleanups: add cleanup function for GtkRecentInfo
2018-11-05 21:37:42 +00:00
Matthias Clasen
5028cb35bc
Merge branch 'wip/settings-portal' into 'master'
...
settings portal
See merge request GNOME/gtk!403
2018-11-04 20:57:26 +00:00
Matthias Clasen
48b569eae0
wayland: Support the settings portal
...
Under Wayland, we are currently directly using GSettings
for desktop settings. But in a sandbox, we may not have
access to dconf, so this may fail. Use the new settings
portal instead.
2018-11-04 15:44:50 -05:00
Matthias Clasen
8099669466
Move the should_use_portal helper to gdk
...
We want to use it there too, in the future.
Update all callers.
2018-11-04 08:17:32 -05:00
Matthias Clasen
1c465604d5
Use a simpler sandbox check
...
No need to use the runtime dir and allocate a string.
We can just check in /.
2018-11-04 08:17:32 -05:00
Matthias Clasen
833442e1e2
Merge branch 'wip/fmuellner/deco-setting' into 'master'
...
wayland: Remove GNOME Classic-specific workaround
See merge request GNOME/gtk!400
2018-11-02 16:18:25 +00:00