Пример #1
0
        private void HandlePixbufPrepared(object sender, AreaPreparedArgs args)
        {
            if (!ShowProgress)
            {
                return;
            }

            Gdk.Pixbuf prev = this.Pixbuf;
            Gdk.Pixbuf next = loader.Pixbuf;

            this.Pixbuf = next;
            if (prev != null)
            {
                prev.Dispose();
            }

            UpdateMinZoom();
            this.ZoomFit(args.ReducedResolution);
        }
		private void HandlePixbufPrepared (object sender, AreaPreparedArgs args)
		{
			if (!ShowProgress)
				return;

			Gdk.Pixbuf prev = this.Pixbuf;
			Gdk.Pixbuf next = loader.Pixbuf;

			this.Pixbuf = next;
			if (prev != null)
				prev.Dispose ();

			UpdateMinZoom ();
			this.ZoomFit (args.ReducedResolution);
		}