| 578 g_return_val_if_fail(user_info_entry != NULL, NULL); |
578 g_return_val_if_fail(user_info_entry != NULL, NULL); |
| 579 |
579 |
| 580 return user_info_entry->label; |
580 return user_info_entry->label; |
| 581 } |
581 } |
| 582 |
582 |
| |
583 void |
| |
584 gaim_notify_user_info_entry_set_label(GaimNotifyUserInfoEntry *user_info_entry, const char *label) |
| |
585 { |
| |
586 g_return_if_fail(user_info_entry != NULL); |
| |
587 |
| |
588 if (label != user_info_entry->label) |
| |
589 { |
| |
590 g_free(user_info_entry->label); |
| |
591 user_info_entry->label = g_strdup(label); |
| |
592 } |
| |
593 } |
| |
594 |
| 583 gchar * |
595 gchar * |
| 584 gaim_notify_user_info_entry_get_value(GaimNotifyUserInfoEntry *user_info_entry) |
596 gaim_notify_user_info_entry_get_value(GaimNotifyUserInfoEntry *user_info_entry) |
| 585 { |
597 { |
| 586 g_return_val_if_fail(user_info_entry != NULL, NULL); |
598 g_return_val_if_fail(user_info_entry != NULL, NULL); |
| 587 |
599 |
| 588 return user_info_entry->value; |
600 return user_info_entry->value; |
| |
601 } |
| |
602 |
| |
603 void |
| |
604 gaim_notify_user_info_entry_set_value(GaimNotifyUserInfoEntry *user_info_entry, const char *value) |
| |
605 { |
| |
606 g_return_if_fail(user_info_entry != NULL); |
| |
607 |
| |
608 if (value != user_info_entry->value) |
| |
609 { |
| |
610 g_free(user_info_entry->value); |
| |
611 user_info_entry->value = g_strdup(value); |
| |
612 } |
| |
613 } |
| |
614 |
| |
615 GaimNotifyUserInfoEntryType |
| |
616 gaim_notify_user_info_entry_get_type(GaimNotifyUserInfoEntry *user_info_entry) |
| |
617 { |
| |
618 g_return_val_if_fail(user_info_entry != NULL, NULL); |
| |
619 |
| |
620 return user_info_entry->type; |
| |
621 } |
| |
622 |
| |
623 void |
| |
624 gaim_notify_user_info_entry_set_value(GaimNotifyUserInfoEntry *user_info_entry, GaimNotifyUserInfoEntryType type) |
| |
625 { |
| |
626 g_return_if_fail(user_info_entry != NULL); |
| |
627 |
| |
628 user_info_entry->type = type; |
| 589 } |
629 } |
| 590 |
630 |
| 591 void |
631 void |
| 592 gaim_notify_user_info_add_pair(GaimNotifyUserInfo *user_info, const char *label, const char *value) |
632 gaim_notify_user_info_add_pair(GaimNotifyUserInfo *user_info, const char *label, const char *value) |
| 593 { |
633 { |
| 753 gaim_signal_register(handle, "displaying-userinfo", |
793 gaim_signal_register(handle, "displaying-userinfo", |
| 754 gaim_marshal_VOID__POINTER_POINTER_POINTER, NULL, 3, |
794 gaim_marshal_VOID__POINTER_POINTER_POINTER, NULL, 3, |
| 755 gaim_value_new(GAIM_TYPE_SUBTYPE, |
795 gaim_value_new(GAIM_TYPE_SUBTYPE, |
| 756 GAIM_SUBTYPE_ACCOUNT), |
796 GAIM_SUBTYPE_ACCOUNT), |
| 757 gaim_value_new(GAIM_TYPE_STRING), |
797 gaim_value_new(GAIM_TYPE_STRING), |
| 758 gaim_value_new_outgoing(GAIM_TYPE_STRING)); |
798 gaim_value_new(GAIM_TYPE_SUBTYPE, |
| |
799 GAIM_SUBTYPE_USERINFO)); |
| 759 } |
800 } |
| 760 |
801 |
| 761 void |
802 void |
| 762 gaim_notify_uninit(void) |
803 gaim_notify_uninit(void) |
| 763 { |
804 { |