#include <gtk/gtk.h>

gboolean skip_taskbar_hint_func(gpointer data)
{
	static gboolean enabled = FALSE;

	if (enabled) {
		enabled = FALSE;
	} else {
		enabled = TRUE;
	}

	g_print("skip_taskbar_hint: %i\n", enabled);
	gtk_window_set_skip_taskbar_hint(GTK_WINDOW(data), enabled);

	return TRUE;
}

int main(int argc, char **argv)
{
	GtkWidget *window;
	GtkWidget *label;

	gtk_init(&argc, &argv);

	window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	gtk_widget_show(window);

	skip_taskbar_hint_func(window);

	label = gtk_label_new("Hello GTK!");
	gtk_container_add(GTK_CONTAINER(window), label);
	gtk_widget_show(label);

	g_timeout_add_seconds(2, skip_taskbar_hint_func, window);

	gtk_main();

	return 0;
}

