]> Pileus Git - ~andy/gtk/commitdiff
Remove gdkx_colormap_get() deprecated function
authorJavier Jardón <jjardon@gnome.org>
Mon, 7 Jun 2010 02:31:56 +0000 (04:31 +0200)
committerJavier Jardón <jjardon@gnome.org>
Mon, 7 Jun 2010 02:37:06 +0000 (04:37 +0200)
docs/reference/gdk/gdk3-sections.txt
docs/reference/gdk/tmpl/x_interaction.sgml
gdk/gdk.symbols
gdk/x11/gdkcolor-x11.c
gdk/x11/gdkx.h

index f163c52ed02de76c57d270448ba84882faa31618..da9208c9e9c2570d9cb565f497e1ad4033c85cf6 100644 (file)
@@ -1335,7 +1335,6 @@ GDK_GC_XGC
 GDK_GC_GET_XGC
 GDK_WINDOW_XWINDOW
 gdkx_visual_get
-gdkx_colormap_get
 gdk_pixmap_foreign_new
 gdk_pixmap_foreign_new_for_display
 gdk_pixmap_foreign_new_for_screen
index 38a2e6f6c58821958660fab5b2e808679f633f6c..6d3620df74885e39dede4f2c78f97b2a4b69ffdc 100644 (file)
@@ -249,14 +249,6 @@ Another name for GDK_DRAWABLE_XID().
 @Returns: 
 
 
-<!-- ##### FUNCTION gdkx_colormap_get ##### -->
-<para>
-</para>
-
-@xcolormap: 
-@Returns: 
-
-
 <!-- ##### FUNCTION gdk_pixmap_foreign_new ##### -->
 <para>
 
index d114d6e357e1f65ba562094725ed4a13e3a6b150..971bc61a460f8bc95fb652bdeca9447e8b2068ca 100644 (file)
@@ -1251,9 +1251,6 @@ gdk_x11_xatom_to_atom_for_display
 gdk_x11_colormap_foreign_new
 gdk_x11_colormap_get_xcolormap
 gdk_x11_colormap_get_xdisplay
-#ifdef GDK_ENABLE_BROKEN
-gdkx_colormap_get
-#endif
 #endif
 
 #if IN_FILE(__GDK_CURSOR_X11_C__)
index 8cb5fb8f9d282dcc688c3341237a011342aeb933..e71038f713c088d6cc6603894af73551d0f99fd0 100644 (file)
@@ -1151,41 +1151,6 @@ gdk_x11_colormap_foreign_new (GdkVisual *visual,
   
 }
 
-/**
- * gdkx_colormap_get:
- * @xcolormap: the XID of a colormap for the default screen.
- * 
- * Returns a #GdkColormap corresponding to a X colormap;
- * this function only works if the colormap is already
- * known to GTK+ (a colormap created by GTK+ or the default
- * colormap for the screen), since GTK+ 
- *
- * Always use gdk_x11_colormap_foreign_new() instead.
- *
- * Return value: the existing #GdkColormap object if it was
- *  already known to GTK+, otherwise warns and return
- *  %NULL.
- **/
-GdkColormap*
-gdkx_colormap_get (Colormap xcolormap)
-{
-  GdkScreen *screen = gdk_screen_get_default ();
-  GdkColormap *colormap;
-
-  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);
-
-  g_warning ("Colormap passed to gdkx_colormap_get\n"
-            "does not previously exist");
-
-  return NULL;
-}
-
 static gint
 gdk_colormap_match_color (GdkColormap *cmap,
                          GdkColor    *color,
index d8aa42c843acdecb9b47cb668c56c75f076f146e..c56d4629963a8740d8fe18b8bff8e763a95a81a9 100644 (file)
@@ -129,11 +129,6 @@ GdkVisual* gdk_x11_screen_lookup_visual (GdkScreen *screen,
 GdkVisual* gdkx_visual_get            (VisualID   xvisualid);
 #endif
 
-#ifdef GDK_ENABLE_BROKEN
-/* XXX: An X Colormap is useless unless we also have the visual. */
-GdkColormap* gdkx_colormap_get (Colormap xcolormap);
-#endif
-
 GdkColormap *gdk_x11_colormap_foreign_new (GdkVisual *visual,
                                           Colormap   xcolormap);