#import <ObjFW/OFBlock.h>
#include <gtk/gtk.h>

#import "JubGtkHelper.h"

static gboolean call_block(gpointer data)
{
	void (^block)(void) = data;
	block();
	[block release];

	return FALSE;
}

void g_idle_add_block(void (^block)(void))
{
	g_idle_add(call_block, [block copy]);
}
