center text in popups when the popu is sized to the text width
This commit is contained in:
parent
faab2f4400
commit
7736fcc4b6
1 changed files with 4 additions and 1 deletions
|
@ -183,8 +183,11 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
|
||||||
texth = self->h - emptyy;
|
texth = self->h - emptyy;
|
||||||
h = texth * self->iconhm + emptyy;
|
h = texth * self->iconhm + emptyy;
|
||||||
|
|
||||||
if (self->textw)
|
if (self->textw) {
|
||||||
|
self->a_text->texture[0].data.text.justify = RR_JUSTIFY_LEFT;
|
||||||
textw = self->textw;
|
textw = self->textw;
|
||||||
|
} else
|
||||||
|
self->a_text->texture[0].data.text.justify = RR_JUSTIFY_CENTER;
|
||||||
|
|
||||||
iconx = textx = l + ob_rr_theme->paddingx;
|
iconx = textx = l + ob_rr_theme->paddingx;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue