Pārlūkot izejas kodu

Disable pango markup in wayland massage box

Zenity support pango markup, add --no-markup to disable it.
meyraud705 4 gadi atpakaļ
vecāks
revīzija
1fd95c53b6
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/video/wayland/SDL_waylandmessagebox.c

+ 3 - 3
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 */