projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faab2f4
)
center text in popups when the popu is sized to the text width
author
Dana Jansens
<danakj@orodu.net>
Tue, 5 Jun 2007 16:46:31 +0000
(16:46 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 5 Jun 2007 16:46:31 +0000
(16:46 +0000)
openbox/popup.c
patch
|
blob
|
history
diff --git
a/openbox/popup.c
b/openbox/popup.c
index 8fad26b4889702eb0e8bcac64e1af958b61afa3e..3924a4d164a5f45837e4dc6b664682dc35cbd4bb 100644
(file)
--- a/
openbox/popup.c
+++ b/
openbox/popup.c
@@
-183,8
+183,11
@@
void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
texth = self->h - 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;
+ } else
+ self->a_text->texture[0].data.text.justify = RR_JUSTIFY_CENTER;
iconx = textx = l + ob_rr_theme->paddingx;