[Midnightbsd-cvs] mports: x11/Terminal: fix problem with composition with newer gtks.

ctriv at midnightbsd.org ctriv at midnightbsd.org
Wed Dec 24 14:01:48 EST 2008


Log Message:
-----------
fix problem with composition with newer gtks.

Modified Files:
--------------
    mports/x11/Terminal:
        Makefile (r1.1 -> r1.2)

Added Files:
-----------
    mports/x11/Terminal/files:
        patch-terminal__terminal-app.c (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/x11/Terminal/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -L x11/Terminal/Makefile -L x11/Terminal/Makefile -u -r1.1 -r1.2
--- x11/Terminal/Makefile
+++ x11/Terminal/Makefile
@@ -8,6 +8,7 @@
 
 PORTNAME=	Terminal
 PORTVERSION=	0.2.8
+PORTREVISION=	1
 CATEGORIES=	x11 xfce
 MASTER_SITES=	${MASTER_SITE_XFCE}
 DIST_SUBDIR=	xfce4
--- /dev/null
+++ x11/Terminal/files/patch-terminal__terminal-app.c
@@ -0,0 +1,42 @@
+--- terminal/terminal-app.c	2007-12-02 09:15:45.000000000 -0500
++++ terminal/terminal-app.c	2008-06-15 21:00:18.000000000 -0400
+@@ -348,7 +348,7 @@
+ {
+   const gchar *other_name;
+ #if GTK_CHECK_VERSION(2,10,0)
+-  GdkColormap *colormap;
++//  GdkColormap *colormap;
+ #endif
+   GdkDisplay  *display = NULL;
+   GdkScreen   *screen = NULL;
+@@ -412,21 +412,21 @@
+ 
+ #if GTK_CHECK_VERSION(2,10,0)
+   /* check if we already checked this screen */
+-  if (g_object_get_data (G_OBJECT (screen), "terminal-checked-screen") == NULL)
+-    {
++//  if (g_object_get_data (G_OBJECT (screen), "terminal-checked-screen") == NULL)
++//    {
+       /* check if we can use ARGB visual for this screen */
+-      colormap = gdk_screen_get_rgba_colormap (screen);
+-      if (G_LIKELY (colormap != NULL))
+-        {
++//      colormap = gdk_screen_get_rgba_colormap (screen);
++//      if (G_LIKELY (colormap != NULL))
++//        {
+           /* use ARGB visual for all windows on this screen, required
+            * for real transparency with a compositing manager.
+            */
+-          gdk_screen_set_default_colormap (screen, colormap);
+-        }
++//          gdk_screen_set_default_colormap (screen, colormap);
++//        }
+ 
+       /* mark this screen as handled */
+-      g_object_set_data (G_OBJECT (screen), I_("terminal-checked-screen"), GINT_TO_POINTER (1));
+-    }
++//      g_object_set_data (G_OBJECT (screen), I_("terminal-checked-screen"), GINT_TO_POINTER (1));
++//    }
+ #endif
+ 
+   return screen;


More information about the Midnightbsd-cvs mailing list