mirror of https://github.com/encounter/SDL.git
Disable pango markup in wayland massage box
Zenity support pango markup, add --no-markup to disable it.
This commit is contained in:
parent
0cd0e9ba98
commit
1fd95c53b6
|
@ -48,9 +48,9 @@ Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||||
|
|
||||||
pid1 = fork();
|
pid1 = fork();
|
||||||
if (pid1 == 0) { /* child process */
|
if (pid1 == 0) { /* child process */
|
||||||
int argc = 4, i;
|
int argc = 5, i;
|
||||||
const char* argv[4 + 2/* icon name */ + 2/* title */ + 2/* message */ + 2*MAX_BUTTONS + 1/* NULL */] = {
|
const char* argv[5 + 2/* icon name */ + 2/* title */ + 2/* message */ + 2*MAX_BUTTONS + 1/* NULL */] = {
|
||||||
"zenity", "--question", "--switch", "--no-wrap",
|
"zenity", "--question", "--switch", "--no-wrap", "--no-markup"
|
||||||
};
|
};
|
||||||
|
|
||||||
close(fd_pipe[0]); /* no reading from pipe */
|
close(fd_pipe[0]); /* no reading from pipe */
|
||||||
|
|
Loading…
Reference in New Issue