src/gtkstatusselector.c

changeset 10495
0914f9d916a8
parent 10485
1a05903a3e83
child 10504
eae130eefbfe
equal deleted inserted replaced
10494:d1b55ab5a82a 10495:0914f9d916a8
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 }

mercurial