Mercurial > pidgin
comparison src/prpl.c @ 2204:5014b802eb41
[gaim-migrate @ 2214]
if you load a protocol for an unknown account or unload one, update the account editor.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 31 Aug 2001 18:09:27 +0000 |
| parents | 657dbe515608 |
| children | 14e8978f86bb |
comparison
equal
deleted
inserted
replaced
| 2203:14100685c95f | 2204:5014b802eb41 |
|---|---|
| 82 if ((old = find_prpl(p->protocol)) == NULL) | 82 if ((old = find_prpl(p->protocol)) == NULL) |
| 83 unload_protocol(old); | 83 unload_protocol(old); |
| 84 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare); | 84 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare); |
| 85 if (regdialog) | 85 if (regdialog) |
| 86 gtk_widget_destroy(regdialog); | 86 gtk_widget_destroy(regdialog); |
| 87 regenerate_user_list(); | |
| 87 } | 88 } |
| 88 | 89 |
| 89 void unload_protocol(struct prpl *p) | 90 void unload_protocol(struct prpl *p) |
| 90 { | 91 { |
| 91 GSList *c = connections; | 92 GSList *c = connections; |
| 103 } else | 104 } else |
| 104 c = c->next; | 105 c = c->next; |
| 105 } | 106 } |
| 106 protocols = g_slist_remove(protocols, p); | 107 protocols = g_slist_remove(protocols, p); |
| 107 g_free(p); | 108 g_free(p); |
| 109 regenerate_user_list(); | |
| 108 } | 110 } |
| 109 | 111 |
| 110 STATIC_PROTO_INIT | 112 STATIC_PROTO_INIT |
| 111 | 113 |
| 112 static void des_win(GtkWidget *a, GtkWidget *b) | 114 static void des_win(GtkWidget *a, GtkWidget *b) |
