Timm Bäder
831bcc5e0d
notebook: Allocate unmapped tabs
2017-07-19 21:27:15 -04:00
Timm Bäder
c4f6cea111
fix a few documentation problems
2017-07-19 21:27:15 -04:00
Timm Bäder
23f90e3d67
centerbox: Add some missing return value annotations
2017-07-19 21:27:15 -04:00
Timm Bäder
1e4d11b995
box: Ignore baselines when vertical
...
For now.
2017-07-19 21:27:15 -04:00
Timm Bäder
68c35bbe15
bbox: Don't report a horizontal baseline
2017-07-19 21:27:15 -04:00
Timm Bäder
f0d6cb5f40
widget: Propagate correct baseline
2017-07-19 21:27:15 -04:00
Timm Bäder
e19e3b72a3
widget: Always pass on baselines
2017-07-19 21:27:15 -04:00
Timm Bäder
fb2bb87bb1
widget: Simplify snapshot_child
2017-07-19 21:27:15 -04:00
Timm Bäder
55389cd97c
entry: Fix baseline alignment
...
Since we only look at priv->text_baseline later on, it would be useful
to actually set it to a useful value.
2017-07-19 21:27:15 -04:00
Timm Bäder
0726148ca5
widget: Draw debug nodes for widget margins too
2017-07-19 21:27:15 -04:00
Timm Bäder
fa5203e700
widget: Fix copy&paste error when creating debug nodes
2017-07-19 21:27:15 -04:00
Timm Bäder
6a7d903612
sizerequest: Add more assertions for baselines
...
min baselines must be <= natural baselines and both must lie inside the
content size of the widget.
2017-07-19 21:27:15 -04:00
Timm Bäder
cef4df1e7e
widget: Unset PRELIGHT and ACTIVE state flags in unmap
2017-07-19 21:27:15 -04:00
Timm Bäder
1dd716e66f
button: Reset in_button state in unmap
...
Since at that point the point is clearly not in the button anymore.
2017-07-19 21:27:15 -04:00
Timm Bäder
e276f1e844
label: Fix get_layout_index
...
Properly translate the given coordinates to layout coordinates. Fixes
clicking links and selecting text.
2017-07-19 21:27:15 -04:00
Timm Bäder
dd9c3fc8ab
textview: Invalidate entire widget
2017-07-19 21:27:15 -04:00
Timm Bäder
dc473b4180
textview: Remove size_changed check in size-allocate
...
It's broken and we only hit size-allocate when the size changes anyway.
2017-07-19 21:27:15 -04:00
Timm Bäder
f7bc5fcae3
linkbutton: Remove useless unrealize implementation
2017-07-19 21:27:15 -04:00
Timm Bäder
c8ca43ad51
stack: Fix under transitions
...
make sure we initialize both width and height with proper values.
2017-07-19 21:27:15 -04:00
Timm Bäder
2c958df789
eventbox: Remove window
2017-07-19 21:27:15 -04:00
Timm Bäder
82eafb8a2c
centerbox: Avoid accessing unset widgets
2017-07-19 21:27:15 -04:00
Timm Bäder
d832001baa
textview: Use correct size for cairo node bounds
2017-07-19 21:27:15 -04:00
Timm Bäder
451a991488
window: Move updates debugging to GtkWidget
...
Which has the necessary information.
2017-07-19 21:27:15 -04:00
Timm Bäder
995903e971
scale: Fix mark positions
...
Someone else will have to fix the css.
2017-07-19 21:27:15 -04:00
Timm Bäder
4eba9442df
range: Fix get_range_rect
...
get_own_allocation's position is relative to the given widget's origin,
not the parent.
2017-07-19 21:27:15 -04:00
Timm Bäder
468e75e43d
range: Fix mark positions
...
The values returned by gtk_range_compute_slider_position are relative
to the trough_widget (the slider's parent), not the slider widget
itself.
2017-07-19 21:27:15 -04:00
Timm Bäder
ed5b7fedb8
scale: Remove custom indicator drawing
...
it's a css node so we can simply use the background instead of the
foreground color in the theme.
2017-07-19 21:27:15 -04:00
Timm Bäder
5bb355f06f
scale: Fix mark indicator allocations
2017-07-19 21:27:15 -04:00
Timm Bäder
a8561bcc99
headerbar: don't measure own size
...
This is fallout from an earlier commit, we should be checking the
child's size of course, not repeatedly the headerbar's.
2017-07-19 21:27:15 -04:00
Timm Bäder
e25e1c54a4
levelbar: Don't underallocate block widgets
2017-07-19 21:27:15 -04:00
Timm Bäder
993998085f
range: Avoid division by zero
2017-07-19 21:27:15 -04:00
Timm Bäder
4b0da8682d
popover: set the shape on the correct window
...
the parent window is now the toplevel's window.
2017-07-19 21:27:15 -04:00
Timm Bäder
d25af7ce10
switch: Put the slider node last
...
Makes sense since we draw it over both labels. Also make this obvious by
using the default snapshot implementation.
2017-07-19 21:27:15 -04:00
Timm Bäder
4fb2fc7d89
drawingarea: Remove useless line from code example
...
backgrounds are drawn automatically now.
2017-07-19 21:27:15 -04:00
Timm Bäder
3dc6d240b3
Fix a few allocation coordinates & sizes
2017-07-19 21:27:15 -04:00
Timm Bäder
2c2867d45d
entry: Fix undershoot position
2017-07-19 21:27:15 -04:00
Timm Bäder
6f7387cd25
paned: Fix clip node coordinates
2017-07-19 21:27:15 -04:00
Timm Bäder
aa5cb1648c
adwaita: Adjust entry progress styling
...
Now that the entry>progress node is a full GtkProgressBar, we need to
apply the style to its trough>progress node.
2017-07-19 21:27:15 -04:00
Timm Bäder
84c00d18bb
entry: Simplify progress size allocation
2017-07-19 21:27:15 -04:00
Timm Bäder
f520700b13
calendar: Remove all input windows
...
and simultaneously fix input! \o/
2017-07-19 21:27:15 -04:00
Timm Bäder
3fc49ce8a1
entry: Fix text position
...
We need to adjust the layout coordinates depending on priv->text_x,
sinec that one accounts for the width of the left icon.
2017-07-19 21:27:15 -04:00
Timm Bäder
a0f3497939
treeview: Remove bin_window
2017-07-19 21:27:15 -04:00
Timm Bäder
26e1491c70
label: Use the correct size in snapshot()
2017-07-19 21:27:15 -04:00
Timm Bäder
3252630a4b
aboutdialog: Remove unused image
2017-07-19 21:27:15 -04:00
Timm Bäder
42aa7453ab
Fix baselines wrt css values
...
The reported minimum baseline is for the reported min height, but if the
css min-height is greater than that, we need to account for that fact
when saving the baseline.
Since the reported baseline is relative to the widget's origin, we also
need to add the top values for margin, border and padding to the
reported baseline.
2017-07-19 21:27:14 -04:00
Timm Bäder
ea3876d26a
widget: black is the new red
2017-07-19 21:27:14 -04:00
Timm Bäder
45c0439dd4
notebook: Fix css node ordering
...
Aaand all the unit tests pass again.
2017-07-19 21:27:14 -04:00
Timm Bäder
8dc5e13e8c
iconview: Remove bin_window
2017-07-19 21:27:14 -04:00
Timm Bäder
fb1d2719d9
entry: Fix node ordering
...
Fix the icon order
2017-07-19 21:27:14 -04:00
Timm Bäder
a9f10a2d56
paned: Remove assertion in get_child_property
...
Passing the third child (the pane separator) is possible and shouldn't
cause the process to abort.
2017-07-19 21:27:14 -04:00
Timm Bäder
51e25aaff4
main: Protect against non-GtkWindow toplevels
2017-07-19 21:27:14 -04:00
Timm Bäder
5fbe26f396
inspector: Use GtkWidget::pick when picking widgets
2017-07-19 21:27:14 -04:00
Timm Bäder
f9f6f3027d
container: Remove get_children_clip
...
Unused.
2017-07-19 21:27:14 -04:00
Timm Bäder
27202ff6cb
stack: Compute clip directly
2017-07-19 21:27:14 -04:00
Timm Bäder
c0f6a97eed
buttonbox: Compute clip directly
2017-07-19 21:27:14 -04:00
Timm Bäder
7012950f9f
modelbutton: Compute clip directly
2017-07-19 21:27:14 -04:00
Timm Bäder
8645dd1030
flowbox: Compute clip directly
2017-07-19 21:27:14 -04:00
Timm Bäder
f1813e8f88
spinbutton: Fix gesture state
...
We claimed the gesture previously to keep it from propagating to the
underlying entry, but now that the entry is in a box with the two
buttons, we can do this properly and restore the previous long-press
behavior.
2017-07-19 21:27:14 -04:00
Timm Bäder
333b52bc14
checkmenuitem: Fix indicator state
...
We need to remove the inconsistent and checked state first so we
actually remove it.
2017-07-19 21:27:14 -04:00
Timm Bäder
bc4c32505a
menu: Popup at window coordinates if widget is given
...
Since widget allocations are now relative to the parent's origin, we
need to pass the window allocation here.
2017-07-19 21:27:14 -04:00
Timm Bäder
8dd29d755c
window: Don't use allocated size in snapshot
...
Those are the wrong values.
2017-07-19 21:27:14 -04:00
Timm Bäder
bda2f4f582
popover: Create subsurface on wayland
2017-07-19 21:27:14 -04:00
Timm Bäder
2cbaa998db
widget: Fix drawing invalidation with windowed widgets
...
E.g. popovers. Find the parent of the given widget with the window and
invalidate the given region in that window.
2017-07-19 21:27:14 -04:00
Timm Bäder
bc807789ba
popover: "Fix" child allocation
...
This is still wrong but will be fixed in the future.
2017-07-19 21:27:14 -04:00
Timm Bäder
79797cd162
window: Stop wrapping popovers in another window
...
GtkPopover is already a windowed widget.
2017-07-19 21:27:14 -04:00
Timm Bäder
c2abb698be
Replace a few get_content_allocation calls with get_content_size
...
The position of the content allocation is almost never relevant since
it's 0/0 for measure, size_allocate and snapshot.
2017-07-19 21:27:14 -04:00
Timm Bäder
e36ddfec17
Remove all widget style property code
2017-07-19 21:27:14 -04:00
Timm Bäder
cc60046ae9
treeviewaccessible: Don't rely on nonexistent style properties
...
The expander-size style property has been gone for a long time.
2017-07-19 21:27:14 -04:00
Timm Bäder
7b9b116ad6
adwaita: Remove style properties
...
They don't exist anymore.
2017-07-19 21:27:14 -04:00
Timm Bäder
07063d82aa
notebook: Remove style properties
...
Hardcode the default values until someone comes up with a proposal for a
better way.
2017-07-19 21:27:14 -04:00
Timm Bäder
61dd8f92b8
calendar: Remove style properties
...
Hardcode the default values until someone comes and fixes the actual
widget.
2017-07-19 21:27:14 -04:00
Timm Bäder
a826ee37ca
widget: Remove _set_simple_clip
...
Unused.
2017-07-19 21:27:14 -04:00
Timm Bäder
1535cab936
spinner: Use get_content_size
2017-07-19 21:27:14 -04:00
Timm Bäder
6b9d10039d
pathbar: Compute widget clip directly
...
Instead of relying on gtk_widge_set_simple_clip
2017-07-19 21:27:14 -04:00
Timm Bäder
f40c61fb40
toolitem: Remove size_allocate implementation
...
A GtkToolItem is a GtkBin and that already does exactly what this
implementation did.
2017-07-19 21:27:14 -04:00
Timm Bäder
1bad3e1f28
widget: Transform clips into right coordinate space
...
The values passed to gtk_widget_set_clip are relative to the widget's
origin, but we need the values to be relative to priv->allocation.
2017-07-19 21:27:14 -04:00
Timm Bäder
e501bc6028
paned: Draw handle separator at the right location
2017-07-19 21:27:14 -04:00
Timm Bäder
5228e018b6
paned: Make sure we set the correct clips
...
They are still too big, i.e. clipped-off children enlarge the paned's
clip but at least redrawing works and smaller clips are just an
optimization.
2017-07-19 21:27:14 -04:00
Timm Bäder
24abbac114
switch: Remove in_switch flag
...
It's pretty simple and less code to just check whether the gesture
coords are inside the widget at the one place where we actually used the
flag.
2017-07-19 21:27:14 -04:00
Timm Bäder
63ba8fa355
widget: Consider opacity when drawing toplevels
...
This used to work in gtk3 and is used e.g. in the inspector when using
wayland.
2017-07-19 21:27:14 -04:00
Timm Bäder
63158fd3ff
switch: Fix handle dragging with padding applied
...
We only move the handle inside the content allocation, so we need to use
the content width when calculating the new handle_pos.
2017-07-19 21:27:14 -04:00
Timm Bäder
a73d3418bc
layout: Remove bin_window
2017-07-19 21:27:14 -04:00
Timm Bäder
8123ea8f3f
fixed: Remove window
2017-07-19 21:27:14 -04:00
Timm Bäder
a4d2da76b3
button: Fix in_button checks
...
The gesture coords are relative to the button's origin, so use
gtk_widget_get_own_allocation to check if the coords are inside the
button.
2017-07-19 21:27:14 -04:00
Timm Bäder
12fdb19d63
expander: Fix pressed_in_title check
...
gesture coords are relative to the expander widget, the title allocation
is relative to the box child.
2017-07-19 21:27:14 -04:00
Timm Bäder
b5aa1982c9
Remove GtkCssGadget
2017-07-19 21:27:14 -04:00
Timm Bäder
7b5c12c7dc
iconhelper: Inherit from GObject
...
Nothing is using any gadget API on iconhelpers anymore.
2017-07-19 21:27:14 -04:00
Timm Bäder
70d90a9923
spinbutton: Remove unused import
2017-07-19 21:27:14 -04:00
Timm Bäder
3077198de0
scrolledwindow: Fix indicator hiding
...
Only hiding the indicator if the widget is not mapped won't work.
2017-07-19 21:27:14 -04:00
Timm Bäder
ac4660b4c4
checkmenuitem: Fix indicator allocation
...
base point is the menu item's content allocation now.
2017-07-19 21:27:14 -04:00
Timm Bäder
1c5eec92fe
range: Fix slider allocation
2017-07-19 21:27:14 -04:00
Timm Bäder
b17d998eb5
widget: Add new allocation accessors
2017-07-19 21:27:14 -04:00
Timm Bäder
15cacf485a
Remove GtkCssCustomGadget
...
Unused.
2017-07-19 21:27:14 -04:00
Timm Bäder
078e599ac5
entry: Replace progress gadget with a progressbar
2017-07-19 21:27:14 -04:00
Timm Bäder
c56bad4be5
scrollbar: notify when setting the orientation
2017-07-19 21:27:14 -04:00
Timm Bäder
58ed506c59
GtkAccelLabel: Add use-underline property
2017-07-19 21:27:14 -04:00
Timm Bäder
a0ebad70cd
spinbutton: Fix property notification
2017-07-19 21:27:14 -04:00
Timm Bäder
4d74129c61
entry: Use images for icons
2017-07-19 21:27:14 -04:00
Timm Bäder
00d720d8a4
image: Add private _get_definition
2017-07-19 21:27:14 -04:00
Timm Bäder
25034b6f87
label: Fix layout snapshot coordinates
...
No need to convert anything to "window coordinates" anymore.
2017-07-19 21:27:14 -04:00
Timm Bäder
9e43d267bd
scrolledwindow: Fix scrollbar allocations
...
Use the content size everywhere. Fixes scrollbar positions with padding
and/or css borders applied to the scrolledwindow.
2017-07-19 21:27:14 -04:00
Timm Bäder
3a20bc5e9a
scrolledwindow: Fix on_scrollbar check
...
The event widget is always the toplevel window, so use the event target
and check the GtkScrollbar ancestor.
2017-07-19 21:27:14 -04:00
Timm Bäder
30f516ff1f
range: Use a gizmo as slider
...
No need for this to be a GtkIcon.
2017-07-19 21:27:14 -04:00
Timm Bäder
3f429eb197
entry: get_layout_location coords are already content relative
2017-07-19 21:27:14 -04:00
Timm Bäder
225306a21e
image: Fold gtk_image_reset into only caller
2017-07-19 21:27:14 -04:00
Timm Bäder
360b075164
widget: Avoid some type checks in snapshot_child
2017-07-19 21:27:13 -04:00
Timm Bäder
f50bbb10df
menu: Remove bin_window and view_window
2017-07-19 21:27:13 -04:00
Timm Bäder
e2ce407f2c
modelmenuitem: Fix type checking assertions
...
GtkAccelLabel is not a GtkLabel anymore
2017-07-19 21:27:13 -04:00
Timm Bäder
34f6f9bfe6
iconview: Stop drawing a background
...
GtkWidget is doing that automatically now.
2017-07-19 21:27:13 -04:00
Timm Bäder
99b00b4d9c
sizerequest: Assert that min_size >= 0
...
This should generally be true, so remove the checks from gtkbox.c and
move it into gtksizerequest.c
2017-07-19 21:27:13 -04:00
Timm Bäder
ab1e8502e7
revealer: Fix DOWN and RIGHT transition types
...
Since we lost the bin_window, we now have to allocate the child widget
at a negative position when using these transition types.
2017-07-19 21:27:13 -04:00
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
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
Timm Bäder
afddfc2397
range: Snapshot slider in trough's snapshot impl
2017-07-19 21:27:12 -04:00
Timm Bäder
d1be5f2941
spinner: Remove gadget
2017-07-19 21:27:12 -04:00
Timm Bäder
6e74975e41
range: make the slider a gadget
2017-07-19 21:27:12 -04:00
Timm Bäder
c7c08cf9a1
icon: Remove gadget
2017-07-19 21:27:12 -04:00
Timm Bäder
ba6ba94184
range: Use gizmos for highlight and fill gadgets
2017-07-19 21:27:12 -04:00
Timm Bäder
395185896f
range: Use a gizmo as trough
2017-07-19 21:27:12 -04:00
Timm Bäder
90cc401f1a
range: Remove contents gadget
...
It's not needed anymore since the range only has one child gadget: the
trough.
2017-07-19 21:27:12 -04:00
Timm Bäder
7e525ca63b
range: Remove steppers
...
Add them back into the new scrollbars later
2017-07-19 21:27:12 -04:00
Timm Bäder
86a2156d17
scrolledwindow: Use scrollbar API on scrollbars
2017-07-19 21:27:12 -04:00
Timm Bäder
5049b35fc6
range: Make GtkRange a regular class
2017-07-19 21:27:12 -04:00
Timm Bäder
4dc5790058
scrollbar: Inherit from GtkWidget
2017-07-19 21:27:12 -04:00
Timm Bäder
55fc120134
calendar: Remove custom css background and border drawing
2017-07-19 21:27:12 -04:00
Timm Bäder
4d4b224a61
eventbox: Remove snapshot implementation
2017-07-19 21:27:12 -04:00