public EditGamesCollectionDialog (GameCollection col)
			{
				Glade.XML xml =
					Glade.XML.
					FromAssembly ("gamedb.glade",
						      "gamesCollectionDialog",
						      null);
				xml.Autoconnect (this);

				removeSelectedGamesButton.Clicked +=
					OnRemoveSelectedGamesButtonClicked;

				collectionGamesListWidget =
					new GamesListWidget ();
				gamesListBox.Add (collectionGamesListWidget);

				collectionGamesListWidget.View.SelectionMode =
					SelectionMode.Multiple;

				this.col = col;
				SetGamesCollection (col);
			}
            public GamesEditorDialog(ArrayList games,
						  ArrayList modifiedGames)
            {
                this.modifiedGames = modifiedGames;

                Glade.XML xml =
                    Glade.XML.
                    FromAssembly ("gamedb.glade",
                              "editGamesDialog",
                              null);
                xml.Autoconnect (this);

                ratingMap = new Hashtable ();

                /* Note: this order should match the order in the glade file */
                ratingValues = new GameRating[]
                {
                GameRating.Average,
                        GameRating.Good,
                        GameRating.Excellent,
                        GameRating.MustHave,
                        GameRating.Unknown,
                        GameRating.Ignore};

                int i = 0;
                foreach (GameRating r in ratingValues)
                {
                    ratingMap[r] = i++;
                }

                tagsStore = new ListStore (typeof (string));

                tagsListView.Model = tagsStore;
                gamesListWidget = new GamesListWidget ();
                gamesListBox.Add (gamesListWidget);

                gamesListWidget.SetGames (games);

                tagsListView.
                    AppendColumn (new
                              TreeViewColumn ("Tags",
                                      new
                                      CellRendererText
                                      (),
                                      "text",
                                      0));
                gamesListWidget.View.SelectionChanged +=
                    OnMoveCursor;
            }