diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-02-01 12:55:45 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-02-01 12:55:45 +0000 |
commit | 4ab14aad987b8ce080beccb1a50d6c6e960a8773 (patch) | |
tree | a73520b93a325c2681ca5937168dbbecd4c7d036 /gtk | |
parent | 477a876c8228280c66e0708d343e3af628bdea90 (diff) |
Try to get the status bar to update the "Displayed:" field when if and when a display filter is applied.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31752 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/new_packet_list.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/new_packet_list.c b/gtk/new_packet_list.c index 11fabf5079..a1fa287b44 100644 --- a/gtk/new_packet_list.c +++ b/gtk/new_packet_list.c @@ -133,8 +133,11 @@ new_packet_list_append(column_info *cinfo _U_, frame_data *fdata, packet_info *p /* fdata should be filled with the stuff we need * strings are built at display time. */ + GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(packetlist->view)); guint visible_pos = packet_list_append_record(packetlist, fdata); - packets_bar_update(); + if(model) + /* If the model is connected there is no packetsbar_update from "thaw */ + packets_bar_update(); /* Return the _visible_ position */ return visible_pos; @@ -595,6 +598,7 @@ new_packet_list_thaw(void) /* Remove extra reference added by new_packet_list_freeze() */ g_object_unref(packetlist); + packets_bar_update(); } void |