diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-06-25 18:07:33 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-06-25 18:07:33 +0000 |
commit | f56d9b49b3f108efbf9bd8aa9baac3531ed4a7ea (patch) | |
tree | 1b1dcc0a79987ab51ecd258efa1238db38847b24 /ui/gtk/packet_list_store.c | |
parent | ab6c7a8bceaf1fac26a1ad08fd1a146e9b73cba6 (diff) | |
download | wireshark-f56d9b49b3f108efbf9bd8aa9baac3531ed4a7ea.tar.gz |
packet_list_iter_children() simplify, just call packet_list_iter_nth_child(..., 0)
svn path=/trunk/; revision=50143
Diffstat (limited to 'ui/gtk/packet_list_store.c')
-rw-r--r-- | ui/gtk/packet_list_store.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/ui/gtk/packet_list_store.c b/ui/gtk/packet_list_store.c index 10249971c4..435948942f 100644 --- a/ui/gtk/packet_list_store.c +++ b/ui/gtk/packet_list_store.c @@ -491,27 +491,7 @@ static gboolean packet_list_iter_children(GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *parent) { - PacketList *packet_list; - - g_return_val_if_fail(PACKETLIST_IS_LIST(tree_model), FALSE); - packet_list = (PacketList *) tree_model; - - /* This is a list, nodes have no children. */ - if(parent) { - g_return_val_if_fail(parent->stamp == packet_list->stamp, FALSE); - g_return_val_if_fail(parent->user_data, FALSE); - return FALSE; - } - - /* No rows => no first row */ - if(PACKET_LIST_RECORD_COUNT(packet_list->visible_rows) == 0) - return FALSE; - - /* Set iter to first item in list */ - iter->stamp = packet_list->stamp; - iter->user_data = PACKET_LIST_RECORD_GET(packet_list->visible_rows, 0); - - return TRUE; + return packet_list_iter_nth_child(tree_model, iter, parent, 0); } static gboolean |