~unity-team/unity/lucid

« back to all changes in this revision

Viewing changes to mutter-plugin/plugin.vala

  • Committer: Neil Jagdish Patel
  • Date: 2010-01-07 15:30:40 UTC
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: neil.patel@canonical.com-20100107153040-au5de29atawh3d6k
Some more fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    private Clutter.Stage    stage;
52
52
 
53
 
    private WindowManagement wm;
 
53
    private WindowManagement   wm;
 
54
 
 
55
    /* Unity Components */
54
56
    private Quicklauncher.View quicklauncher;
 
57
    private Places.View        places;
55
58
 
56
59
    construct
57
60
    {
58
 
      //string[] args = { "mutter" };
 
61
      string[] args = { "mutter" };
59
62
 
60
 
      //Ctk.init (ref args);
 
63
      Ctk.init_after (ref args);
61
64
      
62
65
      var app = new Unity.Application ();
63
66
    }
73
76
      this.quicklauncher.animate (Clutter.AnimationMode.EASE_IN_SINE, 400,
74
77
                                  "opacity", 255);
75
78
 
 
79
      this.places = new Places.View ();
 
80
      this.stage.add_actor (this.places);
 
81
 
76
82
      this.relayout ();
77
83
    }
78
84
 
83
89
      this.stage.get_size (out width, out height);
84
90
 
85
91
      this.quicklauncher.set_size (54, height-24);
86
 
      this.quicklauncher.set_position (0, 24); 
 
92
      this.quicklauncher.set_position (0, 24);
 
93
 
 
94
      this.places.set_size (width - 54, height -23);
 
95
      this.places.set_position (54, 23);
87
96
 
88
97
      this.plugin.set_stage_input_area (0, 24, 54, (int)(height - 24));
89
98
      //this.plugin.set_stage_input_region (uint region);