[gnome-shell] [StThemeNodeTransition] Do not access CoglColor private members directly



commit 0e91a213f5a725a1a98a0b2d3c5f632da6c8037f
Author: Marc-Antoine Perennou <Marc-Antoine Perennou com>
Date:   Tue Jun 8 20:38:32 2010 +0200

    [StThemeNodeTransition] Do not access CoglColor private members directly
    
    We should not access CoglColor members directly since they are private starting with clutter 1.3.
    
    Signed-off-by: Adel Gadllah <adel gadllah gmail com>

 src/st/st-theme-node-transition.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/st/st-theme-node-transition.c b/src/st/st-theme-node-transition.c
index 379d04d..37fbdf5 100644
--- a/src/st/st-theme-node-transition.c
+++ b/src/st/st-theme-node-transition.c
@@ -252,7 +252,7 @@ st_theme_node_transition_paint (StThemeNodeTransition *transition,
   StThemeNodeTransitionPrivate *priv = transition->priv;
 
   guint width, height;
-  CoglColor constant = { 0, 0, 0, 0 };
+  CoglColor constant;
   float tex_coords[] = {
     0.0, 0.0, 1.0, 1.0,
     0.0, 0.0, 1.0, 1.0,
@@ -279,7 +279,8 @@ st_theme_node_transition_paint (StThemeNodeTransition *transition,
   width = cogl_texture_get_width (priv->old_texture);
   height = cogl_texture_get_height (priv->old_texture);
 
-  constant.alpha = clutter_alpha_get_alpha (priv->alpha) * paint_opacity;
+  cogl_color_set_from_4ub (&constant, 0, 0, 0,
+                           clutter_alpha_get_alpha (priv->alpha) * paint_opacity);
 
   cogl_material_set_layer_combine_constant (priv->material, 1, &constant);
 



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