/* gcc raiser.c `pkg-config gtk+-2.0 --cflags --libs` -o raiser */

#include <gtk/gtk.h>

GtkWidget *toplevel;

gboolean
raiser (gpointer data)
{
  g_print ("Raising!\n");
  gdk_window_raise (GDK_WINDOW (toplevel->window));
  return TRUE;
}

int
main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_timeout_add (5000, raiser, NULL);
  gtk_widget_show (toplevel);
  gtk_main ();
  return 0;
}
