projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bcffde1
)
Center text in pager popup and make it at least as wide as it is high.
author
Mikael Magnusson
<mikachu@gmail.com>
Sun, 28 Sep 2008 20:05:25 +0000
(22:05 +0200)
committer
Mikael Magnusson
<mikachu@gmail.com>
Sat, 11 Oct 2014 00:17:18 +0000
(
02:17
+0200)
openbox/popup.c
patch
|
blob
|
history
diff --git
a/openbox/popup.c
b/openbox/popup.c
index
5ecf2fa
..
063fb1f
100644
(file)
--- a/
openbox/popup.c
+++ b/
openbox/popup.c
@@
-217,6
+217,9
@@
void popup_delay_show(ObPopup *self, gulong msec, gchar *text)
emptyx = emptyy = 0;
}
emptyx = emptyy = 0;
}
+ if (texth > textw) textw = texth;
+ popup_set_text_align(self, RR_JUSTIFY_CENTER);
+
w = textw + emptyx + iconw;
/* cap it at maxw/minw */
if (self->maxw) w = MIN(w, self->maxw);
w = textw + emptyx + iconw;
/* cap it at maxw/minw */
if (self->maxw) w = MIN(w, self->maxw);