libpurple/notify.c

branch
soc.2013.gobjectification
changeset 34956
1efbfacf93ee
parent 34955
854143116575
parent 34451
b7165d4e1d73
child 35378
5d9e2581005b
child 35454
cf2a24d01503
equal deleted inserted replaced
34955:854143116575 34956:1efbfacf93ee
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;

mercurial