~ubuntu-branches/ubuntu/precise/gnome-games/precise-proposed

« back to all changes in this revision

Viewing changes to glchess/src/chess-view.vala

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-05-30 13:32:04 UTC
  • mfrom: (1.3.4)
  • mto: (163.1.3 precise)
  • mto: This revision was merged to the branch mainline in revision 143.
  • Revision ID: package-import@ubuntu.com-20110530133204-celaq1v1dsxc48q1
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
public class ChessView : Gtk.DrawingArea
 
2
{
 
3
    private ChessScene _scene;
 
4
    public ChessScene scene
 
5
    {
 
6
        get { return _scene; }
 
7
        set
 
8
        {
 
9
            _scene = value;
 
10
            _scene.changed.connect (scene_changed_cb);
 
11
            queue_draw ();
 
12
        }
 
13
    }
 
14
 
 
15
    private void scene_changed_cb (ChessScene scene)
 
16
    {
 
17
        queue_draw ();
 
18
    }
 
19
}