diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-12-21 23:34:14 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-12-21 23:34:14 (GMT) |
commit | 3bfff245c47c4dd1404c5ea7af0ff4858ac8d130 (patch) | |
tree | dc3613e2ebdef4d04fa874335795268dba732d31 /plugins/pychrysa/gui/editem.c | |
parent | 0cfcbee3c536ac6d11ec806d47ce4c136f695697 (diff) |
Resolved relative addresses for routines and fixed bugs related to PyGObjects construction.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@308 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/gui/editem.c')
-rw-r--r-- | plugins/pychrysa/gui/editem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/pychrysa/gui/editem.c b/plugins/pychrysa/gui/editem.c index 3b7a8b8..c7e4724 100644 --- a/plugins/pychrysa/gui/editem.c +++ b/plugins/pychrysa/gui/editem.c @@ -97,7 +97,7 @@ static void _update_editor_item_for_binary_python_wrapper(GEditorItem *item, GLo target = pychrysalide_get_pygobject(G_OBJECT(item)); args = PyTuple_New(1); - PyTuple_SetItem(args, 0, py_loaded_binary_from_c(binary)); + PyTuple_SetItem(args, 0, pygobject_new(G_OBJECT(binary))); value = run_python_method(target, "update_for_binary", args); @@ -139,7 +139,7 @@ static void _update_editor_item_for_view_python_wrapper(GEditorItem *item, GtkVi target = pychrysalide_get_pygobject(G_OBJECT(item)); args = PyTuple_New(1); - PyTuple_SetItem(args, 0, py_view_panel_from_c(view)); + PyTuple_SetItem(args, 0, pygobject_new(G_OBJECT(view))); value = run_python_method(target, "update_for_view", args); @@ -181,7 +181,7 @@ static void _update_editor_item_for_view_content_python_wrapper(GEditorItem *ite target = pychrysalide_get_pygobject(G_OBJECT(item)); args = PyTuple_New(1); - PyTuple_SetItem(args, 0, py_view_panel_from_c(view)); + PyTuple_SetItem(args, 0, pygobject_new(G_OBJECT(view))); value = run_python_method(target, "update_for_content", args); @@ -280,7 +280,7 @@ static PyObject *py_editor_item_get_current_binary(PyObject *self, PyObject *arg result = Py_None; } else - result = py_loaded_binary_from_c(binary); + result = pygobject_new(G_OBJECT(binary)); return result; @@ -315,7 +315,7 @@ static PyObject *py_editor_item_get_current_view(PyObject *self, PyObject *args) result = Py_None; } else - result = py_view_panel_from_c(panel); + result = pygobject_new(G_OBJECT(panel)); return result; |