self->x = self->y = self->textw = self->h = 0;
self->a_bg = RrAppearanceCopy(ob_rr_theme->osd_hilite_bg);
self->a_text = RrAppearanceCopy(ob_rr_theme->osd_hilite_label);
+ self->iconwm = self->iconhm = 1;
attrib.override_redirect = True;
self->bg = XCreateWindow(ob_display, RootWindow(ob_display, ob_screen),
h = self->h;
texth = h - emptyy;
} else
- h = texth + emptyy;
+ h = texth * self->iconhm + emptyy;
if (self->textw)
textw = self->textw;
emptyx = l + r + ob_rr_theme->paddingx * 2;
if (self->hasicon) {
- iconw = iconh = texth;
+ iconw = texth * self->iconwm;
+ iconh = texth * self->iconhm;
textx += iconw + ob_rr_theme->paddingx;
if (textw)
emptyx += ob_rr_theme->paddingx; /* between the icon and text */
popup_delay_show(self->popup, usec, text);
}
+void icon_popup_icon_size_multiplier(ObIconPopup *self, guint wm, guint hm)
+{
+ if (wm != 0) self->popup->iconwm = wm;
+ if (hm != 0) self->popup->iconhm = hm;
+}
+
static void pager_popup_draw_icon(gint px, gint py, gint w, gint h,
gpointer data)
{
popup_delay_show(self->popup, usec, text);
}
+
+void pager_popup_icon_size_multiplier(ObPagerPopup *self, guint wm, guint hm)
+{
+ if (wm != 0) self->popup->iconwm = wm;
+ if (hm != 0) self->popup->iconhm = hm;
+}