Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,538
    • Issues 1,538
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 226
    • Merge requests 226
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Merge requests
  • !5166

Draft: WIP: enable type checking for ListModels

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Lorenz Wildberg requested to merge lwildberg/gtk:generics into main Oct 23, 2022
  • Overview 14
  • Commits 8
  • Pipelines 4
  • Changes 4

This adds some macros in demos/gtk-demo/generics.h, that can generate an API (at the moment for GListModel and GListStore) that is checked by the compiler for usage of the right types.

Also the code in demos/gtk/demo/dropdown.c was ported to it.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: generics