summaryrefslogtreecommitdiff
path: root/src/profile-editor.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-28 20:11:15 +0100
committerWolfgang Ulbrich <[email protected]>2015-11-28 20:11:15 +0100
commit1e12282051ef84c5cb2c820eb2f4fadeda11b48b (patch)
tree29de6fc09175bf0c70551aa44b6fbd05d9759f86 /src/profile-editor.c
parent1e8eef25c7fa7ce17cd978ccc246fbfd40eb38f6 (diff)
parent5ecc6d7c26e7d721245bc06ba0d699d7f072c052 (diff)
downloadmate-terminal-1e12282051ef84c5cb2c820eb2f4fadeda11b48b.tar.bz2
mate-terminal-1e12282051ef84c5cb2c820eb2f4fadeda11b48b.tar.xz
Merge branch 'vte291'
Diffstat (limited to 'src/profile-editor.c')
-rw-r--r--src/profile-editor.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/profile-editor.c b/src/profile-editor.c
index ce847ed..082e4c4 100644
--- a/src/profile-editor.c
+++ b/src/profile-editor.c
@@ -141,6 +141,27 @@ profile_notify_sensitivity_cb (TerminalProfile *profile,
!terminal_profile_property_locked (profile, TERMINAL_PROFILE_CUSTOM_COMMAND));
}
+#if VTE_CHECK_VERSION (0, 38, 0)
+ gtk_widget_hide (profile_editor_get_widget (editor, "background-image"));
+ gtk_widget_hide (profile_editor_get_widget (editor, "darken-background-transparent-or-image-scale-label"));
+ gtk_widget_show (profile_editor_get_widget (editor, "darken-background-transparent-scale-label"));
+ if (!prop_name || prop_name == I_(TERMINAL_PROFILE_BACKGROUND_TYPE))
+ {
+ gboolean bg_type_locked = terminal_profile_property_locked (profile, TERMINAL_PROFILE_BACKGROUND_TYPE);
+ SET_SENSITIVE ("solid-radiobutton", !bg_type_locked);
+ SET_SENSITIVE ("transparent-radiobutton", !bg_type_locked);
+
+ bg_type = terminal_profile_get_property_enum (profile, TERMINAL_PROFILE_BACKGROUND_TYPE);
+ if (bg_type == TERMINAL_BACKGROUND_TRANSPARENT)
+ {
+ SET_SENSITIVE ("darken-background-vbox", !terminal_profile_property_locked (profile, TERMINAL_PROFILE_BACKGROUND_DARKNESS));
+ }
+ else
+ {
+ SET_SENSITIVE ("darken-background-vbox", FALSE);
+ }
+ }
+#else
if (!prop_name || prop_name == I_(TERMINAL_PROFILE_BACKGROUND_TYPE))
{
gboolean bg_type_locked = terminal_profile_property_locked (profile, TERMINAL_PROFILE_BACKGROUND_TYPE);
@@ -168,6 +189,7 @@ profile_notify_sensitivity_cb (TerminalProfile *profile,
SET_SENSITIVE ("darken-background-vbox", FALSE);
}
}
+#endif
if (!prop_name ||
prop_name == I_(TERMINAL_PROFILE_USE_SYSTEM_FONT) ||