~nonamenoname/slingshot/fix-1084101

« back to all changes in this revision

Viewing changes to src/Widgets/Grid.vala

  • Committer: RabbitBot
  • Author(s): Corentin Noël
  • Date: 2014-01-14 13:05:03 UTC
  • mfrom: (396.1.1 slingshot)
  • Revision ID: rabbitbot-20140114130503-vl01yvhtdlu0dvs4
* Removed every using statement
* Changed VWidgets and HWidgets to Widgets with the corresponding orientation (Gtk deprecation)
* Ported Zeitgeist parts to version 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
//
18
18
 
19
 
using Gtk;
20
 
 
21
19
namespace Slingshot.Widgets {
22
20
 
23
21
    struct Page {
49
47
 
50
48
        }
51
49
 
52
 
        public void append (Widget widget) {
 
50
        public void append (Gtk.Widget widget) {
53
51
 
54
52
            update_position ();
55
53
 
76
74
 
77
75
        public void clear () {
78
76
 
79
 
            foreach (Widget widget in get_children ()) {
 
77
            foreach (Gtk.Widget widget in get_children ()) {
80
78
                if (widget.get_parent () != null)
81
79
                    remove (widget);
82
80
                widget.destroy ();
108
106
 
109
107
        public void fade_all_out () {
110
108
 
111
 
            foreach (Widget widget in get_children ()) {
 
109
            foreach (Gtk.Widget widget in get_children ()) {
112
110
                ((AppEntry) widget).fade_out ();
113
111
            }
114
112
 
116
114
 
117
115
        public void fade_all_in () {
118
116
 
119
 
            foreach (Widget widget in get_children ()) {
 
117
            foreach (Gtk.Widget widget in get_children ()) {
120
118
                ((AppEntry) widget).fade_in ();
121
119
            }
122
120
 
133
131
 
134
132
    }
135
133
 
136
 
}
 
134
}
 
 
b'\\ No newline at end of file'