~lubuntu-software-center-team/light-software-center/trunk

« back to all changes in this revision

Viewing changes to src/Widgets/Boxes.vala

  • Committer: Stephen Smally
  • Date: 2012-08-02 10:29:41 UTC
  • Revision ID: eco.stefi@fastwebnet.it-20120802102941-94fvjygw5pt7war0
Visual fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
using Cairo;
4
4
 
5
5
namespace Lsc.Widgets {
6
 
        public class BlankBox : EventBox {
 
6
    public class BlankBox : EventBox {
7
7
        private Cairo.Context cr;
8
8
        private Box container;
9
9
        
17
17
        }
18
18
        
19
19
        public void show_children () {
20
 
                        container.foreach((c) => {
21
 
                                c.set_visible (true);
22
 
                        });
23
 
                }
 
20
            container.foreach((c) => {
 
21
                c.set_visible (true);
 
22
            });
 
23
        }
24
24
        
25
25
        public void hide_children () {
26
 
                        container.foreach((c) => {
27
 
                                c.set_visible (false);
28
 
                        });
29
 
                }
 
26
            container.foreach((c) => {
 
27
                c.set_visible (false);
 
28
            });
 
29
        }
30
30
        
31
31
        public void pack_start (Widget widget, bool expand, bool fill, int space) {
32
32
            container.pack_start(widget, expand, fill, space);
92
92
            } else {
93
93
                color = { 0.8, 0.8, 0.8, 1 };
94
94
                res = true;
95
 
                        }
 
95
            }
96
96
            
97
97
            if (res == false) {
98
98
                color = { 0, 0, 0, 0 };
128
128
            base.size_allocate (allocation);
129
129
        }
130
130
    }
131
 
 }
 
131
}