[Xfce4-commits] <xfce4-netload-plugin:master> Bug 7804: Fix vertical alignment for tx-label
Mike Massonnet
noreply at xfce.org
Sat Jan 7 15:20:03 CET 2012
Updating branch refs/heads/master
to 3b826752562c759b33cf4706ebb6b4623bebcb4d (commit)
from 31496db1f873ac4c069f2d6035f7d5f50e5507bd (commit)
commit 3b826752562c759b33cf4706ebb6b4623bebcb4d
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Jan 7 14:22:21 2012 +0100
Bug 7804: Fix vertical alignment for tx-label
Attachment 4075
panel-plugin/netload.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index ba1ae31..3019d4c 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -320,7 +320,6 @@ static void monitor_set_orientation (XfcePanelPlugin *plugin, GtkOrientation ori
global->monitor->sent_label = gtk_label_new("");
gtk_label_set_width_chars(GTK_LABEL(global->monitor->sent_label), 13);
- gtk_misc_set_alignment(GTK_MISC(global->monitor->sent_label), 0.0f, 0.5f);
gtk_widget_show(global->monitor->sent_label);
if (orientation == GTK_ORIENTATION_HORIZONTAL)
@@ -331,6 +330,7 @@ static void monitor_set_orientation (XfcePanelPlugin *plugin, GtkOrientation ori
gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(global->monitor->status[i]),
GTK_PROGRESS_BOTTOM_TO_TOP);
}
+ gtk_misc_set_alignment(GTK_MISC(global->monitor->sent_label), 0.0f, 0.5f);
}
else
{
@@ -340,6 +340,7 @@ static void monitor_set_orientation (XfcePanelPlugin *plugin, GtkOrientation ori
gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(global->monitor->status[i]),
GTK_PROGRESS_LEFT_TO_RIGHT);
}
+ gtk_misc_set_alignment(GTK_MISC(global->monitor->sent_label), 1.0f, 0.5f);
}
gtk_box_pack_start(GTK_BOX(global->monitor->box),
More information about the Xfce4-commits
mailing list