[gtk+/gtk-style-context: 334/533] GtkThemingEngine: Get rid of obsolete code for tooltips.



commit 0c5156132dbc4c2c8fe9bc99b23e10d460fa50ab
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 8 12:48:29 2010 +0100

    GtkThemingEngine: Get rid of obsolete code for tooltips.

 gtk/gtkthemingengine.c |   22 ++++++----------------
 1 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 583e87e..4657767 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1579,25 +1579,15 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine,
   else
     gdk_cairo_set_source_rgba (cr, bg_color);
 
-  if (gtk_theming_engine_has_class (engine, "tooltip"))
-    {
-      cairo_fill_preserve (cr);
-
-      cairo_set_source_rgb (cr, 0, 0, 0);
-      cairo_stroke (cr);
-    }
+  if (alpha == 1)
+    cairo_fill (cr);
   else
     {
-      if (alpha == 1)
-        cairo_fill (cr);
-      else
-        {
-          cairo_pattern_t *mask;
+      cairo_pattern_t *mask;
 
-          mask = cairo_pattern_create_rgba (1, 1, 1, alpha);
-          cairo_mask (cr, mask);
-          cairo_pattern_destroy (mask);
-        }
+      mask = cairo_pattern_create_rgba (1, 1, 1, alpha);
+      cairo_mask (cr, mask);
+      cairo_pattern_destroy (mask);
     }
 
   cairo_restore (cr);



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