comparison src/multi.c @ 2396:78fab38249a2

[gaim-migrate @ 2409] this was evil committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 30 Sep 2001 19:48:44 +0000
parents 569ae9f2bb89
children 520257562955
comparison
equal deleted inserted replaced
2395:c014fd611443 2396:78fab38249a2
105 if (!connections && mainwindow) 105 if (!connections && mainwindow)
106 gtk_widget_show(mainwindow); 106 gtk_widget_show(mainwindow);
107 #endif 107 #endif
108 } 108 }
109 109
110 struct gaim_connection *find_gaim_conn_by_name(char *name)
111 {
112 char *who = g_strdup(normalize(name));
113 GSList *c = connections;
114 struct gaim_connection *g = NULL;
115
116 while (c) {
117 g = (struct gaim_connection *)c->data;
118 if (!strcmp(normalize(g->username), who)) {
119 g_free(who);
120 return g;
121 }
122 c = c->next;
123 }
124
125 g_free(who);
126 return NULL;
127 }
128
129 static void delete_acctedit(GtkWidget *w, gpointer d) 110 static void delete_acctedit(GtkWidget *w, gpointer d)
130 { 111 {
131 if (acctedit) { 112 if (acctedit) {
132 save_prefs(); 113 save_prefs();
133 gtk_widget_destroy(acctedit); 114 gtk_widget_destroy(acctedit);