Commit 4d89cde81a7c7a78d6e11dc2bf6bc2a3606947f6
1 parent
8c316748
Exists in
master
and in
5 other branches
Using the new action methods from lib3270.
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
src/pw3270/actions.c
| ... | ... | @@ -336,6 +336,15 @@ static void connect_standard_action(GtkAction *action, GtkWidget *widget, const |
| 336 | 336 | int f; |
| 337 | 337 | |
| 338 | 338 | // Search for lib3270 predefined actions |
| 339 | + const LIB3270_ACTION * lib3270_action = lib3270_get_action(name); | |
| 340 | + if(lib3270_action) | |
| 341 | + { | |
| 342 | + g_object_set_data(G_OBJECT(action),"lib3270_call",lib3270_action->activate); | |
| 343 | + g_signal_connect(action,"activate",G_CALLBACK(do_lib3270_action),widget); | |
| 344 | + return; | |
| 345 | + } | |
| 346 | + | |
| 347 | + /* | |
| 339 | 348 | const LIB3270_ACTION * lib3270_actions = lib3270_get_actions(); |
| 340 | 349 | |
| 341 | 350 | for(f=0; lib3270_actions[f].name; f++) |
| ... | ... | @@ -347,6 +356,7 @@ static void connect_standard_action(GtkAction *action, GtkWidget *widget, const |
| 347 | 356 | return; |
| 348 | 357 | } |
| 349 | 358 | } |
| 359 | + */ | |
| 350 | 360 | |
| 351 | 361 | /* |
| 352 | 362 | for(f=0;f<G_N_ELEMENTS(lib3270_entry);f++) | ... | ... |