From 4d89cde81a7c7a78d6e11dc2bf6bc2a3606947f6 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 26 Sep 2019 10:35:36 -0300 Subject: [PATCH] Using the new action methods from lib3270. --- src/pw3270/actions.c | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/src/pw3270/actions.c b/src/pw3270/actions.c index 933fdd0..923107e 100644 --- a/src/pw3270/actions.c +++ b/src/pw3270/actions.c @@ -336,6 +336,15 @@ static void connect_standard_action(GtkAction *action, GtkWidget *widget, const int f; // Search for lib3270 predefined actions + const LIB3270_ACTION * lib3270_action = lib3270_get_action(name); + if(lib3270_action) + { + g_object_set_data(G_OBJECT(action),"lib3270_call",lib3270_action->activate); + g_signal_connect(action,"activate",G_CALLBACK(do_lib3270_action),widget); + return; + } + + /* const LIB3270_ACTION * lib3270_actions = lib3270_get_actions(); for(f=0; lib3270_actions[f].name; f++) @@ -347,6 +356,7 @@ static void connect_standard_action(GtkAction *action, GtkWidget *widget, const return; } } + */ /* for(f=0;f