Commit 09d28ae807a457d5439a29e8f08d51992e33fca2
1 parent
03c489cb
Exists in
master
and in
5 other branches
Incluindo widget do terminal no start/stop do plugin para facilitar o tratamento.
Showing
6 changed files
with
14 additions
and
14 deletions
Show diff stats
src/include/pw3270/plugin.h
@@ -43,8 +43,8 @@ | @@ -43,8 +43,8 @@ | ||
43 | LIB3270_EXPORT int pw3270_plugin_init(void); | 43 | LIB3270_EXPORT int pw3270_plugin_init(void); |
44 | LIB3270_EXPORT int pw3270_plugin_deinit(void); | 44 | LIB3270_EXPORT int pw3270_plugin_deinit(void); |
45 | 45 | ||
46 | - LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window); | ||
47 | - LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window); | 46 | + LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window, GtkWidget *terminal); |
47 | + LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window, GtkWidget *terminal); | ||
48 | 48 | ||
49 | // plugins | 49 | // plugins |
50 | LIB3270_EXPORT void pw3270_load_plugins(const gchar *path); | 50 | LIB3270_EXPORT void pw3270_load_plugins(const gchar *path); |
src/java/plugin.cc
@@ -401,7 +401,7 @@ extern "C" { | @@ -401,7 +401,7 @@ extern "C" { | ||
401 | return new plugin(lib3270_get_default_session_handle()); | 401 | return new plugin(lib3270_get_default_session_handle()); |
402 | } | 402 | } |
403 | 403 | ||
404 | - LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window) { | 404 | + LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window, GtkWidget *terminal) { |
405 | 405 | ||
406 | trace("JAVA: %s",__FUNCTION__); | 406 | trace("JAVA: %s",__FUNCTION__); |
407 | 407 | ||
@@ -414,7 +414,7 @@ extern "C" { | @@ -414,7 +414,7 @@ extern "C" { | ||
414 | return 0; | 414 | return 0; |
415 | } | 415 | } |
416 | 416 | ||
417 | - LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window) { | 417 | + LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window, GtkWidget *terminal) { |
418 | 418 | ||
419 | java::lock(); | 419 | java::lock(); |
420 | 420 |
src/plugins/dbus3270/main.c
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | 51 | ||
52 | /*---[ Implement ]-------------------------------------------------------------------------------*/ | 52 | /*---[ Implement ]-------------------------------------------------------------------------------*/ |
53 | 53 | ||
54 | - LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window) | 54 | + LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window, GtkWidget *terminal) |
55 | { | 55 | { |
56 | 56 | ||
57 | GError * error = NULL; | 57 | GError * error = NULL; |
@@ -143,7 +143,7 @@ | @@ -143,7 +143,7 @@ | ||
143 | return 0; | 143 | return 0; |
144 | } | 144 | } |
145 | 145 | ||
146 | - LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window) | 146 | + LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window, GtkWidget *terminal) |
147 | { | 147 | { |
148 | if(service_name) | 148 | if(service_name) |
149 | { | 149 | { |
src/plugins/hllapi/pluginmain.c
@@ -570,7 +570,7 @@ | @@ -570,7 +570,7 @@ | ||
570 | LocalFree(lpMsgBuf); | 570 | LocalFree(lpMsgBuf); |
571 | } | 571 | } |
572 | 572 | ||
573 | - LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window) | 573 | + LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window, GtkWidget *terminal) |
574 | { | 574 | { |
575 | char id; | 575 | char id; |
576 | 576 | ||
@@ -634,7 +634,7 @@ | @@ -634,7 +634,7 @@ | ||
634 | return -1; | 634 | return -1; |
635 | } | 635 | } |
636 | 636 | ||
637 | - LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window) | 637 | + LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window, GtkWidget *terminal) |
638 | { | 638 | { |
639 | 639 | ||
640 | return 0; | 640 | return 0; |
src/plugins/rx3270/pluginmain.cc
@@ -501,7 +501,7 @@ extern "C" | @@ -501,7 +501,7 @@ extern "C" | ||
501 | return new plugin(lib3270_get_default_session_handle()); | 501 | return new plugin(lib3270_get_default_session_handle()); |
502 | } | 502 | } |
503 | 503 | ||
504 | - LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window) | 504 | + LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window, GtkWidget *terminal) |
505 | { | 505 | { |
506 | trace("%s",__FUNCTION__); | 506 | trace("%s",__FUNCTION__); |
507 | #if GTK_CHECK_VERSION(2,32,0) | 507 | #if GTK_CHECK_VERSION(2,32,0) |
@@ -511,7 +511,7 @@ extern "C" | @@ -511,7 +511,7 @@ extern "C" | ||
511 | return 0; | 511 | return 0; |
512 | } | 512 | } |
513 | 513 | ||
514 | - LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window) | 514 | + LIB3270_EXPORT int pw3270_plugin_stop(GtkWidget *window, GtkWidget *terminal) |
515 | { | 515 | { |
516 | #if GTK_CHECK_VERSION(2,32,0) | 516 | #if GTK_CHECK_VERSION(2,32,0) |
517 | g_mutex_clear(&mutex); | 517 | g_mutex_clear(&mutex); |
src/pw3270/plugin.c
@@ -228,10 +228,10 @@ | @@ -228,10 +228,10 @@ | ||
228 | 228 | ||
229 | for(f=0;f<nPlugin;f++) | 229 | for(f=0;f<nPlugin;f++) |
230 | { | 230 | { |
231 | - int (*start)(GtkWidget *); | 231 | + int (*start)(GtkWidget *, GtkWidget *); |
232 | 232 | ||
233 | if(g_module_symbol(hPlugin[f], "pw3270_plugin_start", (gpointer) &start)) | 233 | if(g_module_symbol(hPlugin[f], "pw3270_plugin_start", (gpointer) &start)) |
234 | - start(widget); | 234 | + start(widget,pw3270_get_terminal_widget(widget)); |
235 | } | 235 | } |
236 | 236 | ||
237 | } | 237 | } |
@@ -242,10 +242,10 @@ | @@ -242,10 +242,10 @@ | ||
242 | 242 | ||
243 | for(f=0;f<nPlugin;f++) | 243 | for(f=0;f<nPlugin;f++) |
244 | { | 244 | { |
245 | - int (*stop)(GtkWidget *); | 245 | + int (*stop)(GtkWidget *, GtkWidget *); |
246 | 246 | ||
247 | if(g_module_symbol(hPlugin[f], "pw3270_plugin_stop", (gpointer) &stop)) | 247 | if(g_module_symbol(hPlugin[f], "pw3270_plugin_stop", (gpointer) &stop)) |
248 | - stop(widget); | 248 | + stop(widget,pw3270_get_terminal_widget(widget)); |
249 | } | 249 | } |
250 | 250 | ||
251 | } | 251 | } |