diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-09 04:56:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-09 04:56:12 +0000 |
| commit | 79e189dbac9ec5ae5baed26515ee60b8dce9a079 (patch) | |
| tree | 2fe7c44adc3b4976b01c46c8ae0f8ea66fafabf2 /openbox/popup.c | |
| parent | 356318b5621305c2124466fd60516459b1ffdb83 (diff) | |
changes to the timer api, pass the timer to the callback function.
add a desktop-switch popup with the desktop's name
Diffstat (limited to 'openbox/popup.c')
| -rw-r--r-- | openbox/popup.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
