]> Dogcows Code - chaz/openbox/commitdiff
center text in popups when the popu is sized to the text width
authorDana Jansens <danakj@orodu.net>
Tue, 5 Jun 2007 16:46:31 +0000 (16:46 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Jun 2007 16:46:31 +0000 (16:46 +0000)
openbox/popup.c

index 8fad26b4889702eb0e8bcac64e1af958b61afa3e..3924a4d164a5f45837e4dc6b664682dc35cbd4bb 100644 (file)
@@ -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;
 
This page took 0.026777 seconds and 4 git commands to generate.