diff options
author | Gerald Combs <gerald@wireshark.org> | 2004-09-02 19:52:39 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2004-09-02 19:52:39 +0000 |
commit | 16c708571ae1ce3c3ece8558039b715e37d8f8b7 (patch) | |
tree | a8645726e10594c225c2ab54a960daf5fcb14940 /gtk/goto_dlg.c | |
parent | 6594b60b99e287d14557ed2aeb64bd33f59b4ded (diff) |
Move the guts of gtk/file_dlg.c:goto_framenum_cb() to
file.c:goto_framenum(), where all of the other goto_ routines live.
svn path=/trunk/; revision=11887
Diffstat (limited to 'gtk/goto_dlg.c')
-rw-r--r-- | gtk/goto_dlg.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk/goto_dlg.c b/gtk/goto_dlg.c index 2199bc1206..38f81b8b50 100644 --- a/gtk/goto_dlg.c +++ b/gtk/goto_dlg.c @@ -136,18 +136,7 @@ goto_frame_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w) void goto_framenum_cb(GtkWidget *w _U_, gpointer data _U_) { - if (cfile.finfo_selected) { - header_field_info *hfinfo; - guint32 framenum; - - hfinfo = cfile.finfo_selected->hfinfo; - g_assert(hfinfo); - if (hfinfo->type == FT_FRAMENUM) { - framenum = fvalue_get_integer(&cfile.finfo_selected->value); - if (framenum != 0) - goto_frame(&cfile, framenum); - } - } + goto_framenum(&cfile); } void |