* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <config.h>
#include <wsutil/file_util.h>
#include <wsutil/filesystem.h>
-#include "globals.h"
#include <epan/strutil.h>
#include "fileset.h"
-
-
typedef struct _fileset {
GList *entries;
char *dirname;
} fileset;
-/* this is the fileset's global data */
+/*
+ * This is the fileset's global data.
+ *
+ * XXX This should probably be per-main-window instead of global.
+ */
static fileset set = { NULL, NULL};
/*
{
GList *le;
-
- /* add all entries to the dialog */
+ /* Add all entries to the dialog. */
+ fileset_dlg_begin_add_file(window);
le = g_list_first(set.entries);
while(le) {
fileset_dlg_add_file((fileset_entry *)le->data, window);
le = g_list_next(le);
}
+ fileset_dlg_end_add_file(window);
}