Delay starting the resolv_update_cb until the main window has been displayed

This avoids this error:

(lt-wireshark:16779): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

before the main window has been drawn if you've got a personal hosts file.

svn path=/trunk/; revision=32593
This commit is contained in:
Jeff Morriss 2010-04-29 00:09:01 +00:00
parent c4fd1f8786
commit c9247a92f1
1 changed files with 8 additions and 8 deletions

View File

@ -2317,8 +2317,6 @@ main(int argc, char *argv[])
tap_update_timer_id = g_timeout_add(prefs_p->tap_update_interval, tap_update_cb, NULL);
#endif /* !_WIN32 && G_THREADS_ENABLED && USE_THREADS */
g_timeout_add(info_update_freq, resolv_update_cb, NULL);
splash_update(RA_CONFIGURATION, NULL, (gpointer)splash_win);
@ -2736,6 +2734,8 @@ main(int argc, char *argv[])
/* the window can be sized only, if it's not already shown, so do it now! */
main_load_window_geometry(top_level);
g_timeout_add(info_update_freq, resolv_update_cb, NULL);
/* Tell the user not to run as root. */
if (running_with_special_privs() && recent.privs_warn_if_elevated) {
cur_user = get_cur_username();