summaryrefslogtreecommitdiff
path: root/plugins/python
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/cglimpse/panel.py6
-rw-r--r--plugins/python/scripting/core.py3
2 files changed, 7 insertions, 2 deletions
diff --git a/plugins/python/cglimpse/panel.py b/plugins/python/cglimpse/panel.py
index a195b0d..e2dc035 100644
--- a/plugins/python/cglimpse/panel.py
+++ b/plugins/python/cglimpse/panel.py
@@ -118,7 +118,8 @@ class CGlimpsePanel(PanelItem, UpdatablePanel):
assert(uid == 0)
- self.switch_to_updating_mask()
+ # Reduce the rendering concurrency between the GTK main loop and this thread
+ #self.switch_to_updating_mask()
def _process(self, uid, status, id, data):
@@ -137,7 +138,8 @@ class CGlimpsePanel(PanelItem, UpdatablePanel):
assert(uid == 0)
- self.switch_to_updated_content()
+ # Reduce the rendering concurrency between the GTK main loop and this thread
+ # self.switch_to_updated_content()
def _clean_data(self, uid, data):
diff --git a/plugins/python/scripting/core.py b/plugins/python/scripting/core.py
index ff912ed..135edb4 100644
--- a/plugins/python/scripting/core.py
+++ b/plugins/python/scripting/core.py
@@ -1,4 +1,7 @@
+import gi
+gi.require_version('Gtk', '3.0')
+
from gi.repository import GLib, Gtk
import os