[gnome-control-center] user-account: Don't stroke the down arrow with the border color



commit a880013b3e44fd22a49b0563fabd9542de17cce7
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Nov 28 20:45:32 2014 +0100

    user-account: Don't stroke the down arrow with the border color
    
    Besides using deprecated gtk+ API this color is actually fully
    transparent in the current GNOME theme, meaning that the arrow ended
    up looking smaller than intended.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740986

 panels/user-accounts/um-utils.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/panels/user-accounts/um-utils.c b/panels/user-accounts/um-utils.c
index e114a5a..c1a1812 100644
--- a/panels/user-accounts/um-utils.c
+++ b/panels/user-accounts/um-utils.c
@@ -414,7 +414,6 @@ down_arrow (GtkStyleContext *context,
 {
         GtkStateFlags flags;
         GdkRGBA fg_color;
-        GdkRGBA outline_color;
         gdouble vertical_overshoot;
         gint diameter;
         gdouble radius;
@@ -425,7 +424,6 @@ down_arrow (GtkStyleContext *context,
         flags = gtk_style_context_get_state (context);
 
         gtk_style_context_get_color (context, flags, &fg_color);
-        gtk_style_context_get_border_color (context, flags, &outline_color);
 
         line_width = 1;
         angle = G_PI / 2;
@@ -457,8 +455,6 @@ down_arrow (GtkStyleContext *context,
         gdk_cairo_set_source_rgba (cr, &fg_color);
 
         cairo_fill_preserve (cr);
-
-        gdk_cairo_set_source_rgba (cr, &outline_color);
         cairo_stroke (cr);
 
         cairo_restore (cr);


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