~manishsinha/scratch/move-to-zeitgeist2

« back to all changes in this revision

Viewing changes to src/Widgets/ToolBar.vala

  • Committer: Mario Guerriero
  • Date: 2013-08-06 15:21:11 UTC
  • Revision ID: mario@elementaryos.org-20130806152111-h8gtqzsadjgvyvws
moved template button to the toolbar, fixed browser-preview plugin toolbar button position

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    public class Toolbar : Gtk.Toolbar {
27
27
 
28
28
        public ToolButton open_button;
 
29
        public ToolButton templates_button;
29
30
        public ToolButton save_button;
30
31
        public ToolButton undo_button;
31
32
        public ToolButton repeat_button;
44
45
            // compliant with elementary HIG
45
46
            get_style_context ().add_class ("primary-toolbar");
46
47
 
47
 
            // Create ToolButtons
 
48
            // Create ToolButtons       
48
49
            open_button = main_actions.get_action ("Open").create_tool_item() as Gtk.ToolButton;
 
50
            templates_button = main_actions.get_action ("Templates").create_tool_item() as Gtk.ToolButton;
49
51
            save_button = main_actions.get_action ("SaveFile").create_tool_item() as Gtk.ToolButton;
50
52
            undo_button = main_actions.get_action ("Undo").create_tool_item() as Gtk.ToolButton;
51
53
            repeat_button = main_actions.get_action ("Redo").create_tool_item() as Gtk.ToolButton;
83
85
 
84
86
            // Add everything to the toolbar
85
87
            add (open_button);
 
88
            add (templates_button);
86
89
            add (save_button);
87
90
            add (new SeparatorToolItem ());
88
91
            add (revert_button);