comparison libmlk-ui/mlk/ui/notify.c @ 487:f2d3c5a97884

ui: align -> mlk_align
author David Demelier <markand@malikania.fr>
date Tue, 28 Feb 2023 13:08:58 +0100
parents 3ff1fe64d0cd
children 734b598534c4
comparison
equal deleted inserted replaced
486:d6757c30658e 487:f2d3c5a97884
82 if (n->icon->h >= HEIGHT) { 82 if (n->icon->h >= HEIGHT) {
83 mlk_tracef("notification icon is too large: %u > %u", n->icon->h, HEIGHT); 83 mlk_tracef("notification icon is too large: %u > %u", n->icon->h, HEIGHT);
84 geo->icon_x = x + geo->theme->padding; 84 geo->icon_x = x + geo->theme->padding;
85 geo->icon_y = y + geo->theme->padding; 85 geo->icon_y = y + geo->theme->padding;
86 } else { 86 } else {
87 align(ALIGN_LEFT, &geo->icon_x, &geo->icon_y, n->icon->w, n->icon->h, x, y, WIDTH, HEIGHT); 87 mlk_align(MLK_ALIGN_LEFT, &geo->icon_x, &geo->icon_y, n->icon->w, n->icon->h, x, y, WIDTH, HEIGHT);
88 geo->icon_x += geo->icon_y - y; 88 geo->icon_x += geo->icon_y - y;
89 } 89 }
90 90
91 /* Align title to the right of the icon at the same y coordinate. */ 91 /* Align title to the right of the icon at the same y coordinate. */
92 geo->title_x = geo->icon_x + n->icon->w + geo->theme->padding; 92 geo->title_x = geo->icon_x + n->icon->w + geo->theme->padding;