Commit 4a39f052173b91be41bab8b873af21812ca4624b
1 parent
bb63b068
Exists in
master
and in
1 other branch
Trigerring reconfigure event when terminal size changes.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/terminal/callbacks.c
@@ -237,9 +237,12 @@ static void update_connect(H3270 *session, unsigned char connected) | @@ -237,9 +237,12 @@ static void update_connect(H3270 *session, unsigned char connected) | ||
237 | 237 | ||
238 | static void update_screen_size(H3270 *session, G_GNUC_UNUSED unsigned short rows, G_GNUC_UNUSED unsigned short cols) | 238 | static void update_screen_size(H3270 *session, G_GNUC_UNUSED unsigned short rows, G_GNUC_UNUSED unsigned short cols) |
239 | { | 239 | { |
240 | + debug("%s",__FUNCTION__); | ||
240 | GtkWidget * widget = GTK_WIDGET(lib3270_get_user_data(session)); | 241 | GtkWidget * widget = GTK_WIDGET(lib3270_get_user_data(session)); |
241 | - v3270_reload(widget); | 242 | + |
243 | + v3270_reconfigure(GTK_V3270(widget)); | ||
242 | gtk_widget_queue_draw(widget); | 244 | gtk_widget_queue_draw(widget); |
245 | + | ||
243 | } | 246 | } |
244 | 247 | ||
245 | static void update_model(H3270 *session, const char *name, int model, G_GNUC_UNUSED int rows, G_GNUC_UNUSED int cols) | 248 | static void update_model(H3270 *session, const char *name, int model, G_GNUC_UNUSED int rows, G_GNUC_UNUSED int cols) |