
#include <gtk/gtk.h>
#include "xplayer-glow-button.h"

#if 1
static gboolean
idle_cb (gpointer data)
{
	XplayerGlowButton *button = data;

	g_message ("launching the glow");
	xplayer_glow_button_set_glow (button, TRUE);

	return FALSE;
}
#endif
#if 1
static gboolean
idle_un_cb (gpointer data)
{
	XplayerGlowButton *button = data;

	g_message ("stopping the glow");
	xplayer_glow_button_set_glow (button, FALSE);

	return FALSE;
}
#endif
int main (int argc, char **argv)
{
	GtkWidget *window, *button, *image;

	gtk_init (&argc, &argv);

	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	button = xplayer_glow_button_new ();
	image = gtk_image_new_from_stock (GTK_STOCK_MEDIA_PLAY, GTK_ICON_SIZE_MENU);
	gtk_button_set_image (GTK_BUTTON (button), image);
#if 0
	gtk_button_set_label (GTK_BUTTON (button), GTK_STOCK_MEDIA_PLAY);
	gtk_button_set_use_stock (GTK_BUTTON (button), TRUE);
#endif
	gtk_container_add (GTK_CONTAINER(window), button);

	xplayer_glow_button_set_glow (XPLAYER_GLOW_BUTTON (button), TRUE);

	g_timeout_add_seconds (3, idle_cb, button);
	g_timeout_add_seconds (5, idle_un_cb, button);

	gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);

	gtk_widget_show_all (window);

	gtk_main ();

	return 0;
}

