Commit 43bfd359585a0bd9c8d2b6d54c14a15b5a5244ce
1 parent
e6f7ad6b
Exists in
master
and in
1 other branch
Fixing toggle actions.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/terminal/actions/property.c
@@ -270,8 +270,9 @@ | @@ -270,8 +270,9 @@ | ||
270 | 270 | ||
271 | v3270PropertyAction * action = V3270_PROPERTY_ACTION(object); | 271 | v3270PropertyAction * action = V3270_PROPERTY_ACTION(object); |
272 | 272 | ||
273 | + // Boolean actions should act as toggles. | ||
273 | if(action->pspec->value_type == G_TYPE_BOOLEAN) | 274 | if(action->pspec->value_type == G_TYPE_BOOLEAN) |
274 | - return G_VARIANT_TYPE_BOOLEAN; | 275 | + return NULL; |
275 | 276 | ||
276 | return G_VARIANT_TYPE_STRING; | 277 | return G_VARIANT_TYPE_STRING; |
277 | 278 |