Commit 76e9bd56 authored by Benoît Minisini's avatar Benoît Minisini
Browse files

Don't call graphical methods during the wiki search background task, it can crash the GTK+ toolkit.

[DEVELOPMENT ENVIRONMENT]
* BUG: Help browser: Don't call graphical methods during the wiki search background task, it can crash the GTK+ toolkit.
* NEW: Help browser: The search result are now sorted.
parent 261dd42c
Pipeline #337332303 passed with stage
in 23 minutes and 57 seconds
......@@ -31,7 +31,7 @@ Component=gb.signal
Description="Integrated Development Environment for Gambas"
Authors="Benoît Minisini\nFabien Bodard\nCharlie Reinl\nJosé Luis Redrejo\nRobert Rowe\nTobias Boege"
Arguments=[["-L"],["-t","/home/benoit/gambas/git/master/app/src/gambas3"],["--help"]]
Environment="GB_GUI=gb.qt5\n GTK_DEBUG=interactive\nGB_NO_JIT=1"
Environment="GB_GUI=gb.gtk3\n GTK_DEBUG=interactive\nGB_NO_JIT=1"
TabSize=2
Translate=1
Language=en
......
......@@ -169,10 +169,12 @@ Public Sub Load()
Loaded = True
'Debug "Loading: "; Key;; "("; Documentation.Name; ")"
If Key <> CComponent.PROJECT_NAME Then
Project.SetMessage(Subst(("Loading information on component &1..."), Key))
Else
Project.SetMessage(("Loading information on project..."))
If Not Name Then
If Key <> CComponent.PROJECT_NAME Then
Project.SetMessage(Subst(("Loading information on component &1..."), Key))
Else
Project.SetMessage(("Loading information on project..."))
Endif
Endif
'If Key = Project.Name Then Goto HAS_BEEN_LOADED
......@@ -242,7 +244,7 @@ Public Sub Load()
If sClass Then cClass[sClass] = True
Next
Inc Application.Busy
If Project.NoWait = 0 Then Inc Application.Busy
Repeat
......@@ -435,7 +437,7 @@ Public Sub Load()
ClassList.Sort
Dec Application.Busy
If Project.NoWait = 0 Then Dec Application.Busy
HAS_BEEN_LOADED:
......
......@@ -20,6 +20,7 @@ Public Sub Main()
Dim sTitle As String
Application.Priority = 10
Inc Project.NoWait
sRoot = MHelp.GetOfflineDir() &/ "data" &/ MHelp.GetLanguage()
aDir.Add(sRoot)
......
......@@ -127,6 +127,7 @@
{ lstResult ListView
MoveScaled(3,11,25,10)
Expand = True
Sorted = True
Border = False
}
{ spnSearch Spinner
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment