umpirsky
umpirsky

Reputation: 10024

GtkLabel alignment and padding

I have GtkLabel in Glade with X align set to 0, X pad set to 5, Expand set to No.

Label is located under horizontal box together with spin button and another label.

The problem is that X pad is applied to both, left and right side.

I want it to be applied only to right side.

What am I doing wrong?

Upvotes: 1

Views: 2947

Answers (1)

jcollado
jcollado

Reputation: 40374

Xpad is applied to both left and right.

Glade 3.10

If you just want to have a margin on the right, then change Margin on the right available in the Common tab:

enter image description here

Glade 3.8

Right click on the GtkLabel widget and select Add Parent->Alignment. Click in the GtkAlignment widget and set RightPadding to the desired value.

enter image description here

Upvotes: 5

Related Questions