~unity-team/unity/latest-clutter-mutter-no-motion

« back to all changes in this revision

Viewing changes to targets/mutter/window-management.vala

  • Committer: jassmith at gmail
  • Date: 2010-07-20 12:59:01 UTC
  • Revision ID: jassmith@gmail.com-20100720125901-yzhqe503rz0gcc3a
Update for newest mutter

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
      this.plugin.window_unmaximized.connect (this.window_unmaximized);
35
35
      this.plugin.window_mapped.connect (this.window_mapped);
36
36
      this.plugin.window_destroyed.connect (this.window_destroyed);
37
 
      this.plugin.window_kill_effect.connect (this.window_kill_effect);
 
37
      this.plugin.kill_window_effects.connect (this.kill_window_effects);
38
38
    }
39
39
 
40
40
    construct
64
64
       */
65
65
      window.set_data (Maximus.user_unmaximize_hint, null);
66
66
 
67
 
      plugin.plugin.effect_completed (window, Mutter.PLUGIN_MAXIMIZE);
 
67
      plugin.plugin.maximize_completed (window);
68
68
    }
69
69
 
70
70
    private void window_unmaximized (Plugin        plugin,
82
82
      int i = 1;
83
83
      window.set_data (Maximus.user_unmaximize_hint, i.to_pointer ());
84
84
 
85
 
      plugin.plugin.effect_completed (window, Mutter.PLUGIN_UNMAXIMIZE);
 
85
      plugin.plugin.unmaximize_completed (window);
86
86
    }
87
87
 
88
88
    private void window_minimized (Plugin plugin, Mutter.Window window)
95
95
          type != Mutter.MetaWindowType.MENU
96
96
          )
97
97
        {
98
 
          this.plugin.plugin.effect_completed (window, Mutter.PLUGIN_MINIMIZE);
 
98
          this.plugin.plugin.minimize_completed (window);
99
99
          return;
100
100
        }
101
101
 
132
132
        return;
133
133
 
134
134
      window.hide ();
135
 
      this.plugin.plugin.effect_completed (window, Mutter.PLUGIN_MINIMIZE);
 
135
      this.plugin.plugin.minimize_completed (window);
136
136
    }
137
137
 
138
138
    private bool force_activate ()
159
159
          type != Mutter.MetaWindowType.MENU
160
160
          )
161
161
        {
162
 
          this.plugin.plugin.effect_completed (window, Mutter.PLUGIN_MAP);
 
162
          this.plugin.plugin.map_completed (window);
163
163
          return;
164
164
        }
165
165
 
209
209
        return;
210
210
 
211
211
      (window as Clutter.Actor).opacity = 255;
212
 
      this.plugin.plugin.effect_completed (window, Mutter.PLUGIN_MAP);
 
212
      this.plugin.plugin.map_completed (window);
213
213
    }
214
214
 
215
215
    private void window_destroyed (Plugin plugin, Mutter.Window window)
222
222
          type != Mutter.MetaWindowType.MENU
223
223
          )
224
224
        {
225
 
          this.plugin.plugin.effect_completed (window, Mutter.PLUGIN_DESTROY);
 
225
          this.plugin.plugin.destroy_completed (window);
226
226
          return;
227
227
        }
228
228
 
240
240
    {
241
241
      unowned Mutter.Window window = (Mutter.Window)anim.get_object ();
242
242
 
243
 
      this.plugin.plugin.effect_completed (window, Mutter.PLUGIN_DESTROY);
 
243
      this.plugin.plugin.destroy_completed (window);
244
244
    }
245
245
 
246
 
    private void window_kill_effect (Plugin        plugin,
247
 
                                     Mutter.Window window,
248
 
                                     ulong         events)
 
246
    private void kill_window_effects (Plugin        plugin,
 
247
                                      Mutter.Window window)
249
248
    {
250
249
     /* var anim = window.get_animation ();
251
250