[Xfce4-commits] [panel-plugins/xfce4-diskperf-plugin] 11/16: Use GtkOrientable on GtkProgressBar, and set inverted property based on orientation
noreply at xfce.org
noreply at xfce.org
Thu Apr 28 18:10:11 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-diskperf-plugin.
commit 7491fffcab38074c06d2fd76a8da84445c6e21df
Author: Landry Breuil <landry at xfce.org>
Date: Thu Apr 28 18:05:52 2016 +0200
Use GtkOrientable on GtkProgressBar, and set inverted property based on orientation
---
panel-plugin/main.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 174e0e7..b2fd833 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -402,11 +402,11 @@ static int CreateMonitorBars (struct diskperf_t *p_poPlugin,
for (i = 0; i < 2; i++) {
pwBar = poMonitor->awProgressBar + i;
*pwBar = GTK_WIDGET (gtk_progress_bar_new ());
- gtk_progress_bar_set_orientation (GTK_PROGRESS_BAR (*pwBar),
- (p_iOrientation ==
- GTK_ORIENTATION_HORIZONTAL ?
- GTK_PROGRESS_BOTTOM_TO_TOP :
- GTK_PROGRESS_LEFT_TO_RIGHT));
+ gtk_orientable_set_orientation (GTK_ORIENTABLE(*pwBar), !p_iOrientation);
+ gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR(*pwBar),
+ (p_iOrientation ==
+ GTK_ORIENTATION_HORIZONTAL));
+
if ((i == 1) && poConf->fRW_DataCombined)
gtk_widget_hide (GTK_WIDGET (*pwBar));
else
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list