Skip to content
GitLab
Projects Groups Topics 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1.6k
    • Issues 1.6k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 267
    • Merge requests 267
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • 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
  • Issues
  • #6099

Add `can-shrink` property to GtkDropDown

There is no easy way to ellipsize the label in GtkDropDown. Since GtkButton and GtkMenuButton have a can-shrink property, I believe it would be appropriate for GtkDropDown as well, since it's designed to work with strings by default.

Sometimes you have dropdowns with dynamic strings and they can be very long, and then the dropdown ends up taking too much horizontal space. See below for an example of GtkDropDown becoming too long when selecting an item with a long string.

Screencast_from_2023-09-16_09-52-23

Assignee
Assign to
Time tracking