aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-python-extension.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-python-extension.c')
-rw-r--r--src/ephy-python-extension.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-python-extension.c b/src/ephy-python-extension.c
index 190327f73..a91ce3355 100644
--- a/src/ephy-python-extension.c
+++ b/src/ephy-python-extension.c
@@ -25,6 +25,7 @@
#include "config.h"
#include "ephy-python-extension.h"
+#include "ephy-python.h"
#include <pygobject.h>
@@ -254,7 +255,7 @@ impl_detach_tab (EphyExtension *extension,
{
call_python_func (extension, "detach_tab", window, tab);
- g_idle_add ((GSourceFunc) PyGC_Collect, NULL);
+ ephy_python_schedule_gc ();
}
static void
@@ -270,7 +271,7 @@ impl_detach_window (EphyExtension *extension,
{
call_python_func (extension, "detach_window", window, NULL);
- g_idle_add ((GSourceFunc) PyGC_Collect, NULL);
+ ephy_python_schedule_gc ();
}
static void