More packets_bar_update improvements.
svn path=/trunk/; revision=37134
This commit is contained in:
parent
716132e53a
commit
0220f5d8ee
1 changed files with 3 additions and 4 deletions
|
@ -471,7 +471,6 @@ packets_bar_update(void)
|
||||||
if(packets_bar) {
|
if(packets_bar) {
|
||||||
/* Remove old status */
|
/* Remove old status */
|
||||||
if(packets_str) {
|
if(packets_str) {
|
||||||
g_string_truncate(packets_str, 0);
|
|
||||||
gtk_statusbar_pop(GTK_STATUSBAR(packets_bar), packets_ctx);
|
gtk_statusbar_pop(GTK_STATUSBAR(packets_bar), packets_ctx);
|
||||||
} else {
|
} else {
|
||||||
packets_str = g_string_new ("");
|
packets_str = g_string_new ("");
|
||||||
|
@ -479,7 +478,7 @@ packets_bar_update(void)
|
||||||
|
|
||||||
/* Do we have any packets? */
|
/* Do we have any packets? */
|
||||||
if(cfile.count) {
|
if(cfile.count) {
|
||||||
g_string_append_printf(packets_str, " Packets: %u Displayed: %u Marked: %u",
|
g_string_printf(packets_str, " Packets: %u Displayed: %u Marked: %u",
|
||||||
cfile.count, cfile.displayed_count, cfile.marked_count);
|
cfile.count, cfile.displayed_count, cfile.marked_count);
|
||||||
if(cfile.drops_known) {
|
if(cfile.drops_known) {
|
||||||
g_string_append_printf(packets_str, " Dropped: %u", cfile.drops);
|
g_string_append_printf(packets_str, " Dropped: %u", cfile.drops);
|
||||||
|
@ -496,7 +495,7 @@ packets_bar_update(void)
|
||||||
computed_elapsed%1000);
|
computed_elapsed%1000);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
g_string_append(packets_str, " No Packets");
|
g_string_printf(packets_str, " No Packets");
|
||||||
}
|
}
|
||||||
gtk_statusbar_push(GTK_STATUSBAR(packets_bar), packets_ctx, packets_str->str);
|
gtk_statusbar_push(GTK_STATUSBAR(packets_bar), packets_ctx, packets_str->str);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue