/// <summary> /// /// </summary> /// <param name="index"> /// A <see cref="System.Int32"/> representing an index in the /// history, that can be relative or absolute depending on the relative argument /// </param> /// <param name="relative"> /// A <see cref="System.Boolean"/> indicating whether the index is relative to /// the current place in history or not (i.e., if relative = true, index can be /// positive or negative, and index=-1 means load the previous page in the history. /// if relative = false, index must be > -1, and index = 0 means load the first /// page of the history. /// </param> public void Go(int index, bool relative) { if (!relative) { Go(index); } else { if (!webview.CanGoBackOrForward(index)) { return; } Gdk.Threads.Enter(); webview.GoBackOrForward(index); Gdk.Threads.Leave(); } }