/* build with 
 *
 * gcc `pkg-config --cflags --libs gtk+-2.0` metacity-test.c -o metacity-test
 *
 */

#include <gtk/gtk.h>

int
main (int argc, char *argv[])
{
        GtkWidget *dialog;

        gtk_init (&argc, &argv);

        dialog = gtk_message_dialog_new (NULL,
                                         GTK_DIALOG_DESTROY_WITH_PARENT,
                                         GTK_MESSAGE_ERROR,
                                         GTK_BUTTONS_CLOSE,
                                         "Hello world!");
 	//gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
	//gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
	//gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
	gtk_window_set_keep_above (GTK_WINDOW (dialog), TRUE);

        gtk_widget_show_all (dialog);
        gtk_dialog_run (GTK_DIALOG (dialog));
        gtk_widget_destroy (dialog);

        return 0;
}
