~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-04 13:40:36 UTC
  • Revision ID: eco.stefi@fastwebnet.it-20120704134036-jzxry23ch4in5o80
Implemented packages list via Database, listing works and is fast!

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 Button back;
 
25
        public ToolButton back;
26
26
        public Button label;
27
27
        public SearchBar searchbar;
28
28
        
44
44
            
45
45
            Box button_b = new Box(Orientation.HORIZONTAL, 0);
46
46
            
47
 
            back = new Button();
48
 
            back.image = new Image.from_stock(Stock.GO_BACK, IconSize.BUTTON);
49
 
            back.can_focus = false;
 
47
            back = new ToolButton.from_stock (Stock.GO_BACK);
50
48
            label = new Button.with_label(PageType.HOMEPAGE.to_string());
51
49
            label.can_focus = false;
52
50
            label.valign = Align.CENTER;
54
52
            back.valign = Align.CENTER;
55
53
            back.vexpand = false;
56
54
            
57
 
            button_b.pack_start(back, false, false, 0);
 
55
            insert (back, -1);
58
56
            button_b.pack_start(label, false, false, 0);
59
57
            insert_with_tool(button_b, -1);
60
58