| 245 /* hacks */ |
245 /* hacks */ |
| 246 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf, _("Available"), NULL, "available"); |
246 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf, _("Available"), NULL, "available"); |
| 247 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf2, _("Away"), NULL, "away"); |
247 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf2, _("Away"), NULL, "away"); |
| 248 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf4, _("Invisible"), NULL, "invisible"); |
248 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf4, _("Invisible"), NULL, "invisible"); |
| 249 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf3, _("Offline"), NULL, "offline"); |
249 gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf3, _("Offline"), NULL, "offline"); |
| |
250 /* |
| |
251 * TODO: This triggers a callback of gaim_gtk_status_box_changed(). |
| |
252 * That's bad. We should at least try not figure out what |
| |
253 * status the user's accounts are set to instead of always |
| |
254 * using "Available." |
| |
255 */ |
| 250 gtk_combo_box_set_active(GTK_COMBO_BOX(status_box), 0); |
256 gtk_combo_box_set_active(GTK_COMBO_BOX(status_box), 0); |
| 251 |
257 |
| 252 } |
258 } |
| 253 |
259 |
| 254 |
260 |
| 413 g_source_remove(box->typing); |
419 g_source_remove(box->typing); |
| 414 box->typing = 0; |
420 box->typing = 0; |
| 415 gtk_gaim_status_box_refresh(box); |
421 gtk_gaim_status_box_refresh(box); |
| 416 } |
422 } |
| 417 |
423 |
| 418 /* |
|
| 419 * TODO: This callback is triggered immediately, without the user actually |
|
| 420 * changing anything. That's bad. |
|
| 421 */ |
|
| 422 static void gtk_gaim_status_box_changed(GtkComboBox *box) |
424 static void gtk_gaim_status_box_changed(GtkComboBox *box) |
| 423 { |
425 { |
| 424 GtkGaimStatusBox *status_box = GTK_GAIM_STATUS_BOX(box); |
426 GtkGaimStatusBox *status_box = GTK_GAIM_STATUS_BOX(box); |
| 425 GtkTreeIter iter; |
427 GtkTreeIter iter; |
| 426 char *text, *sec_text; |
428 char *text, *sec_text; |