From 3b826752562c759b33cf4706ebb6b4623bebcb4d Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Sat, 7 Jan 2012 14:22:21 +0100 Subject: [PATCH] Bug 7804: Fix vertical alignment for tx-label Attachment 4075 --- panel-plugin/netload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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),