~nonamenoname/slingshot/fix-1084101

« back to all changes in this revision

Viewing changes to src/Widgets/AppEntry.vala

  • Committer: RabbitBot
  • Author(s): Corentin Noël
  • Date: 2014-03-13 20:30:47 UTC
  • mfrom: (407.1.3 gtk+-3.10)
  • Revision ID: rabbitbot-20140313203047-r7xz011rs52s1lok
Port forward to Gtk 3.10 for improved page switching and other benefits

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
    }
106
106
 
107
 
    public void fade_out () {
108
 
 
109
 
        Timeout.add (20, () => {
110
 
 
111
 
            if (alpha <= 0.3) {
112
 
                queue_draw ();
113
 
                return false;
114
 
            }
115
 
 
116
 
            alpha -= 0.05;
117
 
            queue_draw ();
118
 
            return true;
119
 
 
120
 
        });
121
 
 
122
 
    }
123
 
 
124
 
    public void fade_in () {
125
 
 
126
 
        Timeout.add (20, () => {
127
 
 
128
 
            if (alpha == 1.0) {
129
 
                queue_draw ();
130
 
                return false;
131
 
            }
132
 
 
133
 
            alpha += 0.05;
134
 
            queue_draw ();
135
 
            return true;
136
 
 
137
 
        });
138
 
 
139
 
    }
140
 
 
141
107
    public void launch_app () {
142
108
        application.launch ();
143
109
        app_launched ();
144
110
    }
145
 
}
 
111
}
 
 
b'\\ No newline at end of file'