Ejemplo n.º 1
0
    void OnSelectionChanged(object o, EventArgs args)
    {
        TreeIter  iter;
        TreeModel model;

        TreeSelection treeSelection = o as TreeSelection;
        int           count         = treeSelection.CountSelectedRows();

        if (count == 0 || count > 1)
        {
            changesetDetailView.Clear();
            changesetDiffView.Clear();
            return;
        }

        TreePath[] paths = treeSelection.GetSelectedRows(out model);
        foreach (TreePath path in paths)
        {
            model.GetIter(out iter, path);
            currentCid = Convert.ToInt32(model.GetValue(iter, 0));
        }

        IChangesetViewChild child = viewChildren.CurrentPageWidget as IChangesetViewChild;

        UpdateChildCid(child);
    }
Ejemplo n.º 2
0
    public void OnSwitchPage(object o, SwitchPageArgs args)
    {
        if (currentCid == 0)
        {
            return;
        }
        IChangesetViewChild child = viewChildren.GetNthPage((int)args.PageNum) as IChangesetViewChild;

        UpdateChildCid(child);
    }
Ejemplo n.º 3
0
 protected void UpdateChildCid(IChangesetViewChild child)
 {
     if (child == null)
     {
         return;
     }
     GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Watch);
     child.UpdateCid(currentCid);
     GdkWindow.Cursor = null;
 }
Ejemplo n.º 4
0
 protected void UpdateChildCid(IChangesetViewChild child)
 {
     if (child == null) return;
     GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Watch);
     child.UpdateCid(currentCid);
     GdkWindow.Cursor = null;
 }