gnome-terminal r2890 - trunk/src



Author: chpe
Date: Sun Jun 15 20:44:08 2008
New Revision: 2890
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2890&view=rev

Log:
Bug 537888 â Transparency support broken
Fixed by re-applying the background type on realize.


Modified:
   trunk/src/terminal-screen.c

Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c	(original)
+++ trunk/src/terminal-screen.c	Sun Jun 15 20:44:08 2008
@@ -799,7 +799,6 @@
         }
       
       /* FIXME: Don't enable this if we have a compmgr. */
-      /* FIXME: redo this on screen-changed! */
       vte_terminal_set_background_transparent (vte_terminal,
                                                bg_type == TERMINAL_BACKGROUND_TRANSPARENT &&
                                                (!priv->window || !terminal_window_uses_argb_visual (priv->window)));
@@ -1024,6 +1023,16 @@
                                    TerminalScreen *screen)
 {
   TerminalScreenPrivate *priv = screen->priv;
+  TerminalBackgroundType bg_type;
+
+  g_assert (priv->window != NULL);
+  g_assert (priv->profile != NULL);
+
+  /* FIXME: Don't enable this if we have a compmgr. */
+  bg_type = terminal_profile_get_property_enum (priv->profile, TERMINAL_PROFILE_BACKGROUND_TYPE);
+  vte_terminal_set_background_transparent (vte_terminal,
+                                           bg_type == TERMINAL_BACKGROUND_TRANSPARENT &&
+                                           !terminal_window_uses_argb_visual (priv->window));
 
   update_color_scheme (screen);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]