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
1 changed files with 1 additions and 1 deletions

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_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_window_set_default_size(GTK_WINDOW(window), 320, 10);
gtk_widget_show (window);
gtk_window_present(window);
gtk_main();