Mercurial > pidgin
comparison src/multi.c @ 5211:0241d6b6702d
[gaim-migrate @ 5581]
Wrote a new debugging API, and of course core/ui split it. Debug statements
can now have debug levels and categories, for future filtering of stuff,
and color highlighting. It's nifty, m'kay?
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sat, 26 Apr 2003 06:46:08 +0000 |
| parents | fefad67de2c7 |
| children | 1a53330dfd34 |
comparison
equal
deleted
inserted
replaced
| 5210:39bb2a35f8d9 | 5211:0241d6b6702d |
|---|---|
| 944 | 944 |
| 945 entry = gtk_entry_new(); | 945 entry = gtk_entry_new(); |
| 946 gtk_box_pack_end(GTK_BOX(hbox), entry, FALSE, FALSE, 0); | 946 gtk_box_pack_end(GTK_BOX(hbox), entry, FALSE, FALSE, 0); |
| 947 g_object_set_data(G_OBJECT(entry), "position", GINT_TO_POINTER(puo->pos)); | 947 g_object_set_data(G_OBJECT(entry), "position", GINT_TO_POINTER(puo->pos)); |
| 948 if (ma->proto_opt[puo->pos][0]) { | 948 if (ma->proto_opt[puo->pos][0]) { |
| 949 debug_printf("setting text %s\n", ma->proto_opt[puo->pos]); | 949 gaim_debug(GAIM_DEBUG_MISC, "protocol options", |
| 950 "Setting text %s\n", ma->proto_opt[puo->pos]); | |
| 950 gtk_entry_set_text(GTK_ENTRY(entry), ma->proto_opt[puo->pos]); | 951 gtk_entry_set_text(GTK_ENTRY(entry), ma->proto_opt[puo->pos]); |
| 951 } else { | 952 } else { |
| 952 gtk_entry_set_text(GTK_ENTRY(entry), puo->def); | 953 gtk_entry_set_text(GTK_ENTRY(entry), puo->def); |
| 953 } | 954 } |
| 954 gtk_widget_show(entry); | 955 gtk_widget_show(entry); |
| 1717 | 1718 |
| 1718 gaim_setup(gc); | 1719 gaim_setup(gc); |
| 1719 | 1720 |
| 1720 gc->account->connecting = FALSE; | 1721 gc->account->connecting = FALSE; |
| 1721 connecting_count--; | 1722 connecting_count--; |
| 1722 debug_printf("connecting_count: %d\n", connecting_count); | 1723 gaim_debug(GAIM_DEBUG_MISC, "accounts", |
| 1724 "Connecting count: %d\n", connecting_count); | |
| 1723 | 1725 |
| 1724 gaim_event_broadcast(event_signon, gc); | 1726 gaim_event_broadcast(event_signon, gc); |
| 1725 system_log(log_signon, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); | 1727 system_log(log_signon, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); |
| 1726 | 1728 |
| 1727 /* away option given? */ | 1729 /* away option given? */ |
| 1788 if (meter) { | 1790 if (meter) { |
| 1789 kill_meter(meter); | 1791 kill_meter(meter); |
| 1790 meters = g_slist_remove(meters, meter); | 1792 meters = g_slist_remove(meters, meter); |
| 1791 g_free(meter); | 1793 g_free(meter); |
| 1792 } | 1794 } |
| 1793 debug_printf("Disconnecting. user = %p, gc = %p (%p)\n", | 1795 |
| 1794 gc->account, gc->account->gc, gc); | 1796 gaim_debug(GAIM_DEBUG_MISC, "accounts", |
| 1797 "Disconnecting. user = %p, gc = %p (%p)\n", | |
| 1798 gc->account, gc->account->gc, gc); | |
| 1799 | |
| 1795 gc->account->gc = NULL; /* wasn't that awkward? */ | 1800 gc->account->gc = NULL; /* wasn't that awkward? */ |
| 1796 | 1801 |
| 1797 if (!acctedit) | 1802 if (!acctedit) |
| 1798 return; | 1803 return; |
| 1799 | 1804 |
| 2057 gaim_blist_remove_account(gc->account); | 2062 gaim_blist_remove_account(gc->account); |
| 2058 | 2063 |
| 2059 /* core stuff */ | 2064 /* core stuff */ |
| 2060 /* remove this here so plugins get a sensible count of connections */ | 2065 /* remove this here so plugins get a sensible count of connections */ |
| 2061 connections = g_slist_remove(connections, gc); | 2066 connections = g_slist_remove(connections, gc); |
| 2062 debug_printf("date: %s\n", full_date()); | 2067 gaim_debug(GAIM_DEBUG_MISC, "accounts", "date: %s\n", full_date()); |
| 2063 gaim_event_broadcast(event_signoff, gc); | 2068 gaim_event_broadcast(event_signoff, gc); |
| 2064 system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); | 2069 system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); |
| 2065 /* set this in case the plugin died before really connecting. | 2070 /* set this in case the plugin died before really connecting. |
| 2066 do it after calling the plugins so they can determine if | 2071 do it after calling the plugins so they can determine if |
| 2067 this user was ever on-line or not */ | 2072 this user was ever on-line or not */ |
| 2068 if (gc->account->connecting) { | 2073 if (gc->account->connecting) { |
| 2069 gc->account->connecting = FALSE; | 2074 gc->account->connecting = FALSE; |
| 2070 connecting_count--; | 2075 connecting_count--; |
| 2071 } | 2076 } |
| 2072 debug_printf("connecting_count: %d\n", connecting_count); | 2077 gaim_debug(GAIM_DEBUG_MISC, "accounts", "connecting_count: %d\n", |
| 2078 connecting_count); | |
| 2073 serv_close(gc); | 2079 serv_close(gc); |
| 2074 | 2080 |
| 2075 /* more UI stuff */ | 2081 /* more UI stuff */ |
| 2076 do_away_menu(); | 2082 do_away_menu(); |
| 2077 do_proto_menu(); | 2083 do_proto_menu(); |
