#include <gtk/gtk.h>
#include <stdlib.h>

int 
main (int n_args, char **args)
{
  gtk_init (&n_args, &args);

  GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

  if (n_args > 1 )
  {
    GdkColormap *colormap = gdk_screen_get_rgba_colormap (gdk_screen_get_default());
    if (colormap) gtk_widget_set_colormap (window, colormap);
  }

  gtk_widget_show_all (window);

  GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "If you click OK, this dialog will disappear!");

  gtk_dialog_run (GTK_DIALOG (dialog));
  exit (0);
}
