Exemplo n.º 1
0
		void SetDiffCellData (Gtk.TreeViewColumn tree_column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter)
		{
			CellRendererDiff rc = (CellRendererDiff)cell;
			string[] lines = (string[])changedpathstore.GetValue (iter, colDiff);
			if (lines == null)
				lines = new string[] { (string)changedpathstore.GetValue (iter, colOperation) };
			rc.InitCell (treeviewFiles, changedpathstore.IterDepth (iter) != 0, lines, changedpathstore.GetPath (iter));
		}
Exemplo n.º 2
0
        void SetDiffCellData(Gtk.TreeViewColumn tree_column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter)
        {
            if (disposed)
            {
                return;
            }
            CellRendererDiff rc = (CellRendererDiff)cell;

            string[] lines = (string[])filestore.GetValue(iter, ColPath);
            TreePath path  = filestore.GetPath(iter);

            if (filestore.IterDepth(iter) == 0)
            {
                rc.InitCell(filelist, false, lines, path);
            }
            else
            {
                rc.InitCell(filelist, true, lines, path);
            }
        }
Exemplo n.º 3
0
        static void SetDiffCellData(Gtk.TreeViewColumn tree_column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter)
        {
            CellRendererDiff rc = (CellRendererDiff)cell;

            string[] lines = (string[])model.GetValue(iter, colDiff);
            if (lines == null)
            {
                lines = new string[] { (string)model.GetValue(iter, colOperation) }
            }
            ;

            rc.InitCell(tree_column.TreeView, ((TreeStore)model).IterDepth(iter) != 0, lines, model.GetPath(iter));
        }