Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | widget: Remove allocation memberwip/baedert/transforms6 | Timm Bäder | 2019-02-14 | 3 | -70/+39 |
| | | | | x and y are always 0 now, so only save the size. | ||||
* | widget: Fix get_allocation | Timm Bäder | 2019-02-14 | 1 | -2/+2 |
| | | | | | This was always returning 0/0 as the position, breaking things like the emoji chooser. | ||||
* | widget: Remove _gtk_widget_get_allocation | Timm Bäder | 2019-02-14 | 4 | -19/+12 |
| | | | | | | Getting the allocation is kind of discouraged until we have figured out what exactly we need to expose, so stop having an internal function for it. Most of the calls should be replaced by gtk_widget_compute_bounds. | ||||
* | flowbox: Implement get_child_at_pos properly | Timm Bäder | 2019-02-14 | 1 | -17/+5 |
| | | | | | | With transforms in the mix, checking if the coordinate is inside the widget "allocation" makes even less sense. Just use gtk_widget_pick() and walk up until we find a GtkFlowBoxChild. | ||||
* | testsuite: Disable more pick() tests | Timm Bäder | 2019-02-14 | 1 | -4/+8 |
| | | | | This doesn't work without a toplevel window... | ||||
* | Add & use GTK_CSS_AFFECTS_TRANSFORM | Timm Bäder | 2019-02-14 | 3 | -2/+9 |
| | |||||
* | Fix shadowing warnings | Timm Bäder | 2019-02-14 | 1 | -4/+0 |
| | |||||
* | widget: Apply CSS transform in size_allocate_transformed | Timm Bäder | 2019-02-14 | 1 | -0/+27 |
| | |||||
* | csstransformvalue: Export is_none | Timm Bäder | 2019-02-14 | 2 | -2/+2 |
| | | | | We'll use it later in gtkwidget.c | ||||
* | css: Add transform style property | Timm Bäder | 2019-02-14 | 2 | -1/+9 |
| | |||||
* | Add flipping test | Timm Bäder | 2019-02-14 | 2 | -0/+210 |
| | |||||
* | widget: Fix queue_allocate on transformed widgets | Timm Bäder | 2019-02-14 | 1 | -1/+5 |
| | | | | | If we just use gtk_widget_size_allocate here, we lose previously set transformations. | ||||
* | Add shrinking test case | Timm Bäder | 2019-02-14 | 2 | -0/+185 |
| | |||||
* | gl renderer: Remove an incorrect comment | Timm Bäder | 2019-02-14 | 1 | -5/+3 |
| | | | | Quite some other nodes use more than one quad these days. | ||||
* | gl renderer: Flip the framebuffer when dumping it | Timm Bäder | 2019-02-14 | 1 | -3/+14 |
| | |||||
* | gl renderer: Fix offscreen-drawn transform nodes | Timm Bäder | 2019-02-14 | 1 | -16/+35 |
| | | | | | | We need to vertically flip them if they are indeed drawn offscreen, like everything else. Also use the child bounds for the offscreen texture, because that's what we draw offscreen. | ||||
* | testwidgettransforms: Set transformation in size_allocate | Timm Bäder | 2019-02-14 | 1 | -56/+34 |
| | |||||
* | widget: Only push a transform if we need to | Timm Bäder | 2019-02-14 | 2 | -2/+11 |
| | |||||
* | testwidgettransforms: Add toggle for picking | Timm Bäder | 2019-02-14 | 1 | -3/+28 |
| | |||||
* | Add size_allocate_transformed to the docs | Timm Bäder | 2019-02-14 | 2 | -0/+13 |
| | |||||
* | testformentry: Pass transform in size_allocate | Timm Bäder | 2019-02-14 | 1 | -10/+10 |
| | |||||
* | compute_bounds: Add preconditions | Timm Bäder | 2019-02-14 | 1 | -0/+4 |
| | |||||
* | testsuite: Fix translate test for size_allocate changes | Timm Bäder | 2019-02-14 | 1 | -3/+4 |
| | | | | | gtk_widget_set_transform is still a hack that will eventually go away but it's also still useful for testing. | ||||
* | widget: Handle position in transformation matrix | Timm Bäder | 2019-02-14 | 4 | -184/+246 |
| | | | | Most unoptimized version so far. | ||||
* | Add form entry test | Timm Bäder | 2019-02-14 | 2 | -0/+230 |
| | |||||
* | tests: Add some transform test with CSS values | Timm Bäder | 2019-02-14 | 2 | -47/+72 |
| | |||||
* | widget: Fix translate_coordinates for CSS values | Timm Bäder | 2019-02-14 | 2 | -28/+70 |
| | | | | | As well as compute_bounds. In these cases, we need to consider the CSS values (margin, border padding) specially. | ||||
* | widget Add gtk_widget_get_transform | Timm Bäder | 2019-02-14 | 2 | -0/+15 |
| | |||||
* | Add test for widget transforms | Timm Bäder | 2019-02-14 | 2 | -0/+344 |
| | |||||
* | Add picking/translation/compute_bounds unit tests | Timm Bäder | 2019-02-14 | 2 | -0/+398 |
| | |||||
* | widget: Consider widget transformations in translate_coordinatesf | Timm Bäder | 2019-02-14 | 1 | -13/+16 |
| | |||||
* | widget: Look at transform in compute_bounds | Timm Bäder | 2019-02-14 | 1 | -20/+66 |
| | | | | | We now return an axis-aligned bounding box for the given widget, in the coordinate space of the target widget. | ||||
* | widget: Make translate_coordinatesf public | Timm Bäder | 2019-02-14 | 2 | -7/+8 |
| | |||||
* | widget: Don't use compute_bounds in _real_contains | Timm Bäder | 2019-02-14 | 1 | -46/+62 |
| | | | | | compute_bounds will look at the widget transformation and return an axis-aligned rectangle containing the given widget. | ||||
* | widget: Care about transformation in translate_coordinatesf | Timm Bäder | 2019-02-14 | 1 | -10/+39 |
| | |||||
* | widget: Use translate_coordinates in pick() | Timm Bäder | 2019-02-14 | 1 | -3/+4 |
| | | | | | In case converting the coordinate into the child coordinate space consists of more than just a translation. | ||||
* | widget: Add gtk_widget_set_transform | Timm Bäder | 2019-02-14 | 2 | -0/+13 |
| | | | | | This might not stay until the end but for now it's good enough to test widget transforms. | ||||
* | widget: Push transform node when neccessary | Timm Bäder | 2019-02-14 | 1 | -1/+8 |
| | |||||
* | widget: Add transform matrix | Timm Bäder | 2019-02-14 | 2 | -0/+4 |
| | | | | Unused for now. | ||||
* | assistant: Add a pages property | Matthias Clasen | 2019-02-13 | 2 | -1/+114 |
| | | | | | This is mainly useful to make the page objects accessible in the inspector. | ||||
* | Exempt "pages" properties from defaultvalue test | Matthias Clasen | 2019-02-13 | 1 | -1/+6 |
| | | | | | | | Ironically, these properties are too good - they always give you a proper value, which is unfortunately different from the declared default value, which is NULL. So, don't check these. | ||||
* | inspector: Support list model properties | Matthias Clasen | 2019-02-13 | 1 | -0/+56 |
| | | | | | This is just a very quick hack for a property editor that allows to drill down into list models. | ||||
* | stack: Add a pages property | Matthias Clasen | 2019-02-13 | 1 | -0/+8 |
| | | | | This makes the list model available in the inspector. | ||||
* | inspector: Make object property inspection work again | Matthias Clasen | 2019-02-13 | 1 | -0/+1 |
| | | | | This was lost when porting to GtkListView. | ||||
* | inspector: Add an api to activate an object | Matthias Clasen | 2019-02-13 | 2 | -1/+11 |
| | | | | | | | | This will be used to make object property inspection work again. This will be used to make object property inspection work againn | ||||
* | inspector: Fix selecting objects with a next tab | Matthias Clasen | 2019-02-13 | 2 | -2/+2 |
| | | | | This was causing criticals. | ||||
* | Add a missing icon | Matthias Clasen | 2019-02-13 | 5 | -2/+0 |
| | | | | | | The view-refresh-symbolic icon is used in the data list of the inspector. So ship it in gtk. No need to have it in the demos, then. | ||||
* | stack: Don't emit bad ::selection-changed signals | Matthias Clasen | 2019-02-13 | 1 | -5/+14 |
| | | | | | | We have to be careful to not pass bad numbers to this signal, which was happening in cases where we have on old or new selected item. | ||||
* | stack: Fix a corner-case | Matthias Clasen | 2019-02-13 | 1 | -3/+0 |
| | | | | | | When the stack goes empty, we were failing to reset the visible_child member to NULL, causing problems later on, since we don't have a ref for it. | ||||
* | stack: Don't leak a reference | Matthias Clasen | 2019-02-13 | 1 | -1/+1 |
| | | | | | The page holds a reference to the widget, so can't just clear this pointer. |