FSpot.MainWindow.HandleTagSizeChange C# (CSharp) Method

HandleTagSizeChange() public method

public HandleTagSizeChange ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void
		void HandleTagSizeChange (object sender, EventArgs args)
		{
			RadioAction choice = sender as RadioAction;

			//Get this callback twice. Once for the active going menuitem,
			//once for the inactive leaving one. Ignore the inactive.
			if (!choice.Active)
				return;

			int old_size = TagsIconSize;

			if (choice == tag_icon_hidden) {
				TagsIconSize = (int)Tag.IconSize.Hidden;
			} else if (choice == tag_icon_small) {
				TagsIconSize = (int)Tag.IconSize.Small;
			} else if (choice == tag_icon_medium) {
				TagsIconSize = (int)Tag.IconSize.Medium;
			} else if (choice == tag_icon_large) {
				TagsIconSize = (int)Tag.IconSize.Large;
			} else {
				return;
			}

			if (old_size != TagsIconSize) {
				tag_selection_widget.ColumnsAutosize ();
				if (photo_view != null)
					photo_view.UpdateTagView ();
				Preferences.Set (Preferences.TAG_ICON_SIZE, TagsIconSize);
			}
		}
MainWindow