view libpurple/plugins/mono/loader/status-glue.c @ 26186:3d997c09b94e

A patch from Jorge Villaseor which makes all pounces share a single window. The window is based on the one used by the mail notifications. I made some extra changes on top of the patch to clean things up a little bit, mainly to improve strings. Blame me if something breaks! Thanks to bjlockie for helping with testing. Closes #190
author Kevin Stange <kevin@simguy.net>
date Mon, 16 Mar 2009 17:07:41 +0000
parents 32c366eeeb99
children a8cc50c2279f
line wrap: on
line source

#include "status.h"
#include "mono-helper.h"
#include "mono-glue.h"

MonoObject* purple_status_build_status_object(void* data)
{
	MonoObject *obj = NULL;
	PurpleStatus *status = (PurpleStatus*)data;
	
	obj = ml_create_api_object("Status");
	g_return_val_if_fail(obj != NULL, NULL);
		
	ml_set_prop_string(obj, "Id", (char*)purple_status_get_id(status));
	
	return obj;
}