colors_init() doesn't have anything to do with packet coloring, it's

just our initialization routine for low-level GTK+ stuff, such as
getting the system colormap and the "black" and "white" colors; we have
to call it before calling get_color().

svn path=/trunk/; revision=25090
This commit is contained in:
Guy Harris 2008-04-17 02:55:29 +00:00
parent 1b4b6462e8
commit 22ae89d766
1 changed files with 3 additions and 1 deletions

View File

@ -1949,6 +1949,9 @@ main(int argc, char *argv[])
capture_opts->has_ring_num_files = TRUE;
#endif
/* Initialize whatever we need to allocate colors for GTK+ */
colors_init();
/* We won't come till here, if we had a "console only" command line parameter. */
splash_win = splash_new("Loading Wireshark ...");
if (init_progfile_dir_error != NULL) {
@ -2395,7 +2398,6 @@ main(int argc, char *argv[])
dnd_init(top_level);
colors_init();
color_filters_init();
decode_as_init();