aboutsummaryrefslogtreecommitdiff
path: root/src/session-list.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-list.vala')
-rw-r--r--src/session-list.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/session-list.vala b/src/session-list.vala
index 047b86e..eef234b 100644
--- a/src/session-list.vala
+++ b/src/session-list.vala
@@ -79,6 +79,8 @@ public class SessionList : GreeterList
private SessionPrompt prompt;
+ private const int BADGE_SIZE = 22;
+
public SessionList (Background bg, MenuBar mb, string? session, string? default_session)
{
Object (background: bg, menubar: mb, session: session, default_session: default_session);
@@ -227,7 +229,8 @@ public class SessionList : GreeterList
{
try
{
- pixbuf = new Gdk.Pixbuf.from_file (Path.build_filename (Config.PKGDATADIR, name, null));
+ pixbuf = new Gdk.Pixbuf.from_file_at_size (Path.build_filename (Config.PKGDATADIR, name, null),
+ BADGE_SIZE * _scale_factor, BADGE_SIZE * _scale_factor);
badges.insert (name, pixbuf);
}
catch (Error e)