diff --git a/common/utils/itti_analyzer/libui/ui_notif_dlg.c b/common/utils/itti_analyzer/libui/ui_notif_dlg.c index cf7e6d8c59..8179eb0670 100644 --- a/common/utils/itti_analyzer/libui/ui_notif_dlg.c +++ b/common/utils/itti_analyzer/libui/ui_notif_dlg.c @@ -41,6 +41,9 @@ int ui_notification_dialog(GtkMessageType type, gboolean cancel, const char *tit dialogbox = gtk_message_dialog_new (GTK_WINDOW(ui_main_data.window), GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, type, cancel ? GTK_BUTTONS_OK_CANCEL : GTK_BUTTONS_OK, "%s", buffer); + /* Set the window at center of main window */ + gtk_window_set_position (GTK_WINDOW(dialogbox), GTK_WIN_POS_CENTER_ON_PARENT); + gtk_dialog_set_default_response (GTK_DIALOG(dialogbox), GTK_RESPONSE_OK); snprintf (buffer, sizeof(buffer), "%s: %s", title_type_strings[type], title);