Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar GTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar GTK
Commits
fecba717
Commit
fecba717
authored
6 years ago
by
Nico
Browse files
Options
Downloads
Patches
Plain Diff
Don't directly emit signal
GTK isn't thread safe. Therefore, I was experiencing race conditions.
parent
0ca1a099
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/briar/gtk/containers/startup.py
+2
-2
2 additions, 2 deletions
src/briar/gtk/containers/startup.py
with
2 additions
and
2 deletions
src/briar/gtk/containers/startup.py
+
2
−
2
View file @
fecba717
...
@@ -7,7 +7,7 @@ from briar.gtk.define import App
...
@@ -7,7 +7,7 @@ from briar.gtk.define import App
import
gi
import
gi
gi
.
require_version
(
'
Gtk
'
,
'
3.0
'
)
gi
.
require_version
(
'
Gtk
'
,
'
3.0
'
)
from
gi.repository
import
GObject
,
Gtk
from
gi.repository
import
GLib
,
GObject
,
Gtk
class
StartupContainer
(
Container
):
class
StartupContainer
(
Container
):
...
@@ -52,6 +52,6 @@ class StartupContainer(Container):
...
@@ -52,6 +52,6 @@ class StartupContainer(Container):
def
_startup_finished
(
self
,
succeeded
):
def
_startup_finished
(
self
,
succeeded
):
if
succeeded
:
if
succeeded
:
self
.
emit
(
"
briar_startup_completed
"
,
(
succeeded
,))
GLib
.
idle_add
(
self
.
emit
,
"
briar_startup_completed
"
,
(
succeeded
,))
return
return
print
(
"
Startup failed
"
)
print
(
"
Startup failed
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment