07eda5920f
text view: Expand CSS node docs
...
Mention the selection node, and the context menu.
2016-01-18 10:51:54 -05:00
c24c56a143
Forgotten file
2016-01-18 09:41:46 -05:00
3281d1a284
notebook: Don't crash when dnd'ing tabs out
...
https://bugzilla.gnome.org/show_bug.cgi?id=760754
2016-01-18 15:39:02 +01:00
eca1b3cba3
accellabel: Remove unused variable
2016-01-18 15:39:02 +01:00
6f3cff16af
gdk: Clarify docs about scale
...
Explicitly state where we return application pixels as opposed
to device pixels.
2016-01-18 08:54:35 -05:00
bbc08d08a9
Trivial typo fix
2016-01-18 08:36:53 -05:00
65ae48d707
Add more CSS node tests for notebooks
2016-01-18 07:41:33 -05:00
d73f6b8c50
entry: Deprecate shadow-type
...
Things like that should be handled using css. Also, the property value
is unused inside GtkEntry.
2016-01-18 12:53:53 +01:00
f74f81f06b
W32: Detect ticks wraparound
...
https://bugzilla.gnome.org/show_bug.cgi?id=748327
2016-01-18 09:23:44 +00:00
83eb36a896
Add CSS node tests for checkbutton rtl flipping
2016-01-18 00:29:29 -05:00
121aec6de8
Add css node tests for expander rtl flipping
2016-01-18 00:24:53 -05:00
2a665715b6
expander: Flip the alignment of the vertical box
...
To ensure that the title moves to the other side as expected
in RTL, use GTK_ALIGN_START/END instead of GTK_ALIGN_FILL
when packing the title gadget into the vertical box, and
flip the alignment when the text direction changes.
2016-01-18 00:19:31 -05:00
296f80a580
expander: Handle rtl changes again
...
Now that the box gadget has api for it, use it here to
change the order of the gadgets for right-to-left.
2016-01-18 00:11:54 -05:00
a32b39c60f
checkbutton: Handle rtl changes again
...
Now that the box gadget has api for it, use it here to
change the order of the gadgets for right-to-left.
2016-01-18 00:11:50 -05:00
5265db5dd6
box gadget: Add a function to reverse children
...
This can be used to handle text direction changes.
2016-01-18 00:03:39 -05:00
f6757e0c0c
reftests: Fix up for easy CSS changes
...
This is mostly search and replace ala
GtkButton => button
GtkWindow => window
.button => button
or removing style properties that aren't used anymore like
-GtkButton-default-border: 0
2016-01-18 05:05:35 +01:00
b7f32ed451
reftests: Remove test
...
We no longer match subtypes, so remove the test for it.
2016-01-18 05:05:35 +01:00
7859f8ee91
checkbutton: Use a box gadget
...
Now that builtin icons have a baseline, we can just use
a box gadget with baseline alignment for the indicator
and the label.
2016-01-17 21:16:33 -05:00
da30858ee4
builtin icon: set a baseline
...
Most uses of builtin icons (check and radio buttons,
expanders, etc) are placed next to labels, so they should
be properly positioned wrt to the baseline. Lacking anything
better, give the builtin icons a baseline that places the
center of the icon at the strikethrough position.
2016-01-17 21:02:18 -05:00
9c3907dab0
box gadget: Deal with optional arguments
...
The baseline arguments to the preferred size callback can
be NULL. Don't crash if they are.
2016-01-17 19:48:40 -05:00
44d94a4aeb
Trivial formatting fix
2016-01-17 15:35:14 -05:00
a7387e2641
Document restrictions on gtk_style_context_get
...
This makes it official that passing a different state
is not generally supported in the getters for CSS properties.
2016-01-17 15:31:37 -05:00
6bf9715ce4
notebook: show tabs when asked to
...
gtk_notebook_set_show_tabs must make the header gadget
visible when show_tabs is TRUE, not the other way around.
https://bugzilla.gnome.org/show_bug.cgi?id=760596
2016-01-17 14:35:58 -05:00
9e2a1685c5
accel label: Fix RTL handling
...
The 'mad hack' that GtkAccelLabel used to affect the GtkLabel
draw function broke with the introduction of gadgets, since
the positioning is no longer relative to the widgets' allocation
at the time of the call, but rather to the gadgets allocation.
Instead of coming up with an even madder hack to keep this
working, give the GtkLabel draw function knowledge about accel
labels.
https://bugzilla.gnome.org/show_bug.cgi?id=760663
2016-01-17 14:08:22 -05:00
d28959c6db
inspector: Make cursor-size combo wider
...
Cursor sizes typically have 2 digits, lets not clip them.
2016-01-17 13:23:49 -05:00
00aca5d689
Expand window style class documentation a bit
2016-01-17 12:13:59 -05:00
9d26038a10
Adwaita: Keep entry progress visible
...
When the entry is focused, make the progress one pixel wider
so it doesn't get swallowed by the focus outline.
2016-01-16 19:23:26 -05:00
6e6cbd7316
stylechange: Do the right thing when old and new style are equal
...
We don't need to compare all their CSS values to figure out that nothing
changed. We know that.
2016-01-16 23:58:37 +01:00
c904efef53
cssnode: Redo GTK_DEBUG=no-css-cache
...
Previously this setting would just invalidate the whole CSS tree and
thereby hopefully avoid all cache usage.
Now, we actually don't cause extra invalidations anymore, but instead
avoid ever inserting anything into the cache when this setting is set.
2016-01-16 23:58:37 +01:00
024429f76f
cssnode: Implement the style cache
...
This essentially copies the previous cache implementation. With one
caveat: It is now attached to and maintained by the CssNode, not by the
CssStyle.
And this is important because styles may be reused in incompatible
situations which would cause cache collisions and lead to broken CSS in
weird situations.
2016-01-16 23:58:37 +01:00
5d562b6a2a
cssnode: Split out the style cache
...
For now, the split out style cache doesn't cache anything. This is
mostly to make sure that bisections of wrong caching behavior will
bisect down to the commit that actually adds caching.
2016-01-16 23:58:37 +01:00
93f8fa7576
Adwaita: stop axing toolbar separators
2016-01-16 04:16:55 +01:00
d0f83d46a0
Adwaita: style textview derived widgets
2016-01-16 04:15:30 +01:00
e7fc87e4ac
color scale: Improve themability
...
Add the .color class, so themes can style scale.color.
Clip the trough rendering to the content path, so that
themes can set rounded corners.
2016-01-15 20:08:57 -05:00
a0d91a3a71
treeview: Use foreground color to draw dnd marker
...
This is still not perfect, but makes the dnd marker better visible
in HighContrastInverse.
2016-01-15 19:39:12 -05:00
2cf810c4c9
frame: Don't overlap label and child
...
We didn't do this previously, so don't start now.
https://bugzilla.gnome.org/show_bug.cgi?id=760528
2016-01-15 19:16:23 -05:00
f32e1d42e6
Adwaita: combo style cleanup and fixes
...
fixes https://bugzilla.gnome.org/show_bug.cgi?id=760524
2016-01-16 01:03:08 +01:00
e8b9aacfc1
combo: Add .linked class when appropriate
...
Add the .linked style class to combo boxes which have
an entry, since that is what they are.
2016-01-15 17:55:44 -05:00
54a6e032ca
combobox: Document the popup window CSS node
2016-01-15 17:48:39 -05:00
0049be4e58
application: Protect against double shutdown
...
It is not something that can happen normally.
But if it does, we shouldn't crash.
https://bugzilla.gnome.org/show_bug.cgi?id=760680
2016-01-15 17:37:55 -05:00
2b95e4db55
mir: add default GdkSeat for the default GdkDisplay
2016-01-15 14:10:53 -05:00
d8bb228d3b
widget: remove queue_resize in set_sensitive
...
Calling gtk_widget_propagate_state is enough to queue a resize if
needed
See da7a4089fe
2016-01-15 11:07:47 -08:00
303556ac2a
wayland: Fix an endless loop
2016-01-15 18:40:43 +01:00
04f6f38b56
Adwaita: remove messagedialog label squashing hack
...
since Matthias fixed this properly.
2016-01-15 18:37:49 +01:00
78162c5e88
message dialog: Prevent empty title from being shown
...
We don't want to grow the titlebar by showing an empty label.
2016-01-15 11:59:33 -05:00
fc804bba2d
Adwaita: some dialog love
...
addresses https://bugzilla.gnome.org/show_bug.cgi?id=760525
2016-01-15 17:57:25 +01:00
6d18b77ca7
expander: Destroy gadgets after child widgets
...
With child widgets now being sorted into box gadgets, bad things
happen if those gadgets disappear prematurely.
2016-01-15 10:30:08 -05:00
6e4d65d227
notebook: Destroy gadgets after chaining up
...
While chaining up, we might still call into the notebook code. And that
code expects the gadgets to be there.
https://bugzilla.gnome.org/show_bug.cgi?id=760640
2016-01-15 16:22:22 +01:00
2e27c0af25
expander: Convert to use box gadgets
...
Use a vertical box gadget for the overall expander, and a
horizontal one for the title row. This lets us get rid of
all the custom allocation code here.
2016-01-15 09:43:51 -05:00
5f5dc10820
expander: Deprecate spacing property
...
The same can be achieved with margins on the child, and
the spacing property gets in the way of converting the
expander to use box gadgets.
2016-01-15 09:43:51 -05:00