This is an automated email from the git hooks/post-receive script.

andre pushed a 
commit to branch 
master
in repository panel-plugins/xfce4-cpugraph-plugin.

commit d68571177251e8a1633d9a8d37cee65251175007
Author: Andre Miranda <andre...@xfce.org>
Date:   Sat Jun 1 16:33:02 2019 -0300

    Fix bars in horizontal mode
---
 panel-plugin/cpu.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index 1587e35..d8496e9 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -282,8 +282,11 @@ static void set_bars_orientation( CPUGraph *base, 
GtkOrientation orientation)
                GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL;
 
        n = nb_bars( base );
-       for( i=0; i < n; i++ )
+       for( i=0; i < n; i++ ) {
                gtk_orientable_set_orientation( GTK_ORIENTABLE( base->bars[i] 
), orientation );
+               gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (base->bars[i]),
+                                              orientation == 
GTK_ORIENTATION_VERTICAL);
+       }
 }
 
 static gboolean update_cb( CPUGraph * base )

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to