X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fpopup.c;h=0a9617098a3ef4add6e6169006d64610f6a442fe;hb=79e189dbac9ec5ae5baed26515ee60b8dce9a079;hp=cc4a605d42e419a320f962b9ff4144c8062e1f34;hpb=35418ca0fcd3fd28ef579f4435b8bad3b7c87f04;p=chaz%2Fopenbox diff --git a/openbox/popup.c b/openbox/popup.c index cc4a605d..0a961709 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -109,6 +109,14 @@ void popup_size_to_string(Popup *self, gchar *text) self->w = textw + iconw + ob_rr_theme->bevel * (self->hasicon ? 3 : 2); } +void popup_set_text_align(Popup *self, RrJustify align) +{ + if (!self->a_text) + self->a_text = RrAppearanceCopy(ob_rr_theme->app_hilite_label); + + self->a_text->texture[0].data.text.justify = align; +} + void popup_show(Popup *self, gchar *text, ObClientIcon *icon) { gint x, y, w, h;