~elementary-apps/pantheon-mail/always-spellcheck

« back to all changes in this revision

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

  • Committer: RabbitBot
  • Author(s): Daniel Foré
  • Date: 2016-02-04 17:48:59 UTC
  • mfrom: (1954.1.3 pantheon-mail)
  • Revision ID: rabbitbot-20160204174859-a3zyyjadc51wn6nf
Composer Toolbar:
* Don't subclass PillToolbar

PillToolbar
* Remove now unused ToggleButton

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    }
54
54
 
55
55
    /**
56
 
     * Given an icon and action, creates a toggle button that triggers the action.
57
 
     */
58
 
    public virtual Gtk.Button create_toggle_button(string? icon_name, string action_name) {
59
 
        Gtk.ToggleButton b = new Gtk.ToggleButton();
60
 
        setup_button(b, icon_name, action_name);
61
 
 
62
 
        return b;
63
 
    }
64
 
 
65
 
    /**
66
56
     * Given a list of buttons, creates a "pill-style" tool item that can be appended to this
67
57
     * toolbar.  Optionally adds spacers "before" and "after" the buttons (those terms depending
68
58
     * on Gtk.TextDirection)