Commit ca9152f40cab8236e3011916bdd4e024cabbc0e9
1 parent
39703205
Exists in
master
and in
1 other branch
Fixing segfault on model change.
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
src/include/terminal.h
src/terminal/callbacks.c
... | ... | @@ -179,8 +179,8 @@ static void update_model(H3270 *session, const char *name, int model, G_GNUC_UNU |
179 | 179 | { |
180 | 180 | GtkWidget * widget = GTK_WIDGET(lib3270_get_user_data(session)); |
181 | 181 | |
182 | - debug("%s(%p)",__FUNCTION__,GTK_V3270_GET_CLASS(widget)->properties.model); | |
183 | - g_object_notify_by_pspec(G_OBJECT(lib3270_get_user_data(session)), GTK_V3270_GET_CLASS(widget)->properties.model); | |
182 | + debug("%s: terminal=%p pspec=%p",__FUNCTION__,widget,GTK_V3270_GET_CLASS(widget)->properties.settings[V3270_SETTING_MODEL_NUMBER]); | |
183 | + g_object_notify_by_pspec(G_OBJECT(widget), GTK_V3270_GET_CLASS(widget)->properties.settings[V3270_SETTING_MODEL_NUMBER]); | |
184 | 184 | |
185 | 185 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_MODEL_CHANGED], 0, (guint) model, name); |
186 | 186 | } | ... | ... |