Adapt width chars to new length of string in panel
parent
cdaaa14f91
commit
c1918ac3e7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue