Timm Bäder
ec1984bd93
revealer: Request child size for NONE transition type
...
Previously, we would request a size of 0×0 when the transition type was
NONE and the child un-revealed, making the revealer in this case a
gtk_widget_set_visible replacement. Instead, to the exact same thing we
do in the CROSSFADE case and request the child size instead. This also
keeps the revealer from under allocating the child when the transition
type is set to NONE.
2017-07-19 21:27:13 -04:00
Timm Bäder
9e50447253
stack: Remove bin_window
2017-07-19 21:27:13 -04:00
Timm Bäder
12d2679aac
revealer: Remove bin_window
2017-07-19 21:27:13 -04:00
Timm Bäder
5688b8a663
toolitemgroup: Remove child window
2017-07-19 21:27:13 -04:00
Timm Bäder
9350a0f85b
popover: Remove useless if case
...
rect is not nullable, so stop checking if it is NULL and instead add a
g_return_val_if_fail guard.
2017-07-19 21:27:13 -04:00
Timm Bäder
2b06986c38
widget: "fix" event and invalidation coordinates
2017-07-19 21:27:13 -04:00
Timm Bäder
b8cc22a552
window: Remove dead code
...
This case can never happen since GtkWindow instances never have a
parent.
2017-07-19 21:27:13 -04:00
Timm Bäder
dc93903cd3
image: Fix snapshot position
2017-07-19 21:27:13 -04:00
Timm Bäder
2687a9d132
entry: Fix text position
2017-07-19 21:27:13 -04:00
Timm Bäder
241a009938
widget: Adapt translate_coordinates to coordinate changes
2017-07-19 21:27:13 -04:00
Timm Bäder
e3bd1e10e8
scrolledwindow: fix scrollbar allocation
2017-07-19 21:27:13 -04:00
Timm Bäder
fa97b270f1
paned: Remove useless queue_resize calls
...
This is done by gtk_widget_unparent nowadays
2017-07-19 21:27:13 -04:00
Timm Bäder
4a4897a9b6
paned: Reimplement handle dragging
2017-07-19 21:27:13 -04:00
Timm Bäder
d3e88ed5a6
icon: Stop offset'ing in snapshot
...
The snapshot is not offset to the content allocation when ->snapshot is
called.
2017-07-19 21:27:13 -04:00
Timm Bäder
d3beea2c3d
frame: Fix child allocation
...
Don't add the parent's allocation from gtk_widget_get_allocation
2017-07-19 21:27:13 -04:00
Timm Bäder
bccaeb0e2d
widget: Make allocations parent-content-allocation relative
2017-07-19 21:27:13 -04:00
Timm Bäder
ec6184c2af
widget: Remove queue_draw_child vfunc
2017-07-19 21:27:13 -04:00
Timm Bäder
c462105d78
viewport: Remove bin_window
2017-07-19 21:27:13 -04:00
Timm Bäder
58320c02ea
scrolledwindow: Properly remove scrollbars
...
Instead of keeping an extra ref, then unparent+destroy+unref, don't keep
an extra ref and just unparent the scrollbar when appropriate.
2017-07-19 21:27:13 -04:00
Timm Bäder
357e0db4c9
listbox: Remove manual prelight row management
...
This works automatically now.
2017-07-19 21:27:13 -04:00
Timm Bäder
5aeb25f460
switch: Remove manual PRELIGHT code
...
This works automatically now
2017-07-19 21:27:13 -04:00
Timm Bäder
c2717a887d
listbox: Remove view_window
2017-07-19 21:27:13 -04:00
Timm Bäder
b9f70b473c
scrollbar: Add new API to gtk4-sections.txt
...
and update the css node docs
2017-07-19 21:27:13 -04:00
Timm Bäder
0a70ec2d36
bin: Drop priv pointer
2017-07-19 21:27:13 -04:00
Timm Bäder
cc7038b740
filechooserwidget: Fix save widgets
...
Now that GtkFileChooserWidget is not a GtkBox anymore, we can't just
gtk_box_pack_start child widgets to it.
2017-07-19 21:27:13 -04:00
Timm Bäder
24f79bbae4
Remove some unneeded includes
2017-07-19 21:27:13 -04:00
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