If the user has G_LOG_LEVEL_INFO enabled, provide startup progress messages.

svn path=/trunk/; revision=23606
This commit is contained in:
Gerald Combs 2007-11-26 18:38:03 +00:00
parent dd0a4750b0
commit 9e16f1313c
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,7 @@
#include "file_dlg.h"
#include "compat_macros.h"
#include "globals.h"
#include "log.h"
#if GTK_MAJOR_VERSION >= 2 || GTK_MINOR_VERSION >= 3
#include "text_page.h"
#endif
@ -222,6 +223,7 @@ splash_update(register_action_e action, const char *message, gpointer client_dat
break;
}
splash_update_label(win, action_msg);
g_log(LOG_DOMAIN_MAIN, G_LOG_LEVEL_INFO, action_msg);
last_action = action;
}

View File

@ -3093,6 +3093,8 @@ main(int argc, char *argv[])
/* register our pid if we are being run from a U3 device */
u3_register_pid();
g_log(LOG_DOMAIN_MAIN, G_LOG_LEVEL_INFO, "Wireshark is up and ready to go");
/* we'll enter the GTK loop now and hand the control over to GTK ... */
gtk_main();
/* ... back from GTK, we're going down now! */