~gala-dev/gala/mutter38

« back to all changes in this revision

Viewing changes to src/Widgets/WindowOverview.vala

  • Committer: Rico Tzschichholz
  • Date: 2013-11-27 18:50:56 UTC
  • Revision ID: ricotz@ubuntu.com-20131127185056-9g7x3zqxghkigps0
Use MT-safe Clutter.Threads.Timeout.add () instead of GLib.Timeout.add ()

Show diffs side-by-side

added added

removed removed

Lines of Context:
691
691
                        } else {
692
692
                                close (true);
693
693
                                //wait for the animation to finish before switching
694
 
                                Timeout.add (400, () => {
 
694
                                Clutter.Threads.Timeout.add (400, () => {
695
695
                                        window.get_workspace ().activate_with_focus (window, screen.get_display ().get_current_time ());
696
696
                                        return false;
697
697
                                });
726
726
#endif
727
727
                        
728
728
                        if (animate) {
729
 
                                Timeout.add (300, () => {
 
729
                                Clutter.Threads.Timeout.add (300, () => {
730
730
                                        visible = false;
731
731
                                        ready = true;
732
732