diff options
author | monsta <[email protected]> | 2016-05-26 17:33:01 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-05-26 17:33:01 +0300 |
commit | b2919d25fa7e8a6b09e1502ed35b10e3fb27ec08 (patch) | |
tree | 1897f74559a08564d6850382005576cc95f2247e /src/profile-editor.c | |
parent | ea302a83da329d7f182724fb0c9d1a4d22aa9362 (diff) | |
download | mate-terminal-b2919d25fa7e8a6b09e1502ed35b10e3fb27ec08.tar.bz2 mate-terminal-b2919d25fa7e8a6b09e1502ed35b10e3fb27ec08.tar.xz |
drop old code for VTE < 0.38 (it was used in GTK+2 build)
Diffstat (limited to 'src/profile-editor.c')
-rw-r--r-- | src/profile-editor.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/profile-editor.c b/src/profile-editor.c index f20afe7..cd7f07a 100644 --- a/src/profile-editor.c +++ b/src/profile-editor.c @@ -141,7 +141,6 @@ 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")); @@ -161,35 +160,6 @@ profile_notify_sensitivity_cb (TerminalProfile *profile, 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); - SET_SENSITIVE ("solid-radiobutton", !bg_type_locked); - SET_SENSITIVE ("image-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_IMAGE) - { - SET_SENSITIVE ("background-image-filechooser", !terminal_profile_property_locked (profile, TERMINAL_PROFILE_BACKGROUND_IMAGE_FILE)); - SET_SENSITIVE ("scroll-background-checkbutton", !terminal_profile_property_locked (profile, TERMINAL_PROFILE_SCROLL_BACKGROUND)); - SET_SENSITIVE ("darken-background-vbox", !terminal_profile_property_locked (profile, TERMINAL_PROFILE_BACKGROUND_DARKNESS)); - } - else if (bg_type == TERMINAL_BACKGROUND_TRANSPARENT) - { - SET_SENSITIVE ("background-image-filechooser", FALSE); - SET_SENSITIVE ("scroll-background-checkbutton", FALSE); - SET_SENSITIVE ("darken-background-vbox", !terminal_profile_property_locked (profile, TERMINAL_PROFILE_BACKGROUND_DARKNESS)); - } - else - { - SET_SENSITIVE ("background-image-filechooser", FALSE); - SET_SENSITIVE ("scroll-background-checkbutton", FALSE); - SET_SENSITIVE ("darken-background-vbox", FALSE); - } - } -#endif if (!prop_name || prop_name == I_(TERMINAL_PROFILE_USE_SYSTEM_FONT) || |