| 756 } |
756 } |
| 757 |
757 |
| 758 return NULL; |
758 return NULL; |
| 759 } |
759 } |
| 760 |
760 |
| |
761 gboolean |
| |
762 purple_notify_is_valid_ui_handle(void *ui_handle, PurpleNotifyType *type) |
| |
763 { |
| |
764 GList *it; |
| |
765 |
| |
766 if (ui_handle == NULL) |
| |
767 return FALSE; |
| |
768 |
| |
769 for (it = handles; it != NULL; it = g_list_next(it)) { |
| |
770 PurpleNotifyInfo *info = it->data; |
| |
771 |
| |
772 if (info->ui_handle != ui_handle) |
| |
773 continue; |
| |
774 |
| |
775 if (type != NULL) |
| |
776 *type = info->type; |
| |
777 return TRUE; |
| |
778 } |
| |
779 |
| |
780 return FALSE; |
| |
781 } |
| |
782 |
| 761 void |
783 void |
| 762 purple_notify_close(PurpleNotifyType type, void *ui_handle) |
784 purple_notify_close(PurpleNotifyType type, void *ui_handle) |
| 763 { |
785 { |
| 764 GList *l; |
786 GList *l; |
| 765 PurpleNotifyUiOps *ops; |
787 PurpleNotifyUiOps *ops; |