gtk-engines r1356 - in trunk: . engines/clearlooks/src



Author: chpe
Date: Thu Apr  2 17:50:35 2009
New Revision: 1356
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1356&view=rev

Log:
2009-04-02  Christian Persch  <chpe gnome org>

	* engines/clearlooks/src/clearlooks_draw.c:
	(clearlooks_set_mixed_color):
	* engines/clearlooks/src/clearlooks_draw.h:
	* engines/clearlooks/src/clearlooks_draw_glossy.c:
	* engines/clearlooks/src/clearlooks_draw_gummy.c: Fix unresolved
	symbol error. Bug #576786.

Modified:
   trunk/ChangeLog
   trunk/engines/clearlooks/src/clearlooks_draw.c
   trunk/engines/clearlooks/src/clearlooks_draw.h
   trunk/engines/clearlooks/src/clearlooks_draw_glossy.c
   trunk/engines/clearlooks/src/clearlooks_draw_gummy.c

Modified: trunk/engines/clearlooks/src/clearlooks_draw.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw.c	Thu Apr  2 17:50:35 2009
@@ -2456,6 +2456,18 @@
 }
 
 void
+clearlooks_set_mixed_color (cairo_t          *cr,
+                            const CairoColor *color1,
+                            const CairoColor *color2,
+                            gdouble mix_factor)
+{
+	CairoColor composite;
+
+	ge_mix_color (color1, color2, mix_factor, &composite);
+	ge_cairo_set_color (cr, &composite);
+}
+
+void
 clearlooks_register_style_classic (ClearlooksStyleFunctions *functions, ClearlooksStyleConstants *constants)
 {
 	g_assert (functions);

Modified: trunk/engines/clearlooks/src/clearlooks_draw.h
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw.h	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw.h	Thu Apr  2 17:50:35 2009
@@ -44,4 +44,9 @@
                                         const FocusParameters  *focus,
                                         int x, int y, int width, int height);
 
+GE_INTERNAL void clearlooks_set_mixed_color (cairo_t          *cr,
+                                             const CairoColor *color1,
+                                             const CairoColor *color2,
+                                             gdouble mix_factor);
+
 #endif /* CLEARLOOKS_DRAW_H */

Modified: trunk/engines/clearlooks/src/clearlooks_draw_glossy.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_glossy.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_glossy.c	Thu Apr  2 17:50:35 2009
@@ -66,18 +66,6 @@
 	cairo_pattern_destroy (pt);
 }
 
-static void
-clearlooks_set_mixed_color (cairo_t          *cr, 
-                            const CairoColor *color1, 
-                            const CairoColor *color2, 
-                            gdouble mix_factor)
-{
-	CairoColor composite;
-
-	ge_mix_color (color1, color2, mix_factor, &composite);
-	ge_cairo_set_color (cr, &composite);
-}
-
 /* This draw_inset implementation only differes in the shades values from the
  * default one. */
 static void

Modified: trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_gummy.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_gummy.c	Thu Apr  2 17:50:35 2009
@@ -76,18 +76,6 @@
 }
 
 static void
-clearlooks_set_mixed_color (cairo_t          *cr,
-                            const CairoColor *color1,
-                            const CairoColor *color2,
-                            gdouble mix_factor)
-{
-	CairoColor composite;
-
-	ge_mix_color (color1, color2, mix_factor, &composite);
-	ge_cairo_set_color (cr, &composite);
-}
-
-static void
 clearlooks_gummy_draw_highlight_and_shade (cairo_t                *cr,
                                            const CairoColor       *bg_color,
                                            const ShadowParameters *params,



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