Commit 3001f886fcb7c42157f9a4e7fe8d9ee4638ded16

Authored by Perry Werneck
1 parent e6ad71bb

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 51  
52 52 GtkWidget * factory(GtkWidget *terminal) {
53 53  
  54 + size_t ix;
  55 +
54 56 GtkWidget * dialog = v3270_settings_dialog_new();
55 57  
56 58 gtk_window_set_title(GTK_WINDOW(dialog), _("Session properties"));
57 59  
58 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 73 gtk_container_add(GTK_CONTAINER(dialog), v3270_host_select_new());
60 74 gtk_container_add(GTK_CONTAINER(dialog), v3270_color_selection_new());
61 75 gtk_container_add(GTK_CONTAINER(dialog), v3270_font_chooser_widget_new());
  76 + */
62 77  
63 78 // Setup dialog box
64 79 gtk_window_set_transient_for(GTK_WINDOW(dialog),GTK_WINDOW(gtk_widget_get_toplevel(terminal)));
... ...