Skip to content

Commit

Permalink
Related to 7027dd0, just link to the online user guide.
Browse files Browse the repository at this point in the history
The incomplete bundled help was removed in 7027dd0

Fixes: 778981
  • Loading branch information
cameronwhite committed Jul 29, 2020
1 parent 7027dd0 commit 255e0ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
21 changes: 1 addition & 20 deletions Pinta.Core/Actions/HelpActions.cs
Expand Up @@ -82,26 +82,7 @@ private void Bugs_Activated (object sender, EventArgs e)

private void DisplayHelp (object sender, EventArgs e)
{
if (SystemManager.GetOperatingSystem() == OS.X11)
{
// Search for help files in the user's preferred language.
var help_dir = Path.Combine (SystemManager.GetDataRootDirectory (), "help");
var langs = PintaCore.System.GetLanguageNames ();

foreach (var lang in langs)
{
string path = Path.Combine (Path.Combine (help_dir, lang), "pinta");
if (Directory.Exists (path))
{
OpenUrl (string.Format ("ghelp://{0}", path));
return;
}
}
}

// TODO - update this link if we make HTML documentation available
// online, or install it with Pinta.
OpenUrl ("https://pinta-project.com/howto");
OpenUrl ("https://pinta-project.com/user-guide");
}

private void Translate_Activated (object sender, EventArgs e)
Expand Down
11 changes: 0 additions & 11 deletions Pinta.Core/Managers/SystemManager.cs
Expand Up @@ -146,17 +146,6 @@ public T[] GetExtensions<T> ()
return AddinManager.GetExtensionObjects<T> ();
}

/// <summary>
/// Return a list of applicable locale names, ordered from most desirable to least desirable.
/// </summary>
public string[] GetLanguageNames ()
{
return GLib.Marshaller.NullTermPtrToStringArray (g_get_language_names (), false);
}

[DllImport ("glib-2.0.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr g_get_language_names ();

//From Managed.Windows.Forms/XplatUI
[DllImport ("libc")]
static extern int uname (IntPtr buf);
Expand Down

0 comments on commit 255e0ae

Please sign in to comment.