Mercurial > pidgin
comparison src/conversation.c @ 516:ee4e18868584
[gaim-migrate @ 526]
Make it obvious that it happens.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 21 Jul 2000 18:08:00 +0000 |
parents | b33ed0a7f49b |
children | fd6a3294366f |
comparison
equal
deleted
inserted
replaced
515:b33ed0a7f49b | 516:ee4e18868584 |
---|---|
148 | 148 |
149 t = gtk_editable_get_chars(GTK_EDITABLE(entry), (t-s), (t-s) + i + 1); | 149 t = gtk_editable_get_chars(GTK_EDITABLE(entry), (t-s), (t-s) + i + 1); |
150 } | 150 } |
151 return t; | 151 return t; |
152 } | 152 } |
153 | 153 |
154 void make_direct(struct conversation *c, gboolean direct, struct aim_conn_t *conn, gint watcher) | |
155 { | |
156 char buf[BUF_LONG]; | |
157 if (c == NULL) return; | |
158 c->is_direct = direct; | |
159 if (direct) { | |
160 c->conn = conn; | |
161 c->watcher = watcher; | |
162 g_snprintf(buf, sizeof buf, _("<HR><B>Direct Connection with %s established.</B><BR><HR>"), | |
163 c->name); | |
164 write_to_conv(c, buf, WFLAG_SYSTEM, NULL); | |
165 } else { | |
166 c->conn = NULL; | |
167 gdk_input_remove(c->watcher); | |
168 c->watcher = -1; | |
169 g_snprintf(buf, sizeof buf, _("<HR><B>Direct Connection with %s closed.</B><BR><HR>"), | |
170 c->name); | |
171 write_to_conv(c, buf, WFLAG_SYSTEM, NULL); | |
172 } | |
173 } | |
174 | |
154 /* --------------------------------------------------- | 175 /* --------------------------------------------------- |
155 * Function to remove a log file entry | 176 * Function to remove a log file entry |
156 * --------------------------------------------------- | 177 * --------------------------------------------------- |
157 */ | 178 */ |
158 | 179 |