Skip to content

HeaderLabel: Expose label xalign property #977

@teamcons

Description

@teamcons

Problem

I cannot properly, fully center the placeholder text here. The wrap is done assuming the text is left-aligned, leaving the placeholder here strangely bungled

the style class being deprecated, it would be nifty to use headerlabel here, but it lacks the granularity of Gtk.Label

Image

Proposal

expose the base Gtk.Label xalign property for Granite.HeaderLabel
I suppose one could want the wrap property too to control how it is displayed

current workaround is to

var a = (Gtk.Label)placeholder.get_last_child ();
a.xalign = 0.5f;

Prior Art (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: WishlistNot a bug; but a new feature or enhancementgood first issueShould be solvable in a day or less by someone new

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions