Commit a3c2d375e17ed6df8a9fba92ba84fba24f29462e
1 parent
01c9a748
Exists in
master
and in
2 other branches
Linux desktop icon can save session name.
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/objects/os/linux/savedesktopicon.c
| ... | ... | @@ -37,6 +37,7 @@ |
| 37 | 37 | #include <pw3270/application.h> |
| 38 | 38 | #include <v3270/actions.h> |
| 39 | 39 | #include <v3270/keyfile.h> |
| 40 | + #include <v3270/settings.h> | |
| 40 | 41 | #include <lib3270.h> |
| 41 | 42 | #include <lib3270/log.h> |
| 42 | 43 | #include <lib3270/properties.h> |
| ... | ... | @@ -334,6 +335,12 @@ X-Desktop-File-Install-Version=0.23 |
| 334 | 335 | g_message("%s",error->message); |
| 335 | 336 | g_error_free(error); |
| 336 | 337 | |
| 338 | + } else { | |
| 339 | + | |
| 340 | + // Set session name (after save to avoid changes on the old session file). | |
| 341 | + v3270_set_session_name(terminal,gtk_entry_get_text(GTK_ENTRY(inputs[2]))); | |
| 342 | + v3270_emit_save_settings(terminal,NULL); | |
| 343 | + | |
| 337 | 344 | } |
| 338 | 345 | |
| 339 | 346 | ... | ... |