diff options
Diffstat (limited to 'plugins/python_wrapper/python_wrapper_protocol.c')
-rw-r--r-- | plugins/python_wrapper/python_wrapper_protocol.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/python_wrapper/python_wrapper_protocol.c b/plugins/python_wrapper/python_wrapper_protocol.c index 911936647..19c90f9a1 100644 --- a/plugins/python_wrapper/python_wrapper_protocol.c +++ b/plugins/python_wrapper/python_wrapper_protocol.c @@ -62,7 +62,7 @@ void python_wrapper_protocol_init(void) void remmina_protocol_init_wrapper(RemminaProtocolWidget* gp) { TRACE_CALL(__func__); - PyPlugin* py_plugin = python_wrapper_get_plugin(gp); + PyPlugin* py_plugin = python_wrapper_get_plugin_by_protocol_widget(gp); py_plugin->gp->gp = gp; CallPythonMethod(py_plugin->instance, "init", "O", py_plugin->gp); } @@ -70,7 +70,7 @@ void remmina_protocol_init_wrapper(RemminaProtocolWidget* gp) gboolean remmina_protocol_open_connection_wrapper(RemminaProtocolWidget* gp) { TRACE_CALL(__func__); - PyPlugin* py_plugin = python_wrapper_get_plugin(gp); + PyPlugin* py_plugin = python_wrapper_get_plugin_by_protocol_widget(gp); if (py_plugin) { PyObject* result = CallPythonMethod(py_plugin->instance, "open_connection", "O", py_plugin->gp); @@ -85,7 +85,7 @@ gboolean remmina_protocol_open_connection_wrapper(RemminaProtocolWidget* gp) gboolean remmina_protocol_close_connection_wrapper(RemminaProtocolWidget* gp) { TRACE_CALL(__func__); - PyPlugin* py_plugin = python_wrapper_get_plugin(gp); + PyPlugin* py_plugin = python_wrapper_get_plugin_by_protocol_widget(gp); PyObject* result = CallPythonMethod(py_plugin->instance, "close_connection", "O", py_plugin->gp); return result == Py_True; } @@ -94,7 +94,7 @@ gboolean remmina_protocol_query_feature_wrapper(RemminaProtocolWidget* gp, const RemminaProtocolFeature* feature) { TRACE_CALL(__func__); - PyPlugin* py_plugin = python_wrapper_get_plugin(gp); + PyPlugin* py_plugin = python_wrapper_get_plugin_by_protocol_widget(gp); PyRemminaProtocolFeature* pyFeature = python_wrapper_protocol_feature_new(); pyFeature->type = (gint)feature->type; pyFeature->id = feature->id; @@ -116,7 +116,7 @@ gboolean remmina_protocol_query_feature_wrapper(RemminaProtocolWidget* gp, void remmina_protocol_call_feature_wrapper(RemminaProtocolWidget* gp, const RemminaProtocolFeature* feature) { TRACE_CALL(__func__); - PyPlugin* py_plugin = python_wrapper_get_plugin(gp); + PyPlugin* py_plugin = python_wrapper_get_plugin_by_protocol_widget(gp); PyRemminaProtocolFeature* pyFeature = python_wrapper_protocol_feature_new(); pyFeature->type = (gint)feature->type; pyFeature->id = feature->id; @@ -142,7 +142,7 @@ void remmina_protocol_send_keytrokes_wrapper(RemminaProtocolWidget* gp, const gint keylen) { TRACE_CALL(__func__); - PyPlugin* py_plugin = python_wrapper_get_plugin(gp); + PyPlugin* py_plugin = python_wrapper_get_plugin_by_protocol_widget(gp); PyObject* obj = PyList_New(keylen); Py_IncRef(obj); for (int i = 0; i < keylen; ++i) @@ -158,7 +158,7 @@ gboolean remmina_protocol_get_plugin_screenshot_wrapper(RemminaProtocolWidget* g { TRACE_CALL(__func__); - PyPlugin* py_plugin = python_wrapper_get_plugin(gp); + PyPlugin* py_plugin = python_wrapper_get_plugin_by_protocol_widget(gp); PyRemminaPluginScreenshotData* data = python_wrapper_screenshot_data_new(); Py_IncRef((PyObject*)data); PyObject* result = CallPythonMethod(py_plugin->instance, "get_plugin_screenshot", "OO", py_plugin->gp, data); @@ -190,14 +190,14 @@ gboolean remmina_protocol_get_plugin_screenshot_wrapper(RemminaProtocolWidget* g gboolean remmina_protocol_map_event_wrapper(RemminaProtocolWidget* gp) { - PyPlugin* plugin = python_wrapper_get_plugin(gp); + PyPlugin* plugin = python_wrapper_get_plugin_by_protocol_widget(gp); PyObject* result = CallPythonMethod(plugin->instance, "map_event", "O", plugin->gp); return PyBool_Check(result) && result == Py_True; } gboolean remmina_protocol_unmap_event_wrapper(RemminaProtocolWidget* gp) { - PyPlugin* plugin = python_wrapper_get_plugin(gp); + PyPlugin* plugin = python_wrapper_get_plugin_by_protocol_widget(gp); PyObject* result = CallPythonMethod(plugin->instance, "unmap_event", "O", plugin->gp); return PyBool_Check(result) && result == Py_True; } |