public PhotoImageView (IBrowsableCollection query) { loader = new FSpot.AsyncPixbufLoader (); loader.AreaUpdated += HandlePixbufAreaUpdated; loader.AreaPrepared += HandlePixbufPrepared; loader.Done += HandleDone; Accelerometer.OrientationChanged += HandleOrientationChanged; HandleRealized (null, null); this.SizeAllocated += HandleSizeAllocated; this.KeyPressEvent += HandleKeyPressEvent; //this.Realized += HandleRealized; this.Unrealized += HandleUnrealized; this.ScrollEvent += HandleScrollEvent; this.item = new BrowsablePointer (query, -1); item.Changed += PhotoItemChanged; this.Destroyed += HandleDestroyed; this.SetTransparentColor (this.Style.BaseColors [(int)Gtk.StateType.Normal]); }
public PhotoImageView (BrowsablePointer item) { loader = new FSpot.AsyncPixbufLoader (); loader.AreaUpdated += HandlePixbufAreaUpdated; loader.AreaPrepared += HandlePixbufPrepared; loader.Done += HandleDone; FSpot.ColorManagement.PhotoImageView = this; this.Transform = FSpot.ColorManagement.StandartTransform (); //for preview windows Accelerometer.OrientationChanged += HandleOrientationChanged; HandleRealized (null, null); this.SizeAllocated += HandleSizeAllocated; this.KeyPressEvent += HandleKeyPressEvent; //this.Realized += HandleRealized; this.Unrealized += HandleUnrealized; this.ScrollEvent += HandleScrollEvent; this.item = item; item.Changed += PhotoItemChanged; this.Destroyed += HandleDestroyed; this.SetTransparentColor (this.Style.BaseColors [(int)Gtk.StateType.Normal]); }