Timm Bäder
cb8031fde3
inspector: Allow picking children of GtkWidget classes
2017-07-19 21:27:13 -04:00
Timm Bäder
34af3d3940
accellabel: Inherit from GtkWidget
...
Use a box and 2 labels.
2017-07-19 21:27:13 -04:00
Timm Bäder
01cdcec3ea
textview: Use ::snapshot
2017-07-19 21:27:13 -04:00
Timm Bäder
ae5d3a20a8
tooltipwindow: Remove unused define
2017-07-19 21:27:13 -04:00
Timm Bäder
665c9aba31
listbox: Remove rows directly when binding model
...
Instead of hopping through 7 different functions to do that, just
remove all rows directly. This also mean we'll only remove rows and not
other children that've been added like placeholders.
2017-07-19 21:27:13 -04:00
Timm Bäder
a9f9ef3f53
box: Use widget children list in count_expand_children
...
It's still less dereferencing than the previous code.
2017-07-19 21:27:13 -04:00
Timm Bäder
3babd184c0
scale: Fix css node ordering and expected results
...
Add :dir(ltr) where expected, i.e. everywhere we now have a widget but
had a gadget before.
Also, fix the expected output to expect mark subnodes in the order
specified in the GtkScale does, i.e.
├── mark
├── [label]
╰── indicator
for marks at the top of the scale and
├── mark
├── indicator
╰── [label]
For marks at the bottom of the scale.
2017-07-19 21:27:13 -04:00
Timm Bäder
121cf9c78c
spinbutton: Add docs for new public API
2017-07-19 21:27:13 -04:00
Timm Bäder
73f5f45456
widget: Draw widget clips with GEOMETRY debugging
2017-07-19 21:27:13 -04:00
Timm Bäder
3e555e1646
image: Offset rendering to the content allocation
2017-07-19 21:27:13 -04:00
Timm Bäder
90c8a3f920
widget: Bring back layout debugging
2017-07-19 21:27:13 -04:00
Timm Bäder
ac1d3cb396
paned: Replace handle gadget with widget
2017-07-19 21:27:13 -04:00
Timm Bäder
ec51c63313
widget: Bring resize and baseline debug rendering back
2017-07-19 21:27:13 -04:00
Timm Bäder
790c153b2c
range: Fix click detection in slider trace
...
The x/y/ coordinates are relative to the range allocation, so take that
into account.
2017-07-19 21:27:13 -04:00
Timm Bäder
2ac8ebe9f7
treeview: default to width_changed = TRUE
...
Checking the given GtkAllocation against the current allocation insize
::size-allocate doesn't really work anymore. They are only different if
the content allocation (the one passed) and the widget allocation (the
current one) are different, so e.g. when the widget has padding >0
applied.
2017-07-19 21:27:13 -04:00
Timm Bäder
70a58fd83a
icon: Render at content position
...
Since we get offset automatically to the widget allocation before
->snapshot is called, we still have to offset the difference to the
position of the content allocation.
2017-07-19 21:27:13 -04:00
Timm Bäder
071c205c92
switch: Use a gizmo as slider
...
The button was jut a stop-gap solution before GtkGizmo existed.
2017-07-19 21:27:13 -04:00
Timm Bäder
b344267e6c
button: Don't care about sizing if no child is set
...
We don't need to care in this case since the default values should
always be assumed to be 0, and setting a baseline of 0 is just wrong
when orientation == HORIZONTAL, it should be -1 (or unset).
2017-07-19 21:27:13 -04:00
Timm Bäder
0bab8b8e0e
Remove GtkBoxGadget
...
Now unused
2017-07-19 21:27:13 -04:00
Timm Bäder
4f0140fa6c
Remove GtkBuiltinIcon
...
Now unused.
2017-07-19 21:27:13 -04:00
Timm Bäder
efd7b38abc
checkbutton: stop using gadgets
2017-07-19 21:27:13 -04:00
Timm Bäder
495fba41db
modelbutton: Use GtkIcon as indicator
2017-07-19 21:27:13 -04:00
Timm Bäder
ed38b1c365
icon: Add _set_css_name back
2017-07-19 21:27:13 -04:00
Timm Bäder
d5167eb61c
colorswatch: Replace IconHelper with GtkImage
2017-07-19 21:27:13 -04:00
Timm Bäder
dd713e0ae2
widget: Consider css margins when setting clip
...
This is optional for positive margins as they just increase the widget
allocation. However, with negative css margins, the allocation is
smaller than the clip.
This fixes scale sliders leaving a small trail behind.
2017-07-19 21:27:13 -04:00
Timm Bäder
a3b9adaa68
adwaita: Fix typo
...
marks_lenght -> marks_length
2017-07-19 21:27:13 -04:00
Timm Bäder
f1c1e52eea
container: GtkActionBar is not a special container anymore
2017-07-19 21:27:13 -04:00
Timm Bäder
2d29183aa8
progressbar: Apply style classes when setting direction
...
We might have to change .top to .left etc. when changing the direction
of the progressbar.
2017-07-19 21:27:13 -04:00
Timm Bäder
218e0b9929
spinbutton: Use 0 as default for (max-)width-chars
...
This mimics the old spinbutton size request better.
2017-07-19 21:27:13 -04:00
Timm Bäder
b3f45cf1fe
range: Emit value-changed when setting the adjustment
...
After all, the value kind of just changed.
2017-07-19 21:27:13 -04:00
Timm Bäder
5204fd5ea1
scale: Replace all gadgets with widgets
2017-07-19 21:27:13 -04:00
Timm Bäder
7448d137f3
scale: Remove draw_value vfunc
...
Unused.
2017-07-19 21:27:13 -04:00
Timm Bäder
af9d0cdffb
range: Return trough allocation from _get_range_rect
2017-07-19 21:27:13 -04:00
Timm Bäder
6f2145be00
notebook: Replace all gadgets with widgets
2017-07-19 21:27:13 -04:00
Timm Bäder
07cbbc6fa9
container: Propagate child properties if parent != container
...
This can happen when e.g. GtkNotebook adds the child page widgets not
directly inside the notebook, but inside the inner GtkStack.
2017-07-19 21:27:12 -04:00
Timm Bäder
2bf1c09f65
adwaita: Fix notebook theming
...
the header and the stack nodes are now inside a box node.
2017-07-19 21:27:12 -04:00
Timm Bäder
11207505e3
gizmo: Unparent all child widgets in finalize
2017-07-19 21:27:12 -04:00
Timm Bäder
017dfc132d
gizmo: Chain up in snapshot if no snapshot func given
...
I.e. when gizmo users just want to draw child widgets anyway and don't
do any custom drawing, they can simply pass NULL.
2017-07-19 21:27:12 -04:00
Timm Bäder
0c0a402433
notebook: Replace tab gadget with GtkGizmo
2017-07-19 21:27:12 -04:00
Timm Bäder
8edf10103e
notebook: Replace tabs gadget with GtkGizmo
2017-07-19 21:27:12 -04:00
Timm Bäder
195ca06c2c
notebook: Replace arrow gadgets with GtkIcons
2017-07-19 21:27:12 -04:00
Timm Bäder
8b1b0f4efd
icon: Add _set_image
2017-07-19 21:27:12 -04:00
Timm Bäder
7c77fd9e62
menu: Replace arrow gadgets with GtkIcons
2017-07-19 21:27:12 -04:00
Timm Bäder
fb78c3b7e8
checkmenuitem: Replace indicator gadget with GtkIcon
2017-07-19 21:27:12 -04:00
Timm Bäder
2876790cc3
icon: Only draw in content allocation
2017-07-19 21:27:12 -04:00
Timm Bäder
273aa2be61
menuitem: Replace arrow gadget with GtkIcon
2017-07-19 21:27:12 -04:00
Timm Bäder
753e915f87
scrollbar: Add accessor for wheel delta
...
Make the one in gtkrange.c static since it was only ever used from
GtkScrolledWindow.
2017-07-19 21:27:12 -04:00
Timm Bäder
706bc08b68
range: Draw the colorscale trough at 0,0
2017-07-19 21:27:12 -04:00
Timm Bäder
2e62072cbc
range: Allocate the trough when the adjustment value changes
...
So it repositions the slider.
2017-07-19 21:27:12 -04:00
Timm Bäder
38ff761313
range: Fix mouse location tracking
2017-07-19 21:27:12 -04:00