- textw = RrMinWidth(self->a_text);
- if (self->hasicon) {
- gint texth = RrMinHeight(self->a_text) + ob_rr_theme->paddingy * 2;
- iconw = texth;
- } else
- iconw = 0;
- self->w = textw + iconw + ob_rr_theme->paddingx * (self->hasicon ? 3 : 2);
- /* cap it at "max" */
- if (max > 0)
- self->w = MIN(self->w, max);