Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 852
    • Issues 852
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2738

liststore: add n-items property

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Benjamin Otte requested to merge wip/otte/liststore-properties into main Jun 08, 2022
  • Overview 5
  • Commits 4
  • Pipelines 3
  • Changes 3

The use case here is a desire by people to create bindings in UI files of listmodel's item counts to other things.

The main example is checking n-items == 0 to display a getting started placeholder or to hide expander icons if the child model is empty.

I intend to add the same property all the listmodels in GTK.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/otte/liststore-properties