Mercurial > pidgin.yaz
diff src/gtkmain.c @ 10307:2ac21bf20e04
[gaim-migrate @ 11497]
And another one gone, and another one gone, another one bites the dust.
Hopefully I'm committing everything this time.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 03 Dec 2004 02:46:34 +0000 |
parents | 56cc5d49472b |
children | deec4b58d516 |
line wrap: on
line diff
--- a/src/gtkmain.c Fri Dec 03 00:57:21 2004 +0000 +++ b/src/gtkmain.c Fri Dec 03 02:46:34 2004 +0000 @@ -83,7 +83,6 @@ int opt_away = 0; int docklet_count = 0; char *opt_away_arg = NULL; -int opt_debug = 0; #if HAVE_SIGNAL_H /* @@ -654,6 +653,7 @@ int opt, opt_user = 0; int i; gboolean gui_check; + gboolean debug_enabled; gchar *gaimrc, *accountsxml; struct option long_options[] = { @@ -671,8 +671,11 @@ }; #ifdef DEBUG - opt_debug = 1; + debug_enabled = TRUE; +#else + debug_enabled = FALSE; #endif + #ifndef _WIN32 br_set_locate_fallback_func(gaim_find_binary_location, argv[0]); #endif @@ -720,7 +723,7 @@ char errmsg[BUFSIZ]; snprintf(errmsg, BUFSIZ, "Warning: couldn't unblock signals"); perror(errmsg); - } + } #endif for (i = 0; i < argc; i++) { @@ -801,9 +804,9 @@ opterr = 1; while ((opt = getopt_long(argc, argv, #ifndef _WIN32 - "adhu:c:vns:", + "adhu:c:vns:", #else - "adhu:c:vn", + "adhu:c:vn", #endif long_options, NULL)) != -1) { switch (opt) { @@ -815,7 +818,7 @@ opt_acct = 1; break; case 'd': /* debug */ - opt_debug = 1; + debug_enabled = TRUE; break; case 'c': /* use specified config dir */ set_gaim_user_dir(optarg); @@ -874,6 +877,8 @@ abort(); } + gaim_debug_set_enabled(debug_enabled); + plugin_search_paths[0] = g_strdup(LIBDIR); plugin_search_paths[1] = gaim_user_dir(); plugin_search_paths[2] = g_build_filename(gaim_user_dir(), "plugins", NULL); @@ -903,7 +908,6 @@ gaim_blist_load(); gaim_prefs_load(); - gaim_prefs_update_old(); gaim_gtk_prefs_update_old(); @@ -922,7 +926,7 @@ g_free(opt_session_arg); opt_session_arg = NULL; } - + if (opt_config_dir_arg != NULL) { g_free(opt_config_dir_arg); opt_config_dir_arg = NULL;