#include <gtk/gtk.h>

GtkWidget * 
create_test_window()
{
	
	GtkWidget * window;	
	
	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	
	if(gtk_widget_is_composited(window))
	{
		printf("\n  > compositing OK\n");
		gtk_window_set_opacity(GTK_WINDOW(window), 0.5);
	}
	else
	{
		printf("\n  > :(\n");
	}

	g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);


	return window;
}

int
main (int argc, char * argv[])
{
	GtkWidget * window;
	gtk_init (&argc, &argv);

	window = create_test_window();
	gtk_widget_show_all(window);

	printf("  > current opacity setting : %f \n", gtk_window_get_opacity(GTK_WINDOW(window)));

	gtk_main ();

	return 0;
}
	
