Commit 8822ca30a43b592f77832a9428f45bb6fcc461ee
1 parent
858b95b6
Exists in
master
and in
4 other branches
Implementing toolbar.
Showing
2 changed files
with
21 additions
and
2 deletions
Show diff stats
src/objects/window/terminal.c
src/objects/window/window.c
... | ... | @@ -68,9 +68,26 @@ |
68 | 68 | // |
69 | 69 | pw3270_window_add_actions(GTK_WIDGET(widget)); |
70 | 70 | |
71 | - pw3270_toolbar_insert_action(GTK_WIDGET(widget->toolbar), g_action_map_lookup_action(G_ACTION_MAP(widget), "win.reconnect"), -1); | |
71 | + { | |
72 | + static const gchar *actions[] = { | |
73 | + "win.select_all", | |
74 | + "win.copy", | |
75 | + "win.paste", | |
76 | + "win.reconnect", | |
77 | + "win.disconnect", | |
78 | + "win.print", | |
79 | + "app.quit" | |
80 | + }; | |
81 | + | |
82 | + size_t ix; | |
83 | + | |
84 | + for(ix = 0; ix < G_N_ELEMENTS(actions); ix++) { | |
85 | + pw3270_toolbar_insert_action(GTK_WIDGET(widget->toolbar), g_action_map_lookup_action(G_ACTION_MAP(widget), actions[ix]), -1); | |
86 | + } | |
87 | + | |
88 | + } | |
89 | + | |
72 | 90 | |
73 | - //gtk_widget_show_all(GTK_WIDGET(widget->toolbar)); | |
74 | 91 | |
75 | 92 | // |
76 | 93 | // Setup Window actions. | ... | ... |