FSpot.MainWindow.UpdateGlass C# (CSharp) Method

UpdateGlass() public method

Keep the glass temporal slider in sync with the user's scrolling in the icon_view
public UpdateGlass ( ) : void
return void
		void UpdateGlass ()
		{
			// If people cant see the timeline don't update it.
			if (!display_timeline.Active)
				return;

			int cell_num = icon_view.TopLeftVisibleCell ();
			if (cell_num == -1 /*|| cell_num == lastTopLeftCell*/)
				return;

			IPhoto photo = icon_view.Collection [cell_num];
			/*
			 * FIXME this is a lame hack to get around a delegate chain.  This should
			 * actually operate directly on the adaptor not on the selector but I don't have
			 * time to fix it right now.
			 */
			if (!group_selector.GlassUpdating) {
				group_selector.SetPosition (group_selector.Adaptor.IndexFromPhoto (photo));
			}
		}
MainWindow