Commit 3001f886fcb7c42157f9a4e7fe8d9ee4638ded16
1 parent
e6ad71bb
Exists in
master
and in
4 other branches
Adding accelerator settings tab on the session properties dialog.
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
src/objects/window/actions/sessionproperties.c
@@ -51,14 +51,29 @@ | @@ -51,14 +51,29 @@ | ||
51 | 51 | ||
52 | GtkWidget * factory(GtkWidget *terminal) { | 52 | GtkWidget * factory(GtkWidget *terminal) { |
53 | 53 | ||
54 | + size_t ix; | ||
55 | + | ||
54 | GtkWidget * dialog = v3270_settings_dialog_new(); | 56 | GtkWidget * dialog = v3270_settings_dialog_new(); |
55 | 57 | ||
56 | gtk_window_set_title(GTK_WINDOW(dialog), _("Session properties")); | 58 | gtk_window_set_title(GTK_WINDOW(dialog), _("Session properties")); |
57 | 59 | ||
58 | // Add settings pages. | 60 | // Add settings pages. |
61 | + GtkWidget * elements[] = { | ||
62 | + v3270_host_settings_new(), | ||
63 | + v3270_color_selection_new(), | ||
64 | + v3270_font_settings_new(), | ||
65 | + v3270_accelerator_settings_new() | ||
66 | + }; | ||
67 | + | ||
68 | + for(ix = 0; ix < G_N_ELEMENTS(elements); ix++) { | ||
69 | + gtk_container_add(GTK_CONTAINER(dialog), elements[ix]); | ||
70 | + } | ||
71 | + | ||
72 | + /* | ||
59 | gtk_container_add(GTK_CONTAINER(dialog), v3270_host_select_new()); | 73 | gtk_container_add(GTK_CONTAINER(dialog), v3270_host_select_new()); |
60 | gtk_container_add(GTK_CONTAINER(dialog), v3270_color_selection_new()); | 74 | gtk_container_add(GTK_CONTAINER(dialog), v3270_color_selection_new()); |
61 | gtk_container_add(GTK_CONTAINER(dialog), v3270_font_chooser_widget_new()); | 75 | gtk_container_add(GTK_CONTAINER(dialog), v3270_font_chooser_widget_new()); |
76 | + */ | ||
62 | 77 | ||
63 | // Setup dialog box | 78 | // Setup dialog box |
64 | gtk_window_set_transient_for(GTK_WINDOW(dialog),GTK_WINDOW(gtk_widget_get_toplevel(terminal))); | 79 | gtk_window_set_transient_for(GTK_WINDOW(dialog),GTK_WINDOW(gtk_widget_get_toplevel(terminal))); |