8ebc03a1d1
range: use border allocation for gadget hit test
...
The border is typically part of the reactive part of the widget. This
matches the pre-gadget behavior.
2016-03-02 22:23:11 -08:00
0b156ea096
Document the .circular style class
2016-03-02 19:12:10 -05:00
1395f3a838
scrolledwindow: fix left/right thinko for scrollbar style classes
...
"left" and "right" were inverted, preumably because the position type
parameter refers to the scrolled window position, and not the scrollbar
itself.
2016-03-02 16:08:19 -08:00
3e06942847
widget: Add brute force method to propagate clip
...
When a gtk_widget_queue_allocate() on some widget increases the clip,
widget->parent's clip was not updated. This appraoch naively just
unions widget's new clip with widget->parent's clip.
This of course only works if widget and parent share the same GDK
window. In the cases where they don't we can't do anything and need a
better fix.
Fixes label-text-shadow-changes-modify-clip.ui reftest.
2016-03-03 00:43:59 +01:00
76ea3a15cb
Adwaita: more scale style fixes
2016-03-02 23:10:26 +01:00
597151c736
Adwaita: fix scale with marks size
2016-03-02 21:54:19 +01:00
fde1aac57a
Adwaita: scale with marks style fixes
...
after GtkRange gadgettification the theme needs some adjustments
for the new widget structure.
2016-03-02 21:35:38 +01:00
4a5801b902
combobox: Correct the CSS node docs
...
The box was somehow overlooked in the diagrams.
2016-03-02 15:20:47 -05:00
d3ca8aaf83
Adwaita: fix combos styling
...
since now the combobox childrens are in a box.
2016-03-02 20:55:19 +01:00
b1144a73de
scale: don't add scale label for empty markup
...
This is a regression from the gadget port.
2016-03-02 11:17:08 -08:00
89121e058a
win32 theme: Add a naive switch implementation
...
I couldn't come up with anything better than a button on a button.
But the Windows theme sucks...
2016-03-02 14:49:37 +01:00
8e3bc96d78
win32 theme: Implement horizontal spinbuttons
2016-03-02 14:49:37 +01:00
222c43fc60
combobox: Put child into box
...
Put the combobox child into the box we added for this purpose. That way,
we don't have to maintain the child's position ourselves anymore.
2016-03-02 13:54:39 +01:00
a380533336
container: Remove check
...
The check is not working for many containers anymore as they are not the
direct parents of their children. We want to allow this behavior in more
places.
2016-03-02 13:54:39 +01:00
c3d3bf61e4
combobox: Put the button in a box
...
This is so we can put the entry into the box in the next commit.
2016-03-02 13:54:39 +01:00
04d9577cb7
combobox: Make sure the cellview expands
...
Windows theme needs the expansion for correct drawing of the focus
outline.
2016-03-02 13:54:39 +01:00
13b320ecb2
combobox: Ensure an entry gets created for has_entry combos
...
Previously add/remove on the combobox would result in a cellview being
created.
2016-03-02 13:54:39 +01:00
956b2ff998
progressbar: Don't leave css nodes behind
...
We create and destroy gadgets inside the hierarchy here,
and if we don't explicitly remove their CSS nodes from the parent,
they stick around.
2016-03-01 16:00:54 -05:00
577783a19d
scale: Don't leave css nodes behind
...
We create and destroy gadgets inside the scale hierarchy here,
and if we don't explicitly remove their CSS nodes from the parent,
they stick around.
2016-03-01 15:58:21 -05:00
5889d2520f
Adwaita: fix outline for scale trough
2016-03-01 12:54:01 -08:00
cb614cc838
range: Don't leave css nodes behind
...
We create and destroy gadgets inside the range hierarchy here,
and if we don't explicitly remove their CSS nodes from the parent,
they stick around.
2016-03-01 15:48:01 -05:00
37007c47a5
level bar: Don't leave css nodes behind
...
We create and destroy gadgets inside the levelbar hierarchy here,
and if we don't explicitly remove their CSS nodes from the parent,
they stick around.
2016-03-01 15:35:32 -05:00
87e71afd50
cell renderer: Strip out :drop(active) state
...
It does not make sense to render every cell in a treeview as
drop target, even when the treeview itself is set as a drop destination.
https://bugzilla.gnome.org/show_bug.cgi?id=761686
2016-03-01 15:18:34 -05:00
eff97fd55f
Take a reference on the im context for async ops
...
This might fix the crash in yelp that some people continue
to see.
https://bugzilla.gnome.org/show_bug.cgi?id=762887
2016-03-01 07:59:15 -05:00
61f5562f9f
notebook: Tell everyone we reordered stuff
...
Fixes keybindings for reordering actually emitting signals and properly
updating CSS/the screen.
2016-02-29 23:17:00 +01:00
a74bb0dec4
notebook: Reallocate tab gadgets when we reorder them
...
Otherwise they stay in their position and don't cause a redraw. Which
really confuses Epiphany users apparently.
https://bugzilla.gnome.org/show_bug.cgi?id=762720
2016-02-29 22:00:03 +01:00
d000b212c6
range: fix fill level for vertical inverted scales
2016-02-29 12:53:08 -08:00
5a83787dc0
Update CSS nodes documentation
2016-02-29 10:45:14 -08:00
bb55a1a958
scale: add gadgets for indicator/label in scale marks
...
This will allow us to theme them indepdendently, and specify a size for
the indicator from the theme.
2016-02-29 10:45:14 -08:00
7bd3d87eeb
scale: add a gadget for every mark
...
We want to add another gadget for the mark indicator. This will allow us
to do so.
2016-02-29 10:45:14 -08:00
74a8bbfd38
Adwaita: add minimum size for marks
...
It's still suboptimal, because there's no way to control the size of the
indicator alone, but this does the job for now.
2016-02-29 10:45:14 -08:00
0fb50dc9a8
gadget: improve debug message
2016-02-29 10:45:14 -08:00
0c8dbf07ce
range: draw slider on top of all contents
...
This is so that e.g. the focus ring is drawn under the slider.
2016-02-29 10:45:14 -08:00
cdd7a7bdcd
scale: implement rendering for marks gadgets
...
This completes the conversion of scale marks to gadgets.
2016-02-29 10:45:14 -08:00
1a8eb9fefa
scale: implement size allocate for mark gadgets
...
This allows to move the mark sections around with e.g. margins.
2016-02-29 10:45:14 -08:00
562a501f3b
scale: port marks size request to gadgets
2016-02-29 10:45:14 -08:00
2f420d0e14
scale: use gadgets instead of nodes for mark containers
...
The gadget is not yet allocated though.
2016-02-29 10:45:14 -08:00
b73d274d55
scale: rename function arguments
...
To make them clearer. No functional change here.
2016-02-29 10:45:14 -08:00
8d5d16ae56
scale: remove unused argument
...
It's always GTK_POS_TOP.
2016-02-29 10:45:13 -08:00
bc41ff8af4
range: better hack for GtkColorScale
...
Just draw the slider, since that is the only thing GtkColorScale cares
about.
2016-02-29 10:45:13 -08:00
887b6d65a1
range: deprecate gtk_range_get/set_min_slider_size()
...
Nothing uses these functions inside GTK anymore.
2016-02-29 10:45:13 -08:00
424f17c0fb
range: don't use gtk_range_set_min_slider_size()
...
The way this method is used from the GtkRange subclasses doesn't really
work well when the slider properties change as a consequence of e.g. a
style class being applied (e.g. the fine-tune style class).
In fact, there's no need to read the minimum slider size out of band,
and we can obtain the same result in a way that always work by setting a
private property on GtkRange.
2016-02-29 10:45:13 -08:00
0468ff1545
Adwaita: some more WIP theme work for the new scale
2016-02-29 10:45:13 -08:00
3ff66edb6b
gadget: simplify code
2016-02-29 10:45:13 -08:00
0883ff5eed
range: use border box for slider area
...
Since we can use negative margins, we should not use the margin box
for the slider area. Use the border box instead, since that's what is
typically mapped to the visible area.
2016-02-29 10:45:13 -08:00
6ecab5ee6b
range: use new GtkCssGadget API instead of rolling our own
2016-02-29 10:45:13 -08:00
44178c0541
gadget: add API to get various area boxes
...
Compared to the function returning the allocation, these will return the
box in gadget coordinates.
2016-02-29 10:45:13 -08:00
2d2a81682d
range: simplify code
...
Instead of directly accessing the widget allocation, we can use the
gadget API to test whether the coordinates are in the main gadget.
2016-02-29 10:45:13 -08:00
622f5aef4e
Adwaita: WIP for new range theme
2016-02-29 10:45:13 -08:00
d1433c25f3
range: add a gadget for the whole widget area
...
This commit introduces another node, called "contents", that holds the
main contents of the range. This allows for the main gadget itself to
span across the whole surface of the widget now.
2016-02-29 10:45:13 -08:00