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
@@ -73,7 +73,6 @@ G_BEGIN_DECLS | @@ -73,7 +73,6 @@ G_BEGIN_DECLS | ||
73 | // Signal related properties | 73 | // Signal related properties |
74 | GParamSpec * online; | 74 | GParamSpec * online; |
75 | GParamSpec * associated_lu; | 75 | GParamSpec * associated_lu; |
76 | - GParamSpec * model; | ||
77 | GParamSpec * selection; | 76 | GParamSpec * selection; |
78 | GParamSpec * session_name; | 77 | GParamSpec * session_name; |
79 | GParamSpec * trace; | 78 | GParamSpec * trace; |
src/terminal/callbacks.c
@@ -179,8 +179,8 @@ static void update_model(H3270 *session, const char *name, int model, G_GNUC_UNU | @@ -179,8 +179,8 @@ static void update_model(H3270 *session, const char *name, int model, G_GNUC_UNU | ||
179 | { | 179 | { |
180 | GtkWidget * widget = GTK_WIDGET(lib3270_get_user_data(session)); | 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 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_MODEL_CHANGED], 0, (guint) model, name); | 185 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_MODEL_CHANGED], 0, (guint) model, name); |
186 | } | 186 | } |