// compile with gcc test.c `pkg-config --cflags --libs gtk+-2.0`
#include <gtk/gtk.h>
int main ( int argc, char** argv) {
	GtkWidget *master, *dialog;
	gtk_init ( &argc, &argv );

	master = gtk_window_new ( GTK_WINDOW_TOPLEVEL );
	dialog = gtk_window_new ( GTK_WINDOW_TOPLEVEL );

	gtk_window_fullscreen ( GTK_WINDOW(master) );
	gtk_window_set_position ( GTK_WINDOW(dialog), GTK_WIN_POS_CENTER );
	gtk_window_set_transient_for ( GTK_WINDOW(dialog), GTK_WINDOW(master) );

	gtk_widget_show_all ( master ); // appears above dialog
	gtk_widget_show_all ( dialog );

	gtk_main();
	
	return 0;
}
