~elementary-apps/pantheon-mail/simplify-toolbars

« back to all changes in this revision

Viewing changes to src/client/components/pill-toolbar.vala

  • Committer: Daniel Fore
  • Date: 2015-12-02 18:29:22 UTC
  • Revision ID: daniel@elementary.io-20151202182922-prhjqxvxdjnq2y1q
makr foreach clearer

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
     * toolbar.  Optionally adds spacers "before" and "after" the buttons (those terms depending
68
68
     * on Gtk.TextDirection)
69
69
     */
70
 
    public virtual Gtk.Box create_pill_buttons(Gee.Collection<Gtk.Button> buttons,
71
 
        bool before_spacer = true, bool after_spacer = false) {
 
70
    public virtual Gtk.Box create_pill_buttons (Gee.Collection<Gtk.Button> buttons, bool before_spacer = true, bool after_spacer = false) {
72
71
        Gtk.Box box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
73
72
        box.valign = Gtk.Align.CENTER;
74
73
        box.halign = Gtk.Align.CENTER;
77
76
            box.get_style_context().add_class(Gtk.STYLE_CLASS_LINKED);
78
77
        }
79
78
 
80
 
        foreach(Gtk.Button button in buttons)
 
79
        foreach(Gtk.Button button in buttons) {
81
80
            box.add(button);
 
81
        }
 
82
 
82
83
        return box;
83
84
    }
84
85
}