Commit 2bb408b209663c28ec21ce6b34342aa706985268
1 parent
57eb4ba5
Exists in
script-support
Implementing script dialog.
Showing
2 changed files
with
12 additions
and
1 deletions
Show diff stats
src/objects/application/actions/script.c
| ... | ... | @@ -73,8 +73,9 @@ GtkWidget * factory(V3270SimpleAction * action, GtkWidget *terminal) { |
| 73 | 73 | |
| 74 | 74 | gtk_widget_set_hexpand(input,TRUE); |
| 75 | 75 | gtk_widget_set_vexpand(input,FALSE); |
| 76 | + gtk_entry_set_width_chars(GTK_ENTRY(input),60); | |
| 76 | 77 | |
| 77 | - gtk_grid_attach(grid,input,0,1,10,1); | |
| 78 | + gtk_grid_attach(grid,input,1,0,10,1); | |
| 78 | 79 | |
| 79 | 80 | // Setup window |
| 80 | 81 | gtk_window_set_transient_for(GTK_WINDOW(dialog),GTK_WINDOW(gtk_widget_get_toplevel(terminal))); | ... | ... |
src/objects/application/application.c
| ... | ... | @@ -17,6 +17,7 @@ |
| 17 | 17 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | +#include <config.h> | |
| 20 | 21 | #include "private.h" |
| 21 | 22 | #include <pw3270.h> |
| 22 | 23 | #include <pw3270/application.h> |
| ... | ... | @@ -442,6 +443,15 @@ void startup(GApplication *application) { |
| 442 | 443 | g_action_map_add_action(G_ACTION_MAP(application),actions[ix]); |
| 443 | 444 | } |
| 444 | 445 | |
| 446 | +#ifdef ENABLE_SCRIPTS | |
| 447 | + // | |
| 448 | + // Script actions | |
| 449 | + // | |
| 450 | +// if(g_settings_get_boolean(settings,"allow-scripts")) { | |
| 451 | + g_action_map_add_action(G_ACTION_MAP(application),pw3270_script_action_new()); | |
| 452 | +// } | |
| 453 | +#endif // ENABLE_SCRIPTS | |
| 454 | + | |
| 445 | 455 | // |
| 446 | 456 | // Open session actions. |
| 447 | 457 | // | ... | ... |