[mate-terminal] 01/01: debian/patches: Add 0001_fix_setting_transparency.patch. Fix setting transparency when used in GNOME3.

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Thu Mar 29 20:50:35 UTC 2018


This is an automated email from the git hooks/post-receive script.

flexiondotorg-guest pushed a commit to branch master
in repository mate-terminal.

commit c38dc7985e81a125adcdd7a48f07642673511849
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Thu Mar 29 21:50:24 2018 +0100

    debian/patches: Add 0001_fix_setting_transparency.patch. Fix setting transparency when used in GNOME3.
---
 debian/patches/0001_fix_setting_transparency.patch | 31 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/0001_fix_setting_transparency.patch b/debian/patches/0001_fix_setting_transparency.patch
new file mode 100644
index 0000000..7e1d9cc
--- /dev/null
+++ b/debian/patches/0001_fix_setting_transparency.patch
@@ -0,0 +1,31 @@
+Author: liuyi92 <liuyi19920905 at gmail.com>
+Description: Fix setting transparency when used in GNOME3
+
+--- a/src/terminal-screen.c
++++ b/src/terminal-screen.c
+@@ -1138,6 +1138,25 @@ 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
diff --git a/debian/patches/series b/debian/patches/series
index bc1e32e..d54651e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001_fix_setting_transparency.patch
 1001_add-keywords-to-desktop-files.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-terminal.git



More information about the pkg-mate-commits mailing list