Commit 0f2b031d4b3d451c7b5cfc1bb621d0e43e0f041c
1 parent
01e0b4b8
Exists in
master
and in
1 other branch
Fixing problem when font is changed.
Showing
4 changed files
with
9 additions
and
3 deletions
Show diff stats
src/terminal/callbacks.c
... | ... | @@ -104,7 +104,7 @@ static void update_toggle(H3270 *session, LIB3270_TOGGLE ix, unsigned char value |
104 | 104 | break; |
105 | 105 | |
106 | 106 | case LIB3270_TOGGLE_BOLD: |
107 | - v3270_reload(widget); | |
107 | + v3270_reconfigure(GTK_V3270(widget)); | |
108 | 108 | gtk_widget_queue_draw(widget); |
109 | 109 | break; |
110 | 110 | ... | ... |
src/terminal/drawing/draw.c
... | ... | @@ -467,7 +467,7 @@ void v3270_update_char(H3270 *session, int addr, unsigned char chr, unsigned sho |
467 | 467 | |
468 | 468 | if(!terminal->surface) |
469 | 469 | { |
470 | - v3270_reload(GTK_WIDGET(terminal)); | |
470 | + v3270_reconfigure(terminal); | |
471 | 471 | gtk_widget_queue_draw(GTK_WIDGET(terminal)); |
472 | 472 | return; |
473 | 473 | } | ... | ... |
src/terminal/font/properties.c
... | ... | @@ -66,7 +66,7 @@ LIB3270_EXPORT void v3270_set_font_family(GtkWidget *widget, const gchar *name) |
66 | 66 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_UPDATE_CONFIG], 0, "font-family", name); |
67 | 67 | g_object_notify_by_pspec(G_OBJECT(widget), GTK_V3270_GET_CLASS(widget)->properties.font_family); |
68 | 68 | |
69 | - v3270_reload(widget); | |
69 | + v3270_reconfigure(terminal); | |
70 | 70 | gtk_widget_queue_draw(widget); |
71 | 71 | |
72 | 72 | } | ... | ... |
src/trace/exec.c
... | ... | @@ -179,6 +179,12 @@ |
179 | 179 | return 0; |
180 | 180 | } |
181 | 181 | |
182 | + if(g_str_has_prefix(cmdline,"reconfigure")) | |
183 | + { | |
184 | + v3270_reconfigure(GTK_V3270(widget)); | |
185 | + return 0; | |
186 | + } | |
187 | + | |
182 | 188 | if(g_str_has_prefix(cmdline,"pattern")) |
183 | 189 | { |
184 | 190 | lib3270_testpattern(hSession); | ... | ... |