[Xfce4-commits] <xfce4-cpugraph-plugin:master> Only set bar color if bars are enabled (bug #9071)

Landry Breuil noreply at xfce.org
Mon Jul 2 17:14:05 CEST 2012


Updating branch refs/heads/master
         to 25b2e1e8deec574201092559901d6154dc608ab7 (commit)
       from 95997aef92a29ee155ac442965915927950bfdfc (commit)

commit 25b2e1e8deec574201092559901d6154dc608ab7
Author: Landry Breuil <landry at xfce.org>
Date:   Mon Jul 2 17:12:03 2012 +0200

    Only set bar color if bars are enabled (bug #9071)

 panel-plugin/cpu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index b1030c2..c454124 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -517,7 +517,7 @@ void set_color( CPUGraph *base, guint number, GdkColor color )
 		gtk_widget_modify_bg( base->draw_area, GTK_STATE_INSENSITIVE, &base->colors[0] );
 		gtk_widget_modify_bg( base->draw_area, GTK_STATE_NORMAL, &base->colors[0] );
 	}
-	if( number == 4 )
+	if( number == 4 && base->has_bars )
 	{
 		n = nb_bars( base );
 


More information about the Xfce4-commits mailing list