[gtk+/rendering-cleanup: 98/140] style: Remove depth checks in render functions



commit d79e7da1741099544778b98da2a350d42e6e1a30
Author: Benjamin Otte <otte redhat com>
Date:   Sat Aug 28 11:52:19 2010 +0200

    style: Remove depth checks in render functions
    
    There's no need for them anymore now that we render with Cairo.

 gtk/gtkstyle.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 95e8b0c..ce816b4 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -4551,7 +4551,6 @@ gtk_paint_hline (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_hline != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -4630,7 +4629,6 @@ gtk_paint_vline (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_vline != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -4713,7 +4711,6 @@ gtk_paint_shadow (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_shadow != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -4808,7 +4805,6 @@ gtk_paint_arrow (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_arrow != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -4903,7 +4899,6 @@ gtk_paint_diamond (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_diamond != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
   
@@ -4993,7 +4988,6 @@ gtk_paint_box (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_box != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -5080,7 +5074,6 @@ gtk_paint_flat_box (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_flat_box != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -5172,7 +5165,6 @@ gtk_paint_check (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_check != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -5259,7 +5251,6 @@ gtk_paint_option (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_option != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -5346,7 +5337,6 @@ gtk_paint_tab (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_tab != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -5440,7 +5430,6 @@ gtk_paint_shadow_gap (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_shadow_gap != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
   
@@ -5546,7 +5535,6 @@ gtk_paint_box_gap (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_box_gap != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -5644,7 +5632,6 @@ gtk_paint_extension (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_extension != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -5734,7 +5721,6 @@ gtk_paint_focus (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_focus != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -5825,7 +5811,6 @@ gtk_paint_slider (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_slider != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -5919,7 +5904,6 @@ gtk_paint_handle (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_handle != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   sanitize_size (window, &width, &height);
 
@@ -6016,7 +6000,6 @@ gtk_paint_expander (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_expander != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -6106,7 +6089,6 @@ gtk_paint_layout (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_layout != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -6192,7 +6174,6 @@ gtk_paint_resize_grip (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_resize_grip != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 
@@ -6278,7 +6259,6 @@ gtk_paint_spinner (GtkStyle           *style,
 
   g_return_if_fail (GTK_IS_STYLE (style));
   g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_spinner != NULL);
-  g_return_if_fail (style->depth == gdk_drawable_get_depth (window));
 
   cr = gtk_style_cairo_create (window, area);
 



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