113
|
1 // This file (GtkWarFoundryUtil.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2010 IBBoard
|
|
2 //
|
|
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
|
|
4 using System;
|
|
5 using IBBoard.WarFoundry.API.Objects;
|
|
6 using Gtk;
|
|
7 namespace IBBoard.WarFoundry.GUI.GTK.Util
|
|
8 {
|
|
9 public class GtkWarFoundryUtil
|
|
10 {
|
|
11 public static void RenderWarFoundryObjectName(TreeViewColumn column, CellRenderer cell, TreeModel model, TreeIter iter)
|
|
12 {
|
|
13 WarFoundryObject equip = (WarFoundryObject)model.GetValue(iter, 0);
|
|
14 (cell as CellRendererText).Text = equip.Name;
|
|
15 }
|
|
16 }
|
|
17 } |