[rhythmbox/gobject-introspection] remove code to import pygtk; why and how was this still there?



commit 913330ad3728a79a2a215374f5521e06dc1195b1
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Jan 13 22:15:11 2011 +1000

    remove code to import pygtk; why and how was this still there?

 shell/rb-python-module.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/shell/rb-python-module.c b/shell/rb-python-module.c
index 1349d5c..82d4882 100644
--- a/shell/rb-python-module.c
+++ b/shell/rb-python-module.c
@@ -80,8 +80,6 @@ rb_python_module_init_python (void)
 	PyObject *mdict;
 	PyObject *gettext, *install, *gettext_args;
 	PyObject *sys_path;
-	PyObject *pygtk;
-	PyObject *require;
 	PyObject *gi;
 	struct sigaction old_sigint;
 	gint res;
@@ -121,23 +119,6 @@ rb_python_module_init_python (void)
 
 	PySys_SetArgv (1, argv);
 
-	/* pygtk.require("2.0") */
-	pygtk = PyImport_ImportModule ("pygtk");
-	if (pygtk == NULL) {
-		g_warning ("Could not import pygtk");
-		PyErr_Print();
-		return;
-	}
-
-	mdict = PyModule_GetDict (pygtk);
-	require = PyDict_GetItemString (mdict, "require");
-	PyObject_CallObject (require, Py_BuildValue ("(S)", PyString_FromString ("2.0")));
-	if (PyErr_Occurred ()) {
-		g_warning ("pygtk.require(2.0) failed");
-		PyErr_Print();
-		return;
-	}
-
 	/* import gobject */
 	if (pygobject_init (2, 16, 0) == NULL) {
 		g_warning ("Could not initialize pygobject");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]