Commit 02850012dd399581a69f9d3773509f0e1b09b24c
1 parent
f9b78b13
Exists in
master
and in
1 other branch
Enabling use of v3270_property_action with generic widgets.
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/terminal/actions/property.c
@@ -250,7 +250,9 @@ | @@ -250,7 +250,9 @@ | ||
250 | action->pspec = pspec; | 250 | action->pspec = pspec; |
251 | action->parent.group.id = action_group; | 251 | action->parent.group.id = action_group; |
252 | 252 | ||
253 | - v3270_action_set_terminal_widget(G_ACTION(action), widget); | 253 | + if(GTK_IS_V3270(widget)) { |
254 | + v3270_action_set_terminal_widget(G_ACTION(action), widget); | ||
255 | + } | ||
254 | 256 | ||
255 | return V3270_SIMPLE_ACTION(action); | 257 | return V3270_SIMPLE_ACTION(action); |
256 | } | 258 | } |