Commit ccb12032 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

greeter: Add the le5 button to the login screen



The le5 button is now drawn at the corner of the login box.
Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent 8cf948bf
......@@ -1103,8 +1103,15 @@ public class UserList : Gtk.EventBox
Pango.cairo_show_layout (c, m.layout);
}
}
c.restore ();
c.save();
/* Draw le5 badge */
var le_badge_filename = "/usr/share/unity-greeter/le5_badge.png";
var image = new Gdk.Pixbuf.from_file(le_badge_filename);
c.translate(box_x-image.width/2+box_width*grid_size,box_y+6-image.width/2);
Gdk.cairo_set_source_pixbuf(c,image, 0,0);
c.paint();
c.restore();
}
private bool inside_entry (double x, double y, double entry_y, UserEntry entry)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment