Commit 721a07c8d6bd0326bba307162b6dfe2e12597979

Authored by Perry Werneck
1 parent 6338314b
Exists in master and in 1 other branch develop

Using the new action methods.

Showing 1 changed file with 8 additions and 1 deletions   Show diff stats
src/trace/exec.c
@@ -157,7 +157,7 @@ @@ -157,7 +157,7 @@
157 157
158 int v3270_exec_command(GtkWidget *widget, const gchar *text) 158 int v3270_exec_command(GtkWidget *widget, const gchar *text)
159 { 159 {
160 - size_t ix; 160 +// size_t ix;
161 161
162 g_return_val_if_fail(GTK_IS_V3270(widget),EINVAL); 162 g_return_val_if_fail(GTK_IS_V3270(widget),EINVAL);
163 163
@@ -321,6 +321,12 @@ @@ -321,6 +321,12 @@
321 } 321 }
322 else 322 else
323 { 323 {
  324 + const LIB3270_ACTION * action = lib3270_get_action(cmdline);
  325 +
  326 + if(action)
  327 + return lib3270_action_activate(action,hSession);
  328 +
  329 + /*
324 // Check for lib3270 actions. 330 // Check for lib3270 actions.
325 const LIB3270_ACTION * actions = lib3270_get_actions(); 331 const LIB3270_ACTION * actions = lib3270_get_actions();
326 332
@@ -340,6 +346,7 @@ @@ -340,6 +346,7 @@
340 } 346 }
341 } 347 }
342 } 348 }
  349 + */
343 350
344 } 351 }
345 352