Commit 8c3167489640a67a4c46cffaafcdd9ab4a8568b0
1 parent
e2821682
Exists in
master
and in
5 other branches
Updating to the new LIB3270_ACTION based methods.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/pw3270/actions.c
@@ -336,13 +336,13 @@ static void connect_standard_action(GtkAction *action, GtkWidget *widget, const | @@ -336,13 +336,13 @@ static void connect_standard_action(GtkAction *action, GtkWidget *widget, const | ||
336 | int f; | 336 | int f; |
337 | 337 | ||
338 | // Search for lib3270 predefined actions | 338 | // Search for lib3270 predefined actions |
339 | - const LIB3270_ACTION_ENTRY * lib3270_actions = lib3270_get_action_table(); | 339 | + const LIB3270_ACTION * lib3270_actions = lib3270_get_actions(); |
340 | 340 | ||
341 | for(f=0; lib3270_actions[f].name; f++) | 341 | for(f=0; lib3270_actions[f].name; f++) |
342 | { | 342 | { |
343 | if(!g_ascii_strcasecmp(name,lib3270_actions[f].name)) | 343 | if(!g_ascii_strcasecmp(name,lib3270_actions[f].name)) |
344 | { | 344 | { |
345 | - g_object_set_data(G_OBJECT(action),"lib3270_call",lib3270_actions[f].call); | 345 | + g_object_set_data(G_OBJECT(action),"lib3270_call",lib3270_actions[f].activate); |
346 | g_signal_connect(action,"activate",G_CALLBACK(do_lib3270_action),widget); | 346 | g_signal_connect(action,"activate",G_CALLBACK(do_lib3270_action),widget); |
347 | return; | 347 | return; |
348 | } | 348 | } |