Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,430
    • Issues 1,430
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 244
    • Merge requests 244
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & 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
  • GNOME
  • gtkgtk
  • Issues
  • #3880

Closed
Open
Created Apr 19, 2021 by Adrien Plazas@aplazasDeveloper

Rework alignment

GtkAlign has four values:

  • start
  • right
  • end
  • fill

It's all good until you want to express a start or end alignment while the widget is filling all its allocation. This is usefull mostly in transitions, e.g. to adjust the position of children in a non-homogeneous GtkStack. AdwSqueezer and GtkLabel work around the issue by having xalign and yalign properties, to let their users refine how they want the content to fill its allocated space.

The heart of the issue I think is that filling isn't an alignment, it's at best its absence, and at worst a completely different concept. What about dropping GTK_ALIGN_FILL and instead give GtkWidget a fill property? That would avoid the aforementionned workarounds. Maybe we could drop GtkAlign completely and have a 0–1 value like for xalign too, if judged relevant.

Assignee
Assign to
Time tracking