Commit 397f7d92f2a1776fa0813367a95e1b31f16e8d65
1 parent
30b43c4a
Exists in
master
and in
1 other branch
Updating test program.
Showing
1 changed file
with
1 additions
and
22 deletions
Show diff stats
server/src/testprogram/testprogram.c
... | ... | @@ -95,28 +95,7 @@ |
95 | 95 | } |
96 | 96 | |
97 | 97 | static void session_changed(GtkWidget *widget, GtkWidget *window) { |
98 | - | |
99 | - g_autofree gchar * title = NULL; | |
100 | - const gchar * name = v3270_get_session_name(widget); | |
101 | - | |
102 | - g_message("Session name was changed to \"%s\"", name); | |
103 | - | |
104 | - if(v3270_is_connected(widget)) { | |
105 | - const gchar *host = v3270_get_hostname(widget); | |
106 | - | |
107 | - if(host && *host) | |
108 | - title = g_strdup_printf("%s - %s",name,host); | |
109 | - else | |
110 | - title = g_strdup_printf("%s",name); | |
111 | - | |
112 | - } else { | |
113 | - | |
114 | - title = g_strdup_printf("%s - Disconnected",name); | |
115 | - } | |
116 | - | |
117 | - gtk_window_set_title(GTK_WINDOW(window),title); | |
118 | - | |
119 | - | |
98 | + gtk_window_set_title(GTK_WINDOW(window),v3270_get_session_name(widget)); | |
120 | 99 | } |
121 | 100 | |
122 | 101 | static void activate(GtkApplication* app, G_GNUC_UNUSED gpointer user_data) { | ... | ... |