From c1918ac3e7de44554fffccaa0e01be9a8bc541db Mon Sep 17 00:00:00 2001 From: Mike Massonnet Date: Sun, 8 Jan 2012 15:40:49 +0100 Subject: [PATCH] Adapt width chars to new length of string in panel --- panel-plugin/netload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c index d361d1a..ce8a9c9 100644 --- a/panel-plugin/netload.c +++ b/panel-plugin/netload.c @@ -313,7 +313,7 @@ static void monitor_set_orientation (XfcePanelPlugin *plugin, GtkOrientation ori gtk_widget_show(global->monitor->label); global->monitor->rcv_label = gtk_label_new(""); - gtk_label_set_width_chars(GTK_LABEL(global->monitor->rcv_label), 10); + gtk_label_set_width_chars(GTK_LABEL(global->monitor->rcv_label), 7); gtk_misc_set_alignment(GTK_MISC(global->monitor->rcv_label), 1.0f, 0.5f); gtk_widget_show(global->monitor->rcv_label); @@ -323,7 +323,7 @@ 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), 10); + gtk_label_set_width_chars(GTK_LABEL(global->monitor->sent_label), 7); gtk_widget_show(global->monitor->sent_label); if (orientation == GTK_ORIENTATION_HORIZONTAL)