pkgsrc/x11/py-gnome2-extras/patches/patch-aa

22 lines
661 B
Text

$NetBSD: patch-aa,v 1.4 2007/09/03 09:39:58 drochner Exp $
--- gtkmozembed/gtkmozembedmodule.c.orig 2004-12-15 01:30:45.000000000 +0100
+++ gtkmozembed/gtkmozembedmodule.c
@@ -5,6 +5,8 @@
/* include this first, before NO_IMPORT_PYGOBJECT is defined */
#include <pygobject.h>
+#include <stdlib.h>
+
void pygtkmozembed_register_classes (PyObject *d);
void pygtkmozembed_add_constants(PyObject *module, const gchar *strip_prefix);
@@ -15,6 +17,8 @@ initgtkmozembed(void)
{
PyObject *m, *d;
+ setenv("MOZILLA_FIVE_HOME", "@LOCALBASE@/lib/firefox", 1);
+
init_pygobject ();
m = Py_InitModule ("gtkmozembed", pygtkmozembed_functions);