Commit 5a93acd1de39b894d48b9874ee9b9084c12c47d8
1 parent
15616726
Exists in
master
and in
3 other branches
Implementing header settings.
Showing
1 changed file
with
11 additions
and
1 deletions
Show diff stats
src/objects/window/header-settings.c
... | ... | @@ -307,6 +307,16 @@ |
307 | 307 | |
308 | 308 | } |
309 | 309 | |
310 | - void apply(GtkWidget *widget, PW3270SettingsPrivate *settings) { | |
310 | + void apply(GtkWidget *widget, PW3270SettingsPrivate *page) { | |
311 | + | |
312 | + g_autofree gchar * left_names = pw3270_action_view_get_action_names(page->views[0]); | |
313 | + g_autofree gchar * right_names = pw3270_action_view_get_action_names(page->views[1]); | |
314 | + g_autofree gchar * action_names = g_strconcat(left_names,":",right_names,NULL); | |
315 | + | |
316 | + debug("Header actions: [%s]",action_names); | |
317 | + | |
318 | + g_autoptr(GSettings) settings = pw3270_application_window_settings_new(); | |
319 | + g_settings_set_string(settings,"header-action-names",action_names); | |
320 | + | |
311 | 321 | } |
312 | 322 | ... | ... |