public StashManagerDialog (GitRepository repo) { this.Build (); stashes = repo.GetStashes (); store = new ListStore (typeof(Stash), typeof(string), typeof(string)); list.Model = store; list.AppendColumn (GettextCatalog.GetString ("Date/Time"), new CellRendererText (), "text", 1); list.AppendColumn (GettextCatalog.GetString ("Comment"), new CellRendererText (), "text", 2); Fill (); TreeIter it; if (store.GetIterFirst (out it)) list.Selection.SelectIter (it); UpdateButtons (); }
public StashManagerDialog (GitRepository repo) { this.Build (); this.UseNativeContextMenus (); repository = repo; stashes = repo.GetStashes (); store = new ListStore (typeof(Stash), typeof(string), typeof(string)); list.Model = store; list.SearchColumn = -1; // disable the interactive search list.AppendColumn (GettextCatalog.GetString ("Date/Time"), new CellRendererText (), "text", 1); list.AppendColumn (GettextCatalog.GetString ("Comment"), new CellRendererText (), "text", 2); Fill (); TreeIter it; if (store.GetIterFirst (out it)) list.Selection.SelectIter (it); UpdateButtons (); list.Selection.Changed += delegate { UpdateButtons (); }; }