]> Dogcows Code - chaz/openbox/blobdiff - openbox/popup.c
add window placement routines to the kernel
[chaz/openbox] / openbox / popup.c
index cc4a605d42e419a320f962b9ff4144c8062e1f34..d44a59d162c0415d38dc80e3904b58a269d17c41 100644 (file)
@@ -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;
@@ -119,7 +127,7 @@ void popup_show(Popup *self, gchar *text, ObClientIcon *icon)
     if (!self->a_bg)
         self->a_bg = RrAppearanceCopy(ob_rr_theme->app_hilite_bg);
     if (self->hasicon && !self->a_icon)
-        self->a_icon = RrAppearanceCopy(ob_rr_theme->app_icon);
+        self->a_icon = RrAppearanceCopy(ob_rr_theme->a_clear_tex);
     if (!self->a_text)
         self->a_text = RrAppearanceCopy(ob_rr_theme->app_hilite_label);
 
This page took 0.021116 seconds and 4 git commands to generate.