summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'listview-factory-leak' into 'main'HEADmainBenjamin Otte2023-05-172-0/+5
|\ | | | | | | | | listview: Don't leak the factories See merge request GNOME/gtk!5989
| * gridview: Don't leak the factoryMatthias Clasen2023-05-171-0/+2
| |
| * listview: Don't leak the factoriesMatthias Clasen2023-05-171-0/+3
|/
* Merge branch 'fix-gridview-critical' into 'main'Benjamin Otte2023-05-171-1/+7
|\ | | | | | | | | | | | | gridview: GC tiles first Closes #5836 See merge request GNOME/gtk!5988
| * gridview: GC tiles firstMatthias Clasen2023-05-171-1/+7
|/ | | | | | | | Before checking that there are no tiles, we need to gc any possibly leftover filler tiles. Fixes: #5836
* Merge branch 'pathbar-early-return-on-cancellation' into 'main'Matthias Clasen2023-05-171-1/+11
|\ | | | | | | | | | | | | pathbar: Fail setting the path on cancellation Closes #5792 See merge request GNOME/gtk!5982
| * pathbar: Fail setting the path on cancellationOlivier Crête2023-05-171-1/+11
| | | | | | | | | | | | | | | | The cancellation path already clears the GCancellable, if we let it continue, it causes a later assertion, so just exit early in this case and hope a new path has been set. Fixes: #5792
* | Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-05-178-122/+180
|\ \ | | | | | | | | | | | | Reduce pixbuf helpers See merge request GNOME/gtk!5984
| * | Rename pixbuf utils to texture utilsMatthias Clasen2023-05-168-7/+7
| | | | | | | | | | | | That is what this is now.
| * | Reduce pixbuf helpersMatthias Clasen2023-05-165-115/+173
|/ / | | | | | | Concentrate pixbuf handling in gdkpixbufutils.c.
* | Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-05-174-4/+11
|\ \ | | | | | | | | | | | | gsk: Cosmetics See merge request GNOME/gtk!5983
| * | gsk: Don't build unused functionsMatthias Clasen2023-05-162-2/+2
| | | | | | | | | | | | | | | The only caller is #if 0 ed, so don't build these functions.
| * | gsk: CosmeticsMatthias Clasen2023-05-161-1/+1
| | | | | | | | | | | | Get the context from the driver.
| * | Improve test coverage for property lookup modelsMatthias Clasen2023-05-161-1/+8
| | |
* | | Merge branch 'gl-renderer-more-defensive' into 'main'Matthias Clasen2023-05-173-872/+948
|\ \ \ | | | | | | | | | | | | | | | | gsk: Stop setting uniforms when we are out of batches See merge request GNOME/gtk!5981
| * | | gsk: Stop setting uniforms when we are out of batchesMatthias Clasen2023-05-163-872/+948
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | When the command queue is out of batches, there is no point in doing further work like allocating uniforms. This helps us avoid assertions in the uniform code that we would hit when we run out of uniform space too.
* | | Merge branch 'wip/otte/ci-emergency' into 'main'Benjamin Otte2023-05-175-1091/+1
|\ \ \ | |/ / |/| | | | | | | | CI: Actually build our code See merge request GNOME/gtk!5980
| * | glrenderer: Remove unused functionBenjamin Otte2023-05-171-30/+0
| | | | | | | | | | | | | | | | | | Thanks, macos CI. (We should have a Fedora clang build.)
| * | tests: Remove some testsBenjamin Otte2023-05-173-1060/+0
| | | | | | | | | | | | | | | They are failing to build because they use deprecated functions and nobody thinks they're worth fixing.
| * | CI: Actually build our codeBenjamin Otte2023-05-171-1/+1
|/ / | | | | | | | | | | Commit 3090795351404735672c45a02a577a4e4bf67586 accidentally caused all CI builds (or at least the ones with -Werror) to no longer build tests, examples and demos, so none of them had made sure that they compile.
* | Merge branch 'fix-gsk-assertions' into 'main'Matthias Clasen2023-05-161-0/+4
|\ \ | | | | | | | | | | | | gsk: Fix a crash See merge request GNOME/gtk!5979
| * | gsk: Fix a crashMatthias Clasen2023-05-161-0/+4
|/ / | | | | | | | | | | When we start ignoring batches, we must do it everywhere, or we may run into assertions. This was triggered by an enormous text node tree produced by tests/rendernode-create.
* | Merge branch 'ebassi/issue-5837' into 'main'Matthias Clasen2023-05-1613-46/+90
|\ \ | | | | | | | | | | | | | | | | | | Fix various compiler warnings with GCC 13 Closes #5837 See merge request GNOME/gtk!5977
| * | Replace deprecated CSS loading APIEmmanuele Bassi2023-05-1611-31/+28
| | | | | | | | | | | | | | | Use gtk_css_provider_load_from_string() when loading CSS from C strings.
| * | Implement GtkSelectionModel for GtkNotebookPagesEmmanuele Bassi2023-05-161-5/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation says that the model returned by gtk_notebook_get_pages() implements the GtkSelectionModel interface, but checking the history confirms this is a lie. Instead of fixing the documentation, we can easily make it true, and reduce the differences between GtkNotebook and GtkStack. Fixes: #5837
| * | Fix various compiler warnings with GCC 13Emmanuele Bassi2023-05-161-10/+13
|/ / | | | | | | | | There are various null dereference warnings in GtkListItemManager that make the build noisy.
* | Merge branch 'no-deprecations-in-demos' into 'main'Matthias Clasen2023-05-163-24/+58
|\ \ | | | | | | | | | | | | demos: Stop using deprecated api See merge request GNOME/gtk!5978
| * | demos: Stop using deprecated apiMatthias Clasen2023-05-163-24/+58
| | | | | | | | | | | | Use texture apis instead of pixbuf ones.
* | | Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-05-163-16/+179
|\ \ \ | |/ / |/| | | | | | | | Matthiasc/for main See merge request GNOME/gtk!5975
| * | CosmeticsMatthias Clasen2023-05-161-2/+2
| | |
| * | Improve test coverage for sortersMatthias Clasen2023-05-161-14/+162
| | |
| * | Improve test coverage for GtkPropertyLookupListModelMatthias Clasen2023-05-161-0/+15
| | |
* | | Merge branch 'wip/otte/for-main' into 'main'Matthias Clasen2023-05-1624-40/+127
|\ \ \ | |/ / |/| | | | | | | | | | | | | | gdk: Clamp frame region to surface size Closes #5812 See merge request GNOME/gtk!5976
| * | nodeparser: Move an error checkBenjamin Otte2023-05-165-14/+15
| | | | | | | | | | | | By putting the check earlier, it will be emitted for the right token.
| * | node-editor: Print default renderer in titleBenjamin Otte2023-05-161-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | If there is a value passed to GSK_RENDERER, display it in the window title. This is mostly so that when I show off screenshots, people know what renderer I'm using.
| * | vulkan: Make projection matrix match GLBenjamin Otte2023-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vulkan has a different initial coordinate system to GL. GL: (-1, 1, -1) +------+. |`. | `. | `·--|---· | : | : +------+. : `. : `.: `·------· (1, -1, 1) Vulkan: (-1, -1, 0) +------+. |`. | `. | `·--|---· | : | : +------+. : `. : `.: `·------· (1, 1, 1) so adjust the near and far plane we pass to graphene_matrix_init_ortho() to make it end up with the same projection as the GL renderer.
| * | testsuite: Add crossfade-clip-both-children testBenjamin Otte2023-05-163-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This one tests a crossfade between two non-overlapping nodes with a clip region that covers neither of the two nodes. This tests that renderers can deal with clip regions that doesn't overlap nodes in a situation where they will most likely want to create an offscreen. As offscreens are typically clipped to the clip region, this would cause an empty offscreen and that can cause failures.
| * | testsuite: Add clip-translate-offscreen testBenjamin Otte2023-05-163-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | This was an experiment where an offscreen was translated inside an existing clip. Because renderers try to limit offscreens to the clip rect, this is interesting, because they might get the translation wrong.
| * | rendernode: clip when drawing shadowsBenjamin Otte2023-05-161-0/+6
| | | | | | | | | | | | Ensures the shadow stays small.
| * | build: Make shaders depend on their includesBenjamin Otte2023-05-161-7/+9
| | | | | | | | | | | | | | | | | | | | | This does not do any proper dependency tracking, it just makes every shader depend on every include shader. But that's good enough for now.
| * | vulkan: Fix typo in clipping codeBenjamin Otte2023-05-161-1/+1
| | |
| * | build: Add a new gcc 13 warningBenjamin Otte2023-05-161-0/+1
| | | | | | | | | | | | We don't trigger it and it's a useful warning. So let's use it.
| * | css: Remove crashy resource:// optimizationBenjamin Otte2023-05-164-15/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using gdk_texture_new_from_resource() is not valid here because we are not sure if the given resource is valid. Plus, the previous optimization is no longer relevant, because we are not using gdk_pixbuf_new_from_resource() anymore - which was what this optimization was about before it was ported to GdkTexture. Test attached.
| * | testsuite: Add testcase for z clippingBenjamin Otte2023-05-163-0/+29
| | | | | | | | | | | | | | | the near and far clipping plane are at -10000 and 10000 respectively. Test that the renderers respect that.
| * | gridview: Add border-spacing where it was missedBenjamin Otte2023-05-161-2/+2
| | | | | | | | | | | | | | | We were computing column widths without taking border-spacing into account, making them slightly too big.
| * | gdk: Clamp frame region to surface sizeBenjamin Otte2023-05-161-0/+6
|/ / | | | | | | | | | | | | The region may be larger than the surface's size, but many rendering APIs require the size to be clamped. Fixes #5812
* | Merge branch 'fix-property-lookup-model' into 'main'Matthias Clasen2023-05-161-2/+3
|\ \ | | | | | | | | | | | | Fix a few bugs in GtkPropertyLookupListModel See merge request GNOME/gtk!5974
| * | Fix a few bugs in GtkPropertyLookupListModelMatthias Clasen2023-05-161-2/+3
|/ / | | | | | | Fix bugs in property types.
* | Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-05-1614-132/+40
|\ \ | | | | | | | | | | | | gdk: Drop some unused private api See merge request GNOME/gtk!5973
| * | Improve test coverage for GtkStringSorterMatthias Clasen2023-05-151-0/+6
| | |