summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-06-17 21:33:03 +0300
committerraveit65 <[email protected]>2018-06-17 22:30:39 +0200
commitc4cedf761d77f8586d067a1da34204ecb5810fa7 (patch)
tree7bb80a22c097b2080b4f3fe4bcea1ac663aa116f
parent54558c5449918b9750c019f13cf9a73b17ff9e7b (diff)
downloadmate-terminal-c4cedf761d77f8586d067a1da34204ecb5810fa7.tar.bz2
mate-terminal-c4cedf761d77f8586d067a1da34204ecb5810fa7.tar.xz
Revert "fix setting transparency issue when used in GNOME3"
This reverts commit e1b834a2bf684ac4a7d4b33fbf216d65896889c6. Fixes https://github.com/mate-desktop/mate-terminal/issues/240
-rw-r--r--src/terminal-screen.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 746a53d..73fa9ae 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1138,25 +1138,6 @@ update_color_scheme (TerminalScreen *screen)
if (bold_rgba)
vte_terminal_set_color_bold (VTE_TERMINAL (screen),
bold_rgba);
-
- /* In case of being used in GNOME3 desktop environment.
- * code references to gnome-terminal
- */
- if (bg_type == TERMINAL_BACKGROUND_TRANSPARENT)
- {
- /* toplevel widget */
- GtkWidget *toplevel;
- toplevel = gtk_widget_get_toplevel (GTK_WIDGET (screen));
- if (toplevel != NULL && gtk_widget_is_toplevel (toplevel)
- && !gtk_widget_get_app_paintable (toplevel))
- {
- gtk_widget_set_app_paintable (toplevel, TRUE);
- /* The opaque region of the toplevel isn't updated until the toplevel is allocated;
- * set_app_paintable() doesn't force an allocation, so do that manually.
- */
- gtk_widget_queue_resize (toplevel);
- }
- }
}
void