Mercurial > pidgin
comparison src/gtkstatusselector.c @ 10197:7369bf2bf593
[gaim-migrate @ 11314]
More status fixes. Oscar kind of works... you can set yourself away,
invisible and available, but you can't choose the message for away,
can't choose an available message, and invisible only seems to work
the first time.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 17 Nov 2004 01:32:06 +0000 |
parents | 0f86175b41a4 |
children | 76e296e16def |
comparison
equal
deleted
inserted
replaced
10196:760e690a5f30 | 10197:7369bf2bf593 |
---|---|
224 if (!strcmp(text, _("New Status"))) | 224 if (!strcmp(text, _("New Status"))) |
225 { | 225 { |
226 /* TODO */ | 226 /* TODO */ |
227 } | 227 } |
228 } | 228 } |
229 else if (!strcmp(status_type_id, "available")) | 229 else |
230 { | 230 { |
231 /* TODO */ | 231 const char *message = text; |
232 } | |
233 else if (!strcmp(status_type_id, "away")) | |
234 { | |
235 const char *message = ""; | |
236 GtkTextBuffer *buffer; | 232 GtkTextBuffer *buffer; |
237 gboolean allow_message = FALSE; | 233 gboolean allow_message = FALSE; |
238 | 234 |
239 buffer = | 235 buffer = |
240 gtk_text_view_get_buffer(GTK_TEXT_VIEW(selector->priv->entry)); | 236 gtk_text_view_get_buffer(GTK_TEXT_VIEW(selector->priv->entry)); |
254 continue; | 250 continue; |
255 | 251 |
256 if (gaim_status_type_get_attr(status_type, "message") != NULL) | 252 if (gaim_status_type_get_attr(status_type, "message") != NULL) |
257 { | 253 { |
258 gaim_account_set_status(account, | 254 gaim_account_set_status(account, |
259 "away", TRUE, | 255 status_type_id, TRUE, |
260 "message", message, | 256 "message", message, |
261 NULL); | 257 NULL); |
262 | 258 |
263 allow_message = TRUE; | 259 allow_message = TRUE; |
264 } | 260 } |
265 else | 261 else |
266 { | 262 { |
267 gaim_account_set_status(account, | 263 gaim_account_set_status(account, |
268 "away", TRUE, | 264 status_type_id, TRUE, |
269 NULL); | 265 NULL); |
270 } | 266 } |
271 } | 267 } |
272 | 268 |
273 if (allow_message) | 269 if (allow_message) |