Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
11032:31c1c48daba1 | 11033:50224ac8184d |
---|---|
288 gaim_gtk_conversations_uninit(); | 288 gaim_gtk_conversations_uninit(); |
289 gaim_gtk_status_uninit(); | 289 gaim_gtk_status_uninit(); |
290 gaim_gtk_blist_uninit(); | 290 gaim_gtk_blist_uninit(); |
291 gaim_gtk_account_uninit(); | 291 gaim_gtk_account_uninit(); |
292 gaim_gtk_xfers_uninit(); | 292 gaim_gtk_xfers_uninit(); |
293 gaim_gtk_debug_uninit(); | |
293 | 294 |
294 /* and end it all... */ | 295 /* and end it all... */ |
295 gtk_main_quit(); | 296 gtk_main_quit(); |
296 } | 297 } |
297 | 298 |
526 | 527 |
527 gui_check = gtk_init_check(&argc, &argv); | 528 gui_check = gtk_init_check(&argc, &argv); |
528 if (!gui_check) { | 529 if (!gui_check) { |
529 char *display = gdk_get_display(); | 530 char *display = gdk_get_display(); |
530 | 531 |
532 printf("Gaim %s\n", VERSION); | |
533 | |
531 g_warning("cannot open display: %s", display ? display : "unset"); | 534 g_warning("cannot open display: %s", display ? display : "unset"); |
532 g_free(display); | 535 g_free(display); |
533 | 536 |
534 return 1; | 537 return 1; |
535 } | 538 } |
676 | 679 |
677 #ifdef HAVE_STARTUP_NOTIFICATION | 680 #ifdef HAVE_STARTUP_NOTIFICATION |
678 startup_notification_complete(); | 681 startup_notification_complete(); |
679 #endif | 682 #endif |
680 | 683 |
684 gaim_debug_register_category("sighandler"); | |
685 gaim_debug_register_category("ui_main"); | |
686 | |
687 /* XXX These don't really belong here, but I don't have a better place for | |
688 * them right now */ | |
689 gaim_debug_register_category("gtkimhtml"); | |
690 gaim_debug_register_category("gtk_imhtml_tip"); | |
691 gaim_debug_register_category("html clipboard"); | |
692 /* #if 0'ed out for Windows stuff | |
693 gaim_debug_register_category("imhtml clipboard"); | |
694 */ | |
695 gaim_debug_register_category("imgstore"); | |
696 gaim_debug_register_category("pluginpref"); | |
697 gaim_debug_register_category("request"); | |
698 gaim_debug_register_category("roomlist"); | |
699 /* gtkutils.c */ | |
700 gaim_debug_register_category("accels"); | |
701 gaim_debug_register_category("gtkspell"); | |
702 /* These are from util.c */ | |
703 gaim_debug_register_category("build_dir"); | |
704 gaim_debug_register_category("gaim_mkstemp"); | |
705 gaim_debug_register_category("gaim_str_add_cr"); | |
706 gaim_debug_register_category("gaim_url_fetch"); | |
707 gaim_debug_register_category("gaim_utf8_strcasecmp"); | |
708 gaim_debug_register_category("parse_content_len"); | |
709 gaim_debug_register_category("program_is_valid"); | |
710 gaim_debug_register_category("util"); | |
711 /* These only show up once */ | |
712 gaim_debug_register_category("gtknotify"); | |
713 gaim_debug_register_category("gtksound"); | |
714 gaim_debug_register_category("prpl"); | |
715 gaim_debug_register_category("server"); | |
716 gaim_debug_register_category("stringref"); | |
717 | |
681 gtk_main(); | 718 gtk_main(); |
682 | 719 |
683 #ifdef _WIN32 | 720 #ifdef _WIN32 |
684 wgaim_cleanup(); | 721 wgaim_cleanup(); |
685 #endif | 722 #endif |