~lubuntu-software-center-team/lubuntu-software-center/vala-port

« back to all changes in this revision

Viewing changes to src/Widgets/Toolbar.vala

  • Committer: Stephen Smally
  • Date: 2012-07-05 13:49:59 UTC
  • Revision ID: eco.stefi@fastwebnet.it-20120705134959-y5vg66cadej8vix1
Added mutable install/remove button

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    public class MainToolbar : Toolbar {
23
23
        // Widgets
24
24
        private ToolItem tool;
25
 
        public ToolButton back;
 
25
        public EventBox back;
26
26
        public Button label;
27
27
        public SearchBar searchbar;
28
28
        
55
55
            
56
56
            Box button_b = new Box(Orientation.HORIZONTAL, 0);
57
57
            
58
 
            back = new ToolButton.from_stock (Stock.GO_BACK);
 
58
            Image back_image = new Image.from_stock (Stock.GO_BACK, (IconSize) icon_size);
 
59
            back_image.margin = 5;
 
60
            back = new EventBox ();
 
61
            back.visible_window = false;
 
62
            back.add (back_image);
59
63
            label = new Button.with_label(PageType.HOMEPAGE.to_string());
60
64
            label.can_focus = false;
61
65
            label.valign = Align.CENTER;
63
67
            back.valign = Align.CENTER;
64
68
            back.vexpand = false;
65
69
            
66
 
            insert (back, -1);
 
70
            insert_with_tool (back, -1);
67
71
            button_b.pack_start(label, false, false, 0);
68
72
            insert_with_tool(button_b, -1);
69
73