[gtk+/rendering-cleanup: 116/141] API: Remove setters and getters for default colormaps



commit 6ed4457124590c8221da4edcecd9e3f660495d58
Author: Benjamin Otte <otte redhat com>
Date:   Sat Aug 28 23:22:34 2010 +0200

    API: Remove setters and getters for default colormaps
    
    This removes:
    gtk_widget_set_default_colormap()
    gtk_widget_get_default_colormap()
    gtk_widget_get_default_visual()
    
    Colormaps are gone, and the default visual is the system visual of the
    default screen.

 docs/reference/gtk/gtk3-sections.txt |    3 --
 gtk/gtk.symbols                      |    3 --
 gtk/gtkwidget.c                      |   44 ----------------------------------
 gtk/gtkwidget.h                      |    5 ----
 4 files changed, 0 insertions(+), 55 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index e1179d5..0f6a783 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -4818,10 +4818,7 @@ gtk_widget_set_style
 gtk_widget_ensure_style
 gtk_widget_get_style
 gtk_widget_reset_rc_styles
-gtk_widget_set_default_colormap
 gtk_widget_get_default_style
-gtk_widget_get_default_colormap
-gtk_widget_get_default_visual
 gtk_widget_set_direction
 GtkTextDirection
 gtk_widget_get_direction
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index e439ea1..6cc9f8c 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -4212,10 +4212,8 @@ gtk_widget_get_child_requisition
 gtk_widget_get_child_visible
 gtk_widget_get_clipboard
 gtk_widget_get_composite_name
-gtk_widget_get_default_colormap
 gtk_widget_get_default_direction
 gtk_widget_get_default_style
-gtk_widget_get_default_visual
 gtk_widget_get_direction
 gtk_widget_get_display
 gtk_widget_get_double_buffered
@@ -4298,7 +4296,6 @@ gtk_widget_set_allocation
 gtk_widget_set_app_paintable
 gtk_widget_set_child_visible
 gtk_widget_set_composite_name
-gtk_widget_set_default_colormap
 gtk_widget_set_default_direction
 gtk_widget_set_direction
 gtk_widget_set_double_buffered
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 111be9c..593d9dc 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8571,50 +8571,6 @@ gtk_widget_pop_composite_child (void)
     composite_child_stack--;
 }
 
-/**
- * gtk_widget_set_default_colormap:
- * @colormap: a #GdkColormap
- * 
- * Sets the default colormap to use when creating widgets.
- * gtk_widget_push_colormap() is a better function to use if
- * you only want to affect a few widgets, rather than all widgets.
- **/
-void
-gtk_widget_set_default_colormap (GdkColormap *colormap)
-{
-  g_return_if_fail (GDK_IS_COLORMAP (colormap));
-  
-  gdk_screen_set_default_colormap (gdk_colormap_get_screen (colormap),
-				   colormap);
-}
-
-/**
- * gtk_widget_get_default_colormap:
- * 
- * Obtains the default colormap used to create widgets.
- *
- * Return value: (transfer none): default widget colormap
- **/
-GdkColormap*
-gtk_widget_get_default_colormap (void)
-{
-  return gdk_screen_get_default_colormap (gdk_screen_get_default ());
-}
-
-/**
- * gtk_widget_get_default_visual:
- * 
- * Obtains the visual of the default colormap. Not really useful;
- * used to be useful before gdk_colormap_get_visual() existed.
- *
- * Return value: (transfer none): visual of the default colormap
- **/
-GdkVisual*
-gtk_widget_get_default_visual (void)
-{
-  return gdk_colormap_get_visual (gtk_widget_get_default_colormap ());
-}
-
 static void
 gtk_widget_emit_direction_changed (GtkWidget        *widget,
 				   GtkTextDirection  old_dir)
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 5e36082..418fe6c 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -816,12 +816,7 @@ void gtk_widget_style_get          (GtkWidget	     *widget,
 
 /* Set certain default values to be used at widget creation time.
  */
-void	     gtk_widget_set_default_colormap (GdkColormap *colormap);
 GtkStyle*    gtk_widget_get_default_style    (void);
-#ifndef GDK_MULTIHEAD_SAFE
-GdkColormap* gtk_widget_get_default_colormap (void);
-GdkVisual*   gtk_widget_get_default_visual   (void);
-#endif
 
 /* Functions for setting directionality for widgets
  */



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