1
0
mirror of https://github.com/cclassic/model-ghdl synced 2024-11-25 08:55:05 +01:00

Use gtk_window_present to show dialogs on top

This commit is contained in:
Markus Koch 2017-10-01 15:35:53 +02:00
parent fad1f6433c
commit bccb210a8f

2
gui.c
View File

@ -67,7 +67,7 @@ int showMessage(int message_type, char *text, char *defaultText, char **reply) {
gtk_container_add(GTK_CONTAINER(window), mainBox); gtk_container_add(GTK_CONTAINER(window), mainBox);
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_window_set_default_size(GTK_WINDOW(window), 320, 10); gtk_window_set_default_size(GTK_WINDOW(window), 320, 10);
gtk_widget_show (window); gtk_window_present(window);
gtk_main(); gtk_main();