[gnome-themes-standard] Remove custom arrow from engine



commit 7721a23b7861f77fbba38cbaf7d3f416f581ef1e
Author: William Jon McCann <william jon mccann gmail com>
Date:   Mon Aug 5 16:38:01 2013 +0200

    Remove custom arrow from engine
    
    It is now the default in GTK.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707922

 themes/Adwaita/gtk-3.0/adwaita_engine.c |   40 -------------------------------
 1 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/adwaita_engine.c b/themes/Adwaita/gtk-3.0/adwaita_engine.c
index cb18754..74931f8 100644
--- a/themes/Adwaita/gtk-3.0/adwaita_engine.c
+++ b/themes/Adwaita/gtk-3.0/adwaita_engine.c
@@ -169,45 +169,6 @@ adwaita_engine_init (AdwaitaEngine *self)
 }
 
 static void
-adwaita_engine_render_arrow (GtkThemingEngine *engine,
-                             cairo_t          *cr,
-                             gdouble           angle,
-                             gdouble           x,
-                             gdouble           y,
-                             gdouble           size)
-{
-  double line_width;
-  GtkStateFlags state;
-  GdkRGBA color;
-
-  cairo_save (cr);
-
-  line_width = size / 3.0 / sqrt (2);
-  cairo_set_line_width (cr, line_width);
-  cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);
-  cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
-
-  cairo_translate (cr, x + size / 2.0, y + size / 2.0);
-  cairo_rotate (cr, angle - G_PI_2);
-  cairo_translate (cr, size / 4.0, 0);
- 
-  cairo_scale (cr,
-               (size / (size + line_width)),
-               (size / (size + line_width)));
-
-  cairo_move_to (cr, -size / 2.0, -size / 2.0);
-  cairo_rel_line_to (cr, size / 2.0, size / 2.0);
-  cairo_rel_line_to (cr, - size / 2.0, size / 2.0);
-
-  state = gtk_theming_engine_get_state (engine);
-  gtk_theming_engine_get_color (engine, state, &color);
-  gdk_cairo_set_source_rgba (cr, &color);
-  cairo_stroke (cr);
-
-  cairo_restore (cr);
-}
-
-static void
 adwaita_engine_render_focus (GtkThemingEngine *engine,
                              cairo_t          *cr,
                              gdouble           x,
@@ -281,7 +242,6 @@ adwaita_engine_class_init (AdwaitaEngineClass *klass)
 
   oclass->finalize = adwaita_engine_finalize;
 
-  engine_class->render_arrow = adwaita_engine_render_arrow;
   engine_class->render_focus = adwaita_engine_render_focus;
 }
 


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