[gtk-engines/gnome3] GTK_WIDGET_NO_WINDOW -> gtk_widget_get_has_window



commit d37cfd8e9869be94944533df69b17730a19a26c3
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 12 16:23:47 2010 +0100

    GTK_WIDGET_NO_WINDOW -> gtk_widget_get_has_window

 engines/clearlooks/src/clearlooks_style.c |    2 +-
 engines/clearlooks/src/support.c          |    2 +-
 engines/hc/src/hc-style.c                 |    4 ++--
 engines/mist/src/mist-style.c             |    6 +++---
 engines/thinice/src/thinice_theme_draw.c  |    6 +++---
 5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/engines/clearlooks/src/clearlooks_style.c b/engines/clearlooks/src/clearlooks_style.c
index ad0c72e..62d0f8a 100644
--- a/engines/clearlooks/src/clearlooks_style.c
+++ b/engines/clearlooks/src/clearlooks_style.c
@@ -1888,7 +1888,7 @@ clearlooks_style_draw_layout (GtkStyle * style,
 
 		clearlooks_set_widget_parameters (widget, style, state_type, &params);
 
-		if (GTK_WIDGET_NO_WINDOW (widget))
+		if (gtk_widget_get_has_window (widget))
 			ge_shade_color (&params.parentbg, 1.2, &temp);
 		else
 			ge_shade_color (&colors->bg[widget->state], 1.2, &temp);
diff --git a/engines/clearlooks/src/support.c b/engines/clearlooks/src/support.c
index 21c8197..be23783 100644
--- a/engines/clearlooks/src/support.c
+++ b/engines/clearlooks/src/support.c
@@ -64,7 +64,7 @@ clearlooks_get_parent_bg (const GtkWidget *widget, CairoColor *color)
 	{
 		stop = FALSE;
 
-		stop |= !GTK_WIDGET_NO_WINDOW (parent);
+		stop |= !gtk_widget_get_has_window (parent);
 		stop |= GTK_IS_NOTEBOOK (parent) &&
 		        gtk_notebook_get_show_tabs (GTK_NOTEBOOK (parent)) &&
 		        gtk_notebook_get_show_border (GTK_NOTEBOOK (parent));
diff --git a/engines/hc/src/hc-style.c b/engines/hc/src/hc-style.c
index 3aff4b5..f89c536 100644
--- a/engines/hc/src/hc-style.c
+++ b/engines/hc/src/hc-style.c
@@ -434,7 +434,7 @@ hc_draw_box (GtkStyle	*style,
 	/* Draw Fill                                   */
 	/***********************************************/
 	gtk_style_apply_default_background (style, window,
-        					widget && !GTK_WIDGET_NO_WINDOW (widget),
+        					widget && !gtk_widget_get_has_window (widget),
 						state_type, area, x, y, width, height);
   
 
@@ -478,7 +478,7 @@ hc_draw_box_gap (GtkStyle       *style,
 	/* Draw Fill                                   */
 	/***********************************************/
 	gtk_style_apply_default_background (style, window,
-	                                    widget && !GTK_WIDGET_NO_WINDOW (widget),
+	                                    widget && !gtk_widget_get_has_window (widget),
 	                                    state_type, area, x, y, width, height);
 
 
diff --git a/engines/mist/src/mist-style.c b/engines/mist/src/mist-style.c
index 697db00..39fc303 100644
--- a/engines/mist/src/mist-style.c
+++ b/engines/mist/src/mist-style.c
@@ -634,7 +634,7 @@ mist_style_draw_box(GtkStyle *style,
 		}
 		
 		gtk_style_apply_default_background(style, window,
-						   widget && !GTK_WIDGET_NO_WINDOW(widget),
+						   widget && !gtk_widget_get_has_window (widget),
 						   state_type, area,
 						   x, y, width, height);
 
@@ -879,7 +879,7 @@ mist_style_draw_box_gap(GtkStyle *style,
 	SANITIZE_SIZE
 
 	gtk_style_apply_default_background(style, window,
-					   widget && !GTK_WIDGET_NO_WINDOW(widget),
+					   widget && !gtk_widget_get_has_window (widget),
 					   state_type, area,
 					   x, y, width, height);
 
@@ -924,7 +924,7 @@ mist_style_draw_extension(GtkStyle *style,
 	} else {
 		gtk_style_apply_default_background
 			(style, window,
-			 widget && !GTK_WIDGET_NO_WINDOW(widget),
+			 widget && !gtk_widget_get_has_window (widget),
 			 state_type, area, x, y, width, height);
 	}
 	
diff --git a/engines/thinice/src/thinice_theme_draw.c b/engines/thinice/src/thinice_theme_draw.c
index 573de35..611d4ba 100644
--- a/engines/thinice/src/thinice_theme_draw.c
+++ b/engines/thinice/src/thinice_theme_draw.c
@@ -581,7 +581,7 @@ thinice_style_draw_box(GtkStyle * style,
 	else
 	{
 		gtk_style_apply_default_background(style, window,
-				widget && !GTK_WIDGET_NO_WINDOW(widget),
+				widget && !gtk_widget_get_has_window (widget),
 				state_type, area,
 				x, y, width, height);
 	}
@@ -939,7 +939,7 @@ thinice_style_draw_box_gap(GtkStyle * style,
     SANITIZE_SIZE
 
     gtk_style_apply_default_background(style, window,
-            widget && !GTK_WIDGET_NO_WINDOW(widget),
+            widget && !gtk_widget_get_has_window (widget),
             state_type, area,
             x, y, width, height);
     thinice_style_draw_shadow_gap (style, window, state_type, shadow_type,
@@ -977,7 +977,7 @@ thinice_style_draw_extension(DRAW_ARGS, GtkPositionType gap_side)
 	else
 	{
 		gtk_style_apply_default_background(style, window,
-				widget && !GTK_WIDGET_NO_WINDOW(widget),
+				widget && !gtk_widget_get_has_window (widget),
 				state_type, area, x, y, width, height);
 	}
 



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