| 631 |
631 |
| 632 acct_options[gaim_status_type_get_primitive(status_type)] = account; |
632 acct_options[gaim_status_type_get_primitive(status_type)] = account; |
| 633 } |
633 } |
| 634 |
634 |
| 635 for(i=0; i<GAIM_STATUS_NUM_PRIMITIVES; i++) { |
635 for(i=0; i<GAIM_STATUS_NUM_PRIMITIVES; i++) { |
| 636 gaim_debug_misc("gtkstatusselector", "account=%p, acct_options[%d]=%p\n", account, i, acct_options[i]); |
|
| 637 if(acct_options[i] == account) |
636 if(acct_options[i] == account) |
| 638 options[i]++; |
637 options[i]++; |
| 639 } |
638 } |
| 640 } |
639 } |
| 641 |
640 |
| 642 for(i=0; i<GAIM_STATUS_NUM_PRIMITIVES; i++) { |
641 for(i=0; i<GAIM_STATUS_NUM_PRIMITIVES; i++) { |
| 643 gaim_debug_misc("gtkstatusselector", "%s has %d accounts\n", gaim_primitive_get_name_from_type(i), options[i]); |
|
| 644 if(options[i] == num_accounts) { |
642 if(options[i] == num_accounts) { |
| 645 char *filename = g_strdup_printf("%s.png", gaim_primitive_get_id_from_type(i)); |
643 char *filename = g_strdup_printf("%s.png", gaim_primitive_get_id_from_type(i)); |
| 646 add_item(selector, gaim_primitive_get_id_from_type(i), gaim_primitive_get_name_from_type(i), load_icon(filename)); |
644 add_item(selector, gaim_primitive_get_id_from_type(i), gaim_primitive_get_name_from_type(i), load_icon(filename)); |
| 647 g_free(filename); |
645 g_free(filename); |
| 648 } |
646 } |