diff src/gtkmain.c @ 11033:50224ac8184d

[gaim-migrate @ 12919] Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.) committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 28 Jun 2005 06:13:07 +0000
parents 9fe9c7e00666
children df0241eb602c
line wrap: on
line diff
--- a/src/gtkmain.c	Sun Jun 26 01:14:51 2005 +0000
+++ b/src/gtkmain.c	Tue Jun 28 06:13:07 2005 +0000
@@ -290,6 +290,7 @@
 	gaim_gtk_blist_uninit();
 	gaim_gtk_account_uninit();
 	gaim_gtk_xfers_uninit();
+	gaim_gtk_debug_uninit();
 
 	/* and end it all... */
 	gtk_main_quit();
@@ -528,6 +529,8 @@
 	if (!gui_check) {
 		char *display = gdk_get_display();
 
+		printf("Gaim %s\n", VERSION);
+
 		g_warning("cannot open display: %s", display ? display : "unset");
 		g_free(display);
 
@@ -678,6 +681,40 @@
 	startup_notification_complete();
 #endif
 
+	gaim_debug_register_category("sighandler");
+	gaim_debug_register_category("ui_main");
+
+	/* XXX These don't really belong here, but I don't have a better place for
+	 * them right now */
+	gaim_debug_register_category("gtkimhtml");
+	gaim_debug_register_category("gtk_imhtml_tip");
+	gaim_debug_register_category("html clipboard");
+	/* #if 0'ed out for Windows stuff
+	gaim_debug_register_category("imhtml clipboard");
+	*/
+	gaim_debug_register_category("imgstore");
+	gaim_debug_register_category("pluginpref");
+	gaim_debug_register_category("request");
+	gaim_debug_register_category("roomlist");
+	/* gtkutils.c */
+	gaim_debug_register_category("accels");
+	gaim_debug_register_category("gtkspell");
+	/* These are from util.c */
+	gaim_debug_register_category("build_dir");
+	gaim_debug_register_category("gaim_mkstemp");
+	gaim_debug_register_category("gaim_str_add_cr");
+	gaim_debug_register_category("gaim_url_fetch");
+	gaim_debug_register_category("gaim_utf8_strcasecmp");
+	gaim_debug_register_category("parse_content_len");
+	gaim_debug_register_category("program_is_valid");
+	gaim_debug_register_category("util");
+	/* These only show up once */
+	gaim_debug_register_category("gtknotify");
+	gaim_debug_register_category("gtksound");
+	gaim_debug_register_category("prpl");
+	gaim_debug_register_category("server");
+	gaim_debug_register_category("stringref");
+
 	gtk_main();
 
 #ifdef _WIN32