Commit b1c35cef1fa229f99be66a523acf5cef552ae53e
1 parent
b16ac39a
Exists in
master
and in
1 other branch
Adding trace property notifications.
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
src/trace/trace.c
... | ... | @@ -153,6 +153,12 @@ |
153 | 153 | if(trace->terminal && GTK_V3270(trace->terminal)->trace == GTK_WIDGET(object)) |
154 | 154 | { |
155 | 155 | debug("V3270Trace::%s - Removing trace widget association",__FUNCTION__); |
156 | + | |
157 | + g_object_notify_by_pspec( | |
158 | + G_OBJECT(trace->terminal), | |
159 | + GTK_V3270_GET_CLASS(trace->terminal)->properties.trace | |
160 | + ); | |
161 | + | |
156 | 162 | GTK_V3270(trace->terminal)->trace = NULL; |
157 | 163 | } |
158 | 164 | |
... | ... | @@ -406,6 +412,12 @@ |
406 | 412 | g_object_ref_sink(G_OBJECT(terminal)); |
407 | 413 | set_session(widget, v3270_get_session(widget->terminal)); |
408 | 414 | GTK_V3270(terminal)->trace = GTK_WIDGET(widget); |
415 | + | |
416 | + g_object_notify_by_pspec( | |
417 | + G_OBJECT(terminal), | |
418 | + GTK_V3270_GET_CLASS(terminal)->properties.trace | |
419 | + ); | |
420 | + | |
409 | 421 | } |
410 | 422 | |
411 | 423 | return GTK_WIDGET(widget); | ... | ... |