summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/terminal-encoding.c4
-rw-r--r--src/terminal-window.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/terminal-encoding.c b/src/terminal-encoding.c
index 36b9aca..a470c99 100644
--- a/src/terminal-encoding.c
+++ b/src/terminal-encoding.c
@@ -159,8 +159,8 @@ terminal_encoding_new (const char *charset,
encoding->refcount = 1;
encoding->id = g_strdup (charset);
encoding->name = g_strdup (display_name);
- encoding->valid = encoding->validity_checked = force_valid;
- encoding->is_custom = is_custom;
+ encoding->valid = encoding->validity_checked = (force_valid != FALSE);
+ encoding->is_custom = (is_custom != FALSE);
encoding->is_active = FALSE;
return encoding;
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 5540557..3482680 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2725,7 +2725,7 @@ terminal_window_set_menubar_visible (TerminalWindow *window,
if (setting == priv->menubar_visible)
return;
- priv->menubar_visible = setting;
+ priv->menubar_visible = (setting != FALSE);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (priv->action_group, "ViewMenubar");