[maemo-commits] [maemo-commits] r18891 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Jul 20 16:50:37 EEST 2009
Author: herzi
Date: 2009-07-20 16:50:36 +0300 (Mon, 20 Jul 2009)
New Revision: 18891

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtktextview.c
Log:
2009-04-02  Sven Herzberg  <herzi at lanedo.com>

	Fixes: NB#89864 - RGBA support

	* gtk/gtktextview.c (text_window_realize): this patch lets parts of
	the tree view always render using an RGB colormap



Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2009-07-20 13:50:08 UTC (rev 18890)
+++ projects/haf/trunk/gtk+/ChangeLog	2009-07-20 13:50:36 UTC (rev 18891)
@@ -1,3 +1,10 @@
+2009-04-02  Sven Herzberg  <herzi at lanedo.com>
+
+	Fixes: NB#89864 - RGBA support
+
+	* gtk/gtktextview.c (text_window_realize): this patch lets parts of
+	the tree view always render using an RGB colormap
+
 2009-03-24  Sven Herzberg  <herzi at lanedo.com>
 
 	Added Tim's rendering approach, too

Modified: projects/haf/trunk/gtk+/gtk/gtktextview.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtktextview.c	2009-07-20 13:50:08 UTC (rev 18890)
+++ projects/haf/trunk/gtk+/gtk/gtktextview.c	2009-07-20 13:50:36 UTC (rev 18891)
@@ -8055,6 +8055,10 @@
 
   attributes.x = 0;
   attributes.y = 0;
+#ifdef MAEMO_CHANGES
+  attributes.colormap = gdk_screen_get_rgb_colormap (gtk_widget_get_screen (win->widget));
+  attributes.visual = gdk_colormap_get_visual (attributes.colormap);
+#endif
   attributes.width = win->allocation.width;
   attributes.height = win->allocation.height;
   attributes.event_mask = (GDK_EXPOSURE_MASK            |

More information about the maemo-commits mailing list