Adapt width chars to new length of string in panel

master
Mike Massonnet 2012-01-08 15:40:49 +01:00
parent cdaaa14f91
commit c1918ac3e7
1 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ static void monitor_set_orientation (XfcePanelPlugin *plugin, GtkOrientation ori
gtk_widget_show(global->monitor->label); gtk_widget_show(global->monitor->label);
global->monitor->rcv_label = gtk_label_new(""); 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_misc_set_alignment(GTK_MISC(global->monitor->rcv_label), 1.0f, 0.5f);
gtk_widget_show(global->monitor->rcv_label); 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(""); 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); gtk_widget_show(global->monitor->sent_label);
if (orientation == GTK_ORIENTATION_HORIZONTAL) if (orientation == GTK_ORIENTATION_HORIZONTAL)