From 1fd95c53b66f934b717a45fc30c755e8f56ef472 Mon Sep 17 00:00:00 2001 From: meyraud705 Date: Tue, 20 Apr 2021 18:15:09 +0200 Subject: [PATCH] Disable pango markup in wayland massage box Zenity support pango markup, add --no-markup to disable it. --- src/video/wayland/SDL_waylandmessagebox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/wayland/SDL_waylandmessagebox.c b/src/video/wayland/SDL_waylandmessagebox.c index a0d488ed5..f42414531 100644 --- a/src/video/wayland/SDL_waylandmessagebox.c +++ b/src/video/wayland/SDL_waylandmessagebox.c @@ -48,9 +48,9 @@ Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) pid1 = fork(); if (pid1 == 0) { /* child process */ - int argc = 4, i; - const char* argv[4 + 2/* icon name */ + 2/* title */ + 2/* message */ + 2*MAX_BUTTONS + 1/* NULL */] = { - "zenity", "--question", "--switch", "--no-wrap", + int argc = 5, i; + const char* argv[5 + 2/* icon name */ + 2/* title */ + 2/* message */ + 2*MAX_BUTTONS + 1/* NULL */] = { + "zenity", "--question", "--switch", "--no-wrap", "--no-markup" }; close(fd_pipe[0]); /* no reading from pipe */