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



commit b4d8f4cc42039a3028fea6c7b7575d1a854a4573
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 abab28c..aff34e8 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 db3ec07..28e3ee1 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -4214,10 +4214,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
@@ -4300,7 +4298,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 ecd0197..628834b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8928,50 +8928,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 441ef71..566a7cc 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -854,12 +854,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]