[Xfce4-commits] <gtk-xfce-engine:master> For grip style slide use color instead of background:selected

Peter de Ridder noreply at xfce.org
Sat Dec 17 17:16:12 CET 2011


Updating branch refs/heads/master
         to 4e67318b817588aa941542a02849c2394fe1c462 (commit)
       from 18dcbfbff5e3df29e9dede82004bff9b5e896abc (commit)

commit 4e67318b817588aa941542a02849c2394fe1c462
Author: Peter de Ridder <peter at xfce.org>
Date:   Mon Dec 12 14:54:48 2011 +0100

    For grip style slide use color instead of background:selected

 gtk-3.0/xfce_engine.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/gtk-3.0/xfce_engine.c b/gtk-3.0/xfce_engine.c
index d9dca59..1c2640e 100644
--- a/gtk-3.0/xfce_engine.c
+++ b/gtk-3.0/xfce_engine.c
@@ -244,19 +244,15 @@ static void xfce_draw_grip_rough (GtkThemingEngine * engine, cairo_t * cr, GtkSt
 
 static void xfce_draw_grip_slide (GtkThemingEngine * engine, cairo_t * cr, GtkStateFlags state, gdouble x, gdouble y, gdouble width, gdouble height, GtkOrientation orientation)
 {
-    gint xthick, ythick;
     gint gx, gy, gwidth, gheight;
     GdkRGBA light, dark, mid, bg;
     GtkBorder border;
 
     gtk_theming_engine_get_border(engine, state, &border);
 
-    xthick = border.left;
-    ythick = border.top;
-
     gtk_theming_engine_get_border_color(engine, state, &dark);
     color_dark2light_mid(&dark, &light, &mid);
-    gtk_theming_engine_get_background_color(engine, GTK_STATE_FLAG_SELECTED, &bg);
+    gtk_theming_engine_get_color(engine, state, &bg);
 
     gx = gy = gwidth = gheight = 0;
 


More information about the Xfce4-commits mailing list