[Xfce4-commits] [panel-plugins/xfce4-cpugraph-plugin] 01/01: Fix bars in horizontal mode
noreply at xfce.org
noreply at xfce.org
Sat Jun 1 21:34:12 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-cpugraph-plugin.
commit d68571177251e8a1633d9a8d37cee65251175007
Author: Andre Miranda <andreldm at 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.
More information about the Xfce4-commits
mailing list