[gtk+/rendering-cleanup: 139/144] API: Remove colormap handling from GdkScreen



commit 1e2c0e65b25567c4fd7b84ebd55f7cbc4a325fd4
Author: Benjamin Otte <otte redhat com>
Date:   Sun Aug 29 12:51:07 2010 +0200

    API: Remove colormap handling from GdkScreen
    
    In particular, the following functions are gone:
    - gdk_screen_get_default_colormap()
    - gdk_screen_set_default_colormap()
    - gdk_screen_get_system_colormap()
    - gdk_screen_get_rgba_colormap()

 docs/reference/gdk/gdk3-sections.txt |    5 --
 gdk/gdk.symbols                      |   10 ---
 gdk/gdkcolor.c                       |   14 -----
 gdk/gdkcolor.h                       |    4 -
 gdk/gdkscreen.c                      |    1 -
 gdk/gdkscreen.h                      |    5 --
 gdk/quartz/gdkcolor-quartz.c         |   37 ------------
 gdk/quartz/gdkscreen-quartz.c        |   34 -----------
 gdk/quartz/gdkscreen-quartz.h        |    1 -
 gdk/win32/gdkcolor-win32.c           |   47 ----------------
 gdk/win32/gdkdisplay-win32.c         |    2 -
 gdk/win32/gdkscreen-win32.c          |   33 -----------
 gdk/x11/gdkcolor-x11.c               |   67 ----------------------
 gdk/x11/gdkscreen-x11.c              |  101 +--------------------------------
 gdk/x11/gdkscreen-x11.h              |    5 --
 gdk/x11/gdkwindow-x11.c              |    3 -
 16 files changed, 4 insertions(+), 365 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index e3e651f..632b2fb 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -190,11 +190,7 @@ gdk_display_manager_get_type
 <TITLE>GdkScreen</TITLE>
 GdkScreen
 gdk_screen_get_default
-gdk_screen_get_default_colormap
-gdk_screen_set_default_colormap
-gdk_screen_get_system_colormap
 gdk_screen_get_system_visual
-gdk_screen_get_rgba_colormap
 gdk_screen_get_rgba_visual
 gdk_screen_is_composited
 gdk_screen_get_root_window
@@ -253,7 +249,6 @@ gdk_pixbuf_get_from_surface
 GdkColor
 GdkColormap
 gdk_colormap_new
-gdk_colormap_get_system
 gdk_colormap_alloc_colors
 gdk_colormap_alloc_color
 gdk_colormap_free_colors
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 9264ce1..8a2a1d9 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -305,7 +305,6 @@ gdk_color_free
 gdk_color_get_type G_GNUC_CONST
 gdk_color_hash
 gdk_colormap_alloc_color
-gdk_colormap_get_system
 gdk_colormap_get_visual
 gdk_color_parse
 gdk_color_to_string
@@ -847,14 +846,11 @@ gdk_screen_get_number
 gdk_screen_get_primary_monitor
 gdk_screen_get_root_window
 gdk_screen_get_setting
-gdk_screen_get_default_colormap
-gdk_screen_set_default_colormap
 gdk_screen_get_n_monitors
 gdk_screen_get_monitor_geometry
 gdk_screen_get_monitor_width_mm
 gdk_screen_get_monitor_height_mm
 gdk_screen_get_monitor_plug_name
-gdk_screen_get_rgba_colormap
 gdk_screen_get_rgba_visual
 gdk_screen_get_active_window
 gdk_screen_get_window_stack
@@ -863,12 +859,6 @@ gdk_screen_make_display_name
 #endif
 #endif
 
-#if IN_HEADER(__GDK_SCREEN_H__)
-#if IN_FILE(__GDK_COLOR_X11_C__)
-gdk_screen_get_system_colormap
-#endif
-#endif
-
 #if IN_HEADER(__GDK_SELECTION_H__)
 #if IN_FILE(__GDK_SELECTION_C__)
 gdk_selection_owner_set
diff --git a/gdk/gdkcolor.c b/gdk/gdkcolor.c
index 69f70c5..ce5c89c 100644
--- a/gdk/gdkcolor.c
+++ b/gdk/gdkcolor.c
@@ -224,17 +224,3 @@ gdk_color_to_string (const GdkColor *color)
 
   return pango_color_to_string (&pango_color);
 }
-
-/**
- * gdk_colormap_get_system:
- * 
- * Gets the system's default colormap for the default screen. (See
- * gdk_colormap_get_system_for_screen ())
- * 
- * Return value: the default colormap.
- **/
-GdkColormap*
-gdk_colormap_get_system (void)
-{
-  return gdk_screen_get_system_colormap (gdk_screen_get_default ());
-}
diff --git a/gdk/gdkcolor.h b/gdk/gdkcolor.h
index dfb21cd..d531cbe 100644
--- a/gdk/gdkcolor.h
+++ b/gdk/gdkcolor.h
@@ -91,10 +91,6 @@ GType        gdk_colormap_get_type (void) G_GNUC_CONST;
 GdkColormap* gdk_colormap_new	  (GdkVisual   *visual,
 				   gboolean	allocate);
 
-#ifndef GDK_MULTIHEAD_SAFE
-GdkColormap* gdk_colormap_get_system	        (void);
-#endif
-
 GdkScreen *gdk_colormap_get_screen (GdkColormap *cmap);
 
 gint  gdk_colormap_alloc_colors   (GdkColormap    *colormap,
diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c
index ac56f20..c7d6593 100644
--- a/gdk/gdkscreen.c
+++ b/gdk/gdkscreen.c
@@ -23,7 +23,6 @@
 
 #include "config.h"
 #include "gdk.h"		/* For gdk_rectangle_intersect() */
-#include "gdkcolor.h"
 #include "gdkwindow.h"
 #include "gdkscreen.h"
 #include "gdkintl.h"
diff --git a/gdk/gdkscreen.h b/gdk/gdkscreen.h
index 0f0e4ce..9e1e606 100644
--- a/gdk/gdkscreen.h
+++ b/gdk/gdkscreen.h
@@ -63,12 +63,7 @@ struct _GdkScreenClass
 };
 
 GType        gdk_screen_get_type              (void) G_GNUC_CONST;
-GdkColormap *gdk_screen_get_default_colormap  (GdkScreen   *screen);
-void         gdk_screen_set_default_colormap  (GdkScreen   *screen,
-					       GdkColormap *colormap);
-GdkColormap* gdk_screen_get_system_colormap   (GdkScreen   *screen);
 GdkVisual*   gdk_screen_get_system_visual     (GdkScreen   *screen);
-GdkColormap *gdk_screen_get_rgba_colormap     (GdkScreen   *screen);
 GdkVisual *  gdk_screen_get_rgba_visual       (GdkScreen   *screen);
 gboolean     gdk_screen_is_composited	      (GdkScreen   *screen);
 
diff --git a/gdk/quartz/gdkcolor-quartz.c b/gdk/quartz/gdkcolor-quartz.c
index c0addaf..ec8335c 100644
--- a/gdk/quartz/gdkcolor-quartz.c
+++ b/gdk/quartz/gdkcolor-quartz.c
@@ -62,43 +62,6 @@ gdk_colormap_new (GdkVisual *visual,
   return NULL;
 }
 
-GdkColormap *
-gdk_screen_get_system_colormap (GdkScreen *screen)
-{
-  static GdkColormap *colormap = NULL;
-
-  g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
-
-  if (!colormap)
-    {
-      colormap = g_object_new (GDK_TYPE_COLORMAP, NULL);
-
-      colormap->visual = gdk_visual_get_system ();
-      colormap->size = colormap->visual->colormap_size;
-    }
-
-  return colormap;
-}
-
-
-GdkColormap *
-gdk_screen_get_rgba_colormap (GdkScreen *screen)
-{
-  static GdkColormap *colormap = NULL;
-
-  g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
-
-  if (!colormap)
-    {
-      colormap = g_object_new (GDK_TYPE_COLORMAP, NULL);
-
-      colormap->visual = gdk_screen_get_rgba_visual (screen);
-      colormap->size = colormap->visual->colormap_size;
-    }
-
-  return colormap;
-}
-
 void
 gdk_colormap_free_colors (GdkColormap    *colormap,
                           const GdkColor *colors,
diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
index 796fcb5..d90366e 100644
--- a/gdk/quartz/gdkscreen-quartz.c
+++ b/gdk/quartz/gdkscreen-quartz.c
@@ -84,9 +84,6 @@ _gdk_screen_quartz_init (GdkScreenQuartz *screen_quartz)
   GdkScreen *screen = GDK_SCREEN (screen_quartz);
   NSScreen *nsscreen;
 
-  gdk_screen_set_default_colormap (screen,
-                                   gdk_screen_get_system_colormap (screen));
-
   nsscreen = [[NSScreen screens] objectAtIndex:0];
   gdk_screen_set_resolution (screen,
                              72.0 * [nsscreen userSpaceScaleFactor]);
@@ -104,12 +101,6 @@ gdk_screen_quartz_dispose (GObject *object)
 {
   GdkScreenQuartz *screen = GDK_SCREEN_QUARTZ (object);
 
-  if (screen->default_colormap)
-    {
-      g_object_unref (screen->default_colormap);
-      screen->default_colormap = NULL;
-    }
-
   if (screen->screen_changed_id)
     {
       g_source_remove (screen->screen_changed_id);
@@ -313,31 +304,6 @@ _gdk_windowing_substitute_screen_number (const gchar *display_name,
   return g_strdup (display_name);
 }
 
-GdkColormap*
-gdk_screen_get_default_colormap (GdkScreen *screen)
-{
-  g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
-
-  return GDK_SCREEN_QUARTZ (screen)->default_colormap;
-}
-
-void
-gdk_screen_set_default_colormap (GdkScreen   *screen,
-				 GdkColormap *colormap)
-{
-  GdkColormap *old_colormap;
-  
-  g_return_if_fail (GDK_IS_SCREEN (screen));
-  g_return_if_fail (GDK_IS_COLORMAP (colormap));
-
-  old_colormap = GDK_SCREEN_QUARTZ (screen)->default_colormap;
-
-  GDK_SCREEN_QUARTZ (screen)->default_colormap = g_object_ref (colormap);
-  
-  if (old_colormap)
-    g_object_unref (old_colormap);
-}
-
 gint
 gdk_screen_get_width (GdkScreen *screen)
 {
diff --git a/gdk/quartz/gdkscreen-quartz.h b/gdk/quartz/gdkscreen-quartz.h
index 82da95c..4d211e3 100644
--- a/gdk/quartz/gdkscreen-quartz.h
+++ b/gdk/quartz/gdkscreen-quartz.h
@@ -38,7 +38,6 @@ struct _GdkScreenQuartz
   GdkScreen parent_instance;
 
   GdkDisplay *display;
-  GdkColormap *default_colormap;
 
   /* Origin of "root window" in Cocoa coordinates */
   gint min_x;
diff --git a/gdk/win32/gdkcolor-win32.c b/gdk/win32/gdkcolor-win32.c
index 08a16b8..dfb986c 100644
--- a/gdk/win32/gdkcolor-win32.c
+++ b/gdk/win32/gdkcolor-win32.c
@@ -590,53 +590,6 @@ gdk_colormap_new (GdkVisual *visual,
   return colormap;
 }
 
-GdkColormap*
-gdk_screen_get_system_colormap (GdkScreen *screen)
-{
-  static GdkColormap *colormap = NULL;
-  GdkColormapPrivateWin32 *private;
-
-  g_return_val_if_fail (screen == _gdk_screen, NULL);
-
-  if (!colormap)
-    {
-      colormap = g_object_new (gdk_colormap_get_type (), NULL);
-      private = GDK_WIN32_COLORMAP_DATA (colormap);
-
-      colormap->visual = gdk_visual_get_system ();
-
-      colormap->size = colormap->visual->colormap_size;
-
-      private->private_val = FALSE;
-
-      switch (colormap->visual->type)
-	{
-	case GDK_VISUAL_GRAYSCALE:
-	case GDK_VISUAL_PSEUDO_COLOR:
-	  private->info = g_new0 (GdkColorInfo, colormap->size);
-	  private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
-					    (GEqualFunc) gdk_color_equal);
-	  /* Fallthrough */
-
-	case GDK_VISUAL_STATIC_GRAY:
-	case GDK_VISUAL_STATIC_COLOR:
-	  create_colormap (colormap, FALSE);
-
-	  colormap->colors = g_new (GdkColor, colormap->size);
-	  sync_colors (colormap);
-	  break;
-
-	case GDK_VISUAL_TRUE_COLOR:
-	  break;
-
-	default:
-	  g_assert_not_reached ();
-	}
-    }
-
-  return colormap;
-}
-
 static void
 gdk_colors_free (GdkColormap *colormap,
 		 gulong      *in_pixels,
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 3295353..3d43c26 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -204,8 +204,6 @@ gdk_display_open (const gchar *display_name)
 
   _gdk_monitor_init ();
   _gdk_visual_init ();
-  gdk_screen_set_default_colormap (_gdk_screen,
-                                   gdk_screen_get_system_colormap (_gdk_screen));
   _gdk_windowing_window_init (_gdk_screen);
   _gdk_events_init ();
   _gdk_input_init (_gdk_display);
diff --git a/gdk/win32/gdkscreen-win32.c b/gdk/win32/gdkscreen-win32.c
index e9051b5..047e948 100644
--- a/gdk/win32/gdkscreen-win32.c
+++ b/gdk/win32/gdkscreen-win32.c
@@ -21,8 +21,6 @@
 #include "gdk.h"
 #include "gdkprivate-win32.h"
 
-static GdkColormap *default_colormap = NULL;
-
 GdkDisplay *
 gdk_screen_get_display (GdkScreen *screen)
 {
@@ -35,29 +33,6 @@ gdk_screen_get_root_window (GdkScreen *screen)
   return _gdk_root;
 }
 
-GdkColormap *
-gdk_screen_get_default_colormap (GdkScreen *screen)
-{
-  return default_colormap;
-}
-
-void
-gdk_screen_set_default_colormap (GdkScreen   *screen,
-				 GdkColormap *colormap)
-{
-  GdkColormap *old_colormap;
-  
-  g_return_if_fail (screen == _gdk_screen);
-  g_return_if_fail (GDK_IS_COLORMAP (colormap));
-
-  old_colormap = default_colormap;
-
-  default_colormap = g_object_ref (colormap);
-  
-  if (old_colormap)
-    g_object_unref (old_colormap);
-}
-
 gint
 gdk_screen_get_n_monitors (GdkScreen *screen)
 {
@@ -119,14 +94,6 @@ gdk_screen_get_monitor_geometry (GdkScreen    *screen,
   *dest = _gdk_monitors[num_monitor].rect;
 }
 
-GdkColormap *
-gdk_screen_get_rgba_colormap (GdkScreen *screen)
-{
-  g_return_val_if_fail (screen == _gdk_screen, NULL);
-
-  return NULL;
-}
-  
 GdkVisual *
 gdk_screen_get_rgba_visual (GdkScreen *screen)
 {
diff --git a/gdk/x11/gdkcolor-x11.c b/gdk/x11/gdkcolor-x11.c
index dba39d9..848dcc2 100644
--- a/gdk/x11/gdkcolor-x11.c
+++ b/gdk/x11/gdkcolor-x11.c
@@ -348,69 +348,6 @@ gdk_colormap_sync (GdkColormap *colormap,
     gdk_colormap_sync_palette (colormap);
 }
 		   
-/**
- * gdk_screen_get_system_colormap:
- * @screen: a #GdkScreen
- *
- * Gets the system's default colormap for @screen
- *
- * Returns: (transfer none): the default colormap for @screen.
- *
- * Since: 2.2
- */
-GdkColormap *
-gdk_screen_get_system_colormap (GdkScreen *screen)
-{
-  GdkColormap *colormap = NULL;
-  GdkColormapPrivateX11 *private;
-  GdkScreenX11 *screen_x11;
-
-  g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
-  screen_x11 = GDK_SCREEN_X11 (screen);
-
-  if (screen_x11->system_colormap)
-    return screen_x11->system_colormap;
-
-  colormap = g_object_new (GDK_TYPE_COLORMAP, NULL);
-  private = GDK_COLORMAP_PRIVATE_DATA (colormap);
-
-  private->screen = screen;
-  colormap->visual = gdk_screen_get_system_visual (screen);
-  
-  private->xcolormap = DefaultColormapOfScreen (screen_x11->xscreen);
-  private->private_val = FALSE;
-
-  private->hash = NULL;
-  private->last_sync_time = 0;
-  private->info = NULL;
-
-  colormap->colors = NULL;
-  colormap->size = colormap->visual->colormap_size;
-
-  switch (colormap->visual->type)
-    {
-    case GDK_VISUAL_GRAYSCALE:
-    case GDK_VISUAL_PSEUDO_COLOR:
-      private->info = g_new0 (GdkColorInfo, colormap->size);
-      private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
-					(GEqualFunc) gdk_color_equal);
-      /* Fall through */
-    case GDK_VISUAL_STATIC_GRAY:
-    case GDK_VISUAL_STATIC_COLOR:
-    case GDK_VISUAL_DIRECT_COLOR:
-      colormap->colors = g_new (GdkColor, colormap->size);
-      gdk_colormap_sync (colormap, TRUE);
-      
-    case GDK_VISUAL_TRUE_COLOR:
-      break;
-    }
-  
-  gdk_colormap_add (colormap);
-  screen_x11->system_colormap = colormap;
-  
-  return colormap;
-}
-
 /*
  * gdk_colormap_change:
  * @colormap: a #GdkColormap.
@@ -1039,10 +976,6 @@ gdk_x11_colormap_foreign_new (GdkVisual *visual,
 
   screen = gdk_visual_get_screen (visual);
   
-  if (xcolormap == DefaultColormap (GDK_SCREEN_XDISPLAY (screen),
-				    GDK_SCREEN_XNUMBER (screen)))
-    return g_object_ref (gdk_screen_get_system_colormap (screen));
-
   colormap = gdk_colormap_lookup (screen, xcolormap);
   if (colormap)
     return g_object_ref (colormap);
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 301b099..004011a 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -237,50 +237,6 @@ gdk_screen_get_root_window (GdkScreen *screen)
   return GDK_SCREEN_X11 (screen)->root_window;
 }
 
-/**
- * gdk_screen_get_default_colormap:
- * @screen: a #GdkScreen
- *
- * Gets the default colormap for @screen.
- * 
- * Returns: (transfer none): the default #GdkColormap.
- *
- * Since: 2.2
- **/
-GdkColormap *
-gdk_screen_get_default_colormap (GdkScreen *screen)
-{
-  g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
-
-  return GDK_SCREEN_X11 (screen)->default_colormap;
-}
-
-/**
- * gdk_screen_set_default_colormap:
- * @screen: a #GdkScreen
- * @colormap: a #GdkColormap
- *
- * Sets the default @colormap for @screen.
- *
- * Since: 2.2
- **/
-void
-gdk_screen_set_default_colormap (GdkScreen   *screen,
-				 GdkColormap *colormap)
-{
-  GdkColormap *old_colormap;
-  
-  g_return_if_fail (GDK_IS_SCREEN (screen));
-  g_return_if_fail (GDK_IS_COLORMAP (colormap));
-
-  old_colormap = GDK_SCREEN_X11 (screen)->default_colormap;
-
-  GDK_SCREEN_X11 (screen)->default_colormap = g_object_ref (colormap);
-  
-  if (old_colormap)
-    g_object_unref (old_colormap);
-}
-
 static void
 _gdk_screen_x11_events_uninit (GdkScreen *screen)
 {
@@ -310,24 +266,6 @@ gdk_screen_x11_dispose (GObject *object)
 
   _gdk_screen_x11_events_uninit (GDK_SCREEN (object));
 
-  if (screen_x11->default_colormap)
-    {
-      g_object_unref (screen_x11->default_colormap);
-      screen_x11->default_colormap = NULL;
-    }
-
-  if (screen_x11->system_colormap)
-    {
-      g_object_unref (screen_x11->system_colormap);
-      screen_x11->system_colormap = NULL;
-    }
-
-  if (screen_x11->rgba_colormap)
-    {
-      g_object_unref (screen_x11->rgba_colormap);
-      screen_x11->rgba_colormap = NULL;
-    }
-
   if (screen_x11->root_window)
     _gdk_window_destroy (screen_x11->root_window, TRUE);
 
@@ -538,11 +476,11 @@ gdk_screen_get_monitor_geometry (GdkScreen    *screen,
 }
 
 /**
- * gdk_screen_get_rgba_colormap:
- * @screen: a #GdkScreen.
+ * gdk_screen_get_rgba_visual:
+ * @screen: a #GdkScreen
  * 
- * Gets a colormap to use for creating windows with an alpha
- * channel. The windowing system on which GTK+ is running
+ * Gets a visual to use for creating windows with an alpha channel.
+ * The windowing system on which GTK+ is running
  * may not support this capability, in which case %NULL will
  * be returned. Even if a non-%NULL value is returned, its
  * possible that the window's alpha channel won't be honored
@@ -554,37 +492,6 @@ gdk_screen_get_monitor_geometry (GdkScreen    *screen,
  *
  * For setting an overall opacity for a top-level window, see
  * gdk_window_set_opacity().
-
- * Return value: (transfer none): a colormap to use for windows with
- *     an alpha channel or %NULL if the capability is not available.
- *
- * Since: 2.8
- **/
-GdkColormap *
-gdk_screen_get_rgba_colormap (GdkScreen *screen)
-{
-  GdkScreenX11 *screen_x11;
-
-  g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
-
-  screen_x11 = GDK_SCREEN_X11 (screen);
-
-  if (!screen_x11->rgba_visual)
-    return NULL;
-
-  if (!screen_x11->rgba_colormap)
-    screen_x11->rgba_colormap = gdk_colormap_new (screen_x11->rgba_visual,
-						  FALSE);
-  
-  return screen_x11->rgba_colormap;
-}
-
-/**
- * gdk_screen_get_rgba_visual:
- * @screen: a #GdkScreen
- * 
- * Gets a visual to use for creating windows with an alpha channel.
- * See the docs for gdk_screen_get_rgba_colormap() for caveats.
  * 
  * Return value: (transfer none): a visual to use for windows with an
  *     alpha channel or %NULL if the capability is not available.
diff --git a/gdk/x11/gdkscreen-x11.h b/gdk/x11/gdkscreen-x11.h
index 81662e2..b0c6303 100644
--- a/gdk/x11/gdkscreen-x11.h
+++ b/gdk/x11/gdkscreen-x11.h
@@ -81,11 +81,6 @@ struct _GdkScreenX11
   GHashTable *colormap_hash;
   GdkVisual *rgba_visual;
   
-  /* Colormap Part */
-  GdkColormap *default_colormap;
-  GdkColormap *system_colormap;
-  GdkColormap *rgba_colormap;
-
   /* X settings */
   XSettingsClient *xsettings_client;
   guint xsettings_in_init : 1;
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 7b338bf..d653151 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -429,9 +429,6 @@ _gdk_windowing_window_init (GdkScreen * screen)
 
   g_assert (screen_x11->root_window == NULL);
 
-  gdk_screen_set_default_colormap (screen,
-				   gdk_screen_get_system_colormap (screen));
-
   screen_x11->root_window = g_object_new (GDK_TYPE_WINDOW, NULL);
 
   private = (GdkWindowObject *) screen_x11->root_window;



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