Matthias Clasen
cfa0884165
Improve formatting of CSS style prints
...
Add a newline after CSS properties, so things don't run into
each other.
2016-01-03 17:05:16 -05:00
Matthias Clasen
12be432df7
Skip GdkX11DeviceManagerCore in default value tests
...
We already skip the XI2 implementation, and the core
one needs the same treatment.
2016-01-03 16:14:43 -05:00
Matthias Clasen
e1634d18de
Update expected output for CSS style tests
...
The format for CSS values changed slightly in one of the
previous commits.
2016-01-03 15:41:09 -05:00
Matthias Clasen
3c26aef826
Use a custom theme for CSS style tests
...
Use a custom, empty theme and stop importing reset-to-defaults.css.
This avoids overwriting initial values, so our initial value
filtering works better.
2016-01-03 15:39:55 -05:00
Matthias Clasen
2e921691d9
Redo CSS style printing
...
Drop the custom style printing implementation in gtkcssnode.c and
instead reuse the existing gtk_css_style_print function, extending
it a bit to suit our needs.
Instead of computing values, just recognize initial values by
having no CSS section. Also do away with the show-initial flag, and
just always filter out initial values. The flag can come back when
it is needed.
2016-01-03 15:36:48 -05:00
Matthias Clasen
d0e648d4f6
Update expected output for node and style tests
...
The previous commit changed the format of the output.
2016-01-03 14:41:43 -05:00
Matthias Clasen
0c52eca34c
Move node printing to GtkCssNodeDeclaration
...
The node declaration has all the information we are printing
here (except for visibility). At the same time, redo the format
to print the information in selector format, and indicate
(in)visibility by enclosing the selector in square brackets.
2016-01-03 14:41:43 -05:00
Cosimo Cecchi
28e185dd1b
tests: fix Makefile.am syntax
...
It requires a tab character, or the build will fail.
2016-01-03 11:33:19 -08:00
Cosimo Cecchi
dcaffe369f
cssnode: fix a compiler warning
2016-01-03 11:25:45 -08:00
Matthias Clasen
489928cbb4
Fix the build
2016-01-03 12:05:57 -05:00
Matthias Clasen
f7a93c015c
Forgotten file
...
I forgot to add this file to source control when the new tests
were initially added.
2016-01-03 12:02:11 -05:00
Felix Riemann
daa08862ff
shortcuts: Separate gestures in search results
...
Gestures where shown separately from other shortcuts in the search
results before. This restores that behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=760097
2016-01-03 17:07:23 +01:00
Felix Riemann
bd4b3091f6
shortcuts: Show icons and subtitles for gestures in search results
...
https://bugzilla.gnome.org/show_bug.cgi?id=760097
2016-01-03 17:07:23 +01:00
Matthias Clasen
2dd8d1ad53
Update expected results of a11y tests
...
All of these now have a harmless extra "panel".
2016-01-03 10:56:11 -05:00
Matthias Clasen
1aeaa33e68
lockbutton: Fix up the template
...
I forgot to clean this up when switching to a stack.
2016-01-03 10:42:13 -05:00
Matthias Clasen
7a01741575
Skip GdkX11DeviceManagerCore in notify tests
...
We already skip the XI2 implementation, and the core
one needs to the same treatment.
2016-01-03 10:34:40 -05:00
Matthias Clasen
9c39232ab3
assistant: Drop unnecessary frame
...
We can just style the sidebar box itself, no need for an
extra frame widget.
2016-01-03 10:33:54 -05:00
Matthias Clasen
adfb76dc7e
lockbutton: Use a stack
...
The previous way of manually juggling the visibility of the
labels doesn't work anymore, now that gadgets of invisible
widgets don't allocate space anymore.
2016-01-03 09:55:30 -05:00
Matthias Clasen
ed5ebc0711
Add a css style test for currentColor
2016-01-03 09:19:31 -05:00
Matthias Clasen
33be60b0ab
Add a css style test for inherit and initial
2016-01-03 09:19:31 -05:00
Matthias Clasen
1ec34ae085
Add a css style test for :first/last/only-child
2016-01-03 09:19:31 -05:00
Matthias Clasen
82a571e0ca
Add a css style test for font inheritance
2016-01-03 09:19:31 -05:00
Matthias Clasen
905ab53c71
Add a test framework for CSS styles
...
This uses the same function for dumping CSS nodes and styles
as the CSS node test. It can be used to test aspects of inheritance
and matching, as well as initial values.
No actual tests yet.
2016-01-03 09:19:31 -05:00
Matthias Clasen
864693e5aa
Add CSS node tests for levelbars
2016-01-03 09:19:31 -05:00
Matthias Clasen
0ce5075748
Add CSS node test for progressbars
2016-01-03 09:19:31 -05:00
Matthias Clasen
5c4efb09e2
Add a CSS node test for buttons
2016-01-03 09:19:31 -05:00
Matthias Clasen
78d715af22
Add a CSS node test for entries
2016-01-03 09:19:30 -05:00
Matthias Clasen
669ced3984
Add a CSS node test for notebooks
2016-01-03 09:19:30 -05:00
Matthias Clasen
d2c1203ef1
Add a test framework for CSS nodes
...
No actual tests yet.
2016-01-03 09:19:30 -05:00
Matthias Clasen
68edc47f6a
Add a function to dump CSS nodes and styles
...
Add a gtk_style_context_to_string function that can serialize
a CSS node or tree of nodes, optionally including CSS properties
as well.
This will be useful in writing tests.
2016-01-03 09:19:30 -05:00
Cosimo Cecchi
a6624d803e
infobar: remove unneeded gadget
...
It turns out we don't really need to use a separate gadget for the
infobar, if all we do is chaining up to the parent GtkBox which already
uses a gadget.
Just remove all the boilerplate.
2016-01-03 01:02:12 -08:00
Cosimo Cecchi
ef8a5fc542
window: remove unused variables
2016-01-03 00:54:16 -08:00
Cosimo Cecchi
424898e071
levelbar: consolidate code into single function
2016-01-03 00:45:43 -08:00
Cosimo Cecchi
a6e7e72d53
levelbar: port to use gadgets
...
We now use one gadget for the trough, and one for each block.
2016-01-03 00:45:43 -08:00
Cosimo Cecchi
971f1a9b31
levelbar: split out a function
2016-01-03 00:44:05 -08:00
Cosimo Cecchi
feb741babf
infobar: port to use a gadget
2016-01-03 00:44:05 -08:00
Cosimo Cecchi
f246dc1c85
infobar: trivial code cleanups
2016-01-03 00:44:05 -08:00
Cosimo Cecchi
d8b6dbd888
menubar: prefer early return
2016-01-03 00:44:05 -08:00
Cosimo Cecchi
700286c6d8
menubar: port to use a gadget
2016-01-03 00:44:05 -08:00
Cosimo Cecchi
96f10c0b72
menubar: use gtk_container_class_handle_border_width()
2016-01-03 00:44:05 -08:00
Cosimo Cecchi
4328a3a24b
HighContrast: remove unused selector
...
There's no header-bar-separator style class.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
a9d07b6ec6
Adwaita: remove unused selector
...
There's no header-bar-separator style class.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
28911c595b
HighContrast: update for separators deprecations
...
HighContrast still has a long way to go, but let's get at least
separators working again.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
7dacc7836f
HighContrast: reparse theme
...
For some reason, this got accidentally changed in a previous commit.
This is just the output of running parse-sass.sh again.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
39beebd2cb
win32: remove ineffective selector
...
That style property is deprecated, but the combobox does not have a
separator anymore.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
908deb1bdc
widget: deprecate separator style properties
...
They're not used in GTK anymore. Also remove them from the default
theme.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
64a06adfc0
treeview: don't use wide-separators/separator-height
...
Those style properties are on their way out; instead, use min-height
with the separator style class to obtain the height.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
2eb7e6a85a
treeview: prefer positive polarity in if block
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
1f690ddbfa
separator: don't read wide-separators style property
...
The notion of a separator being wide or not does not make sense when a
theme can set any CSS property on it, and
separator-width/separator-height are on their way out for
min-width/min-height.
2016-01-03 00:42:51 -08:00
Cosimo Cecchi
0740f23c77
menuitem: don't read wide-separators or separator-height
...
Separators inside menus are working completely through CSS since
GtkMenuItem has been ported to use a gadget.
Remove this unused code from here.
2016-01-03 00:42:51 -08:00