[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 19/20: Fix stdout pollution due bad if handling
noreply at xfce.org
noreply at xfce.org
Sat May 6 21:01:20 CEST 2017
This is an automated email from the git hooks/post-receive script.
andre pushed a commit to branch master
in repository panel-plugins/xfce4-cpufreq-plugin.
commit d6b506e2933684cbea7b7423593f0f1b771e39a0
Author: Andre Miranda <andre42m at gmail.com>
Date: Tue Dec 20 22:17:56 2016 -0300
Fix stdout pollution due bad if handling
---
panel-plugin/xfce4-cpufreq-plugin.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c
index 50f61cb..6801426 100644
--- a/panel-plugin/xfce4-cpufreq-plugin.c
+++ b/panel-plugin/xfce4-cpufreq-plugin.c
@@ -277,19 +277,24 @@ cpufreq_widgets_layout (void)
FALSE, FALSE, 0, GTK_PACK_START);
} else {
if (orientation == GTK_ORIENTATION_VERTICAL) {
- if (cpuFreq->icon)
+ if (cpuFreq->icon) {
gtk_widget_set_halign (cpuFreq->icon, GTK_ALIGN_CENTER);
gtk_widget_set_valign (cpuFreq->icon, GTK_ALIGN_END);
+ }
+
if (cpuFreq->label)
gtk_widget_set_halign (cpuFreq->label, GTK_ALIGN_CENTER);
} else {
if (cpuFreq->icon)
gtk_widget_set_valign (cpuFreq->icon, GTK_ALIGN_CENTER);
- if (cpuFreq->label)
+
+ if (cpuFreq->label) {
gtk_widget_set_halign (cpuFreq->label, GTK_ALIGN_END);
gtk_widget_set_valign (cpuFreq->label, GTK_ALIGN_CENTER);
+ }
pos = resized ? 1 : 0;
}
+
if (cpuFreq->label)
gtk_label_set_justify (GTK_LABEL (cpuFreq->label),
resized
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list