Guest User

Untitled

a guest
Dec 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. fn render_desktops(desktops_list: Vec<String>) -> gtk::Box {
  2. let desktops_box = gtk::Box::new(Horizontal, 0);
  3. let attr_list = pango::AttrList::new();
  4. for desktop in desktops_list {
  5. let label_desktop = gtk::Label::new(desktop);
  6. label_desktop.set_attributes(&attr_list);
  7. desktops_box.add(&label_desktop);
  8. }
  9. return desktops_box
  10.  
  11. }
Add Comment
Please, Sign In to add comment